ElyasMo / ST.mtx

R package for creating Visium Seurat object without HDF5 file
2 stars 0 forks source link

Create Seurat Object where features are common gene names #1

Closed rossana24 closed 10 months ago

rossana24 commented 10 months ago

I'm using your tool to have a look at my spatial transcriptomics data, as the h5 files are missing. The Seurat object that I have obtained presents the gene_ids as features (e.g., ENSG00000187634, ENSG00000188976), whereas my requirement is for common gene names as features, such as SAMD11 and NOC2L.

Is there a way method to achieve this?

Thank you in advance for your help

ElyasMo commented 10 months ago

Dear @rossana24, First you need to convert your Ensemble IDs to Gene symbols. This might be a good start using Biomart R package: (https://www.biostars.org/p/9540029/). Next, you need to add the gene Symbols to the first column of your features.tsv as by default, Read10X considers the features in the first column (gene.column = 1). Then you should be good to go with the ST.mtx to read your ST profiles.