Coder Social home page Coder Social logo

Comments (6)

vertesy avatar vertesy commented on August 24, 2024

Hi Song, sure, happy to,

could you please tell me your version of:

  1. Seurat
  2. Seurat.utils
  3. the seurat version of sc_object.

This bug seems to be zombie: i solved it mutiple times, but keeps coming back

from seurat.utils.

songlyzz avatar songlyzz commented on August 24, 2024

Hi ,
I changed my code like this:

ids=select(org.Mm.eg.db,keys = rownames(sc_object),
             columns = c('ENSEMBL','SYMBOL'),
             keytype = 'ENSEMBL')
  head(ids)
  dim(ids) # 
  ids=na.omit(ids)
  dim(ids) 
  length(unique(ids$SYMBOL)) # 
  ids=ids[!duplicated(ids$SYMBOL),]
  ids=ids[!duplicated(ids$ENSEMBL),]
  pos=match(ids$ENSEMBL,rownames(sc_object) )
  sc_object=sc_object[pos,]
  
  sc_object =RenameGenesSeurat(obj = sc_object,
                         newnames = ids$SYMBOL)

This time it do well !

THANKS,
SONG

from seurat.utils.

vertesy avatar vertesy commented on August 24, 2024

great!

from seurat.utils.

songlyzz avatar songlyzz commented on August 24, 2024

Hi vertesy,
Now I have an another problem that in the org.Mm.eg.db, I did not have like "mt-" mitochondrial genes, how can I filter it when the name is not standard for PercentageFeatureSet(sc_object, pattern = "^mt-") function that in order to QC.

THANKS,
SONG

from seurat.utils.

vertesy avatar vertesy commented on August 24, 2024

I am sorry but this goes beyond what I can support.
PercentageFeatureSet is anyways Seurat, not this package

from seurat.utils.

songlyzz avatar songlyzz commented on August 24, 2024

Hi vertesy:
Thank you very much! I know why my first method is not work, because here is a empty symbol gene name to match the ensembl id, but the org.Mm.eg.db database matches it, so the second one work well.
I can fix them together to solve the problem.

THANKS,
SONG

from seurat.utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.