The use of this function needs to be differentiated according to the SAW version.
SAW >= 8.0:
- For format conversion, use SAW convert. Refer to [SAW User Manual > Tutorials > Format conversion].
- More details regarding the GEF format and other expression matrix formats, refer to [SAW User Manual > Advanced > Expression Matrix Format]
SAW < 8.0:
Option1: geftools compiled with C ++:
- https://github.com/STOmics/geftools
Option2: Use the python package gefpy (e. G. v0.6.1):
- https://pypi.org/project/gefpy/
- https://gefpy.readthedocs.io/en/latest/index.html
pip install gefpy==0.6.1
Option3: If SAW sif is installed (e. G. v5.1.3):
export HDF5_USE_FILE_LOCKING=FALSE
## gef2gem using geftools
geftools view -i <SN>.gef -o <SN>.gem -s <SN>
# -i input square bin GEF, e.g.SN.raw.gef or SN.gef
# -o output GEM
# -s SN
## gef2gem using gefpy
python
>>> from gefpy.bgef_reader_cy import BgefR
>>> bgef=BgefR(filepath='<SN>.gef',bin_size=200,n_thread=4)
>>> bgef.to_gem('<SN>.bin200.gem')
## gef2gem using SAW sif
## export SINGULARITY_BIND="/path/to/input/dir,/path/to/output/dir"
singularity exec SAW_v5.1.3.sif cellCut view -i <SN>.gef -o <SN>.gem -s <SN>
## cgef2cgem
geftools view -i <SN>.cellbin.gef -o <SN>.cellbin.gem -d <SN>.raw.gef -s <SN>
# -i input cellbin GEF
# -o output cellbin GEM
# -d input square bin GEF, e.G. sn. raw. GEF or Sn. GEF
#-S SN
# # Gem2gef
GEF tools bgef -i <SN>.gem-O <SN>. GEF-B 1,20,50 -O Transcriptomics
#-I input square bin gem
#-O output Square bin GEF
#-B bin sizes seqarate by comma, default: 1,10,20,50,100,200,500
# -O OMICS name