Coder Social home page Coder Social logo

problem with SelectTFs about scmega HOT 5 OPEN

costalab avatar costalab commented on June 30, 2024
problem with SelectTFs

from scmega.

Comments (5)

Dalhte avatar Dalhte commented on June 30, 2024

Hi again
I tried several things randomly:
it seems that "getAssaData" is deprecated in Seurat5 and to be replaced with LayerData, so could my problem come from incompatibility between Seurat5 and ScMega ?
I try to run LayerData for each assay (chromvar, RNA and ATAC), if I run them alone, I got nothing different, if I run for each something like :

objG[['RNA']] <- as(objG[['RNA']], Class = 'Assay5')
LayerData(object = objG[['RNA']])

I have a different error message: no motifs name in this Assay5 object. The problem arises only when I transform the ATAC assay in Assay5, not when I keep a "ChromatinAssay" class, but sadly then I have the "GetAssayData()`:
! No layers are found" again.
Don't know if that help ?

from scmega.

Dalhte avatar Dalhte commented on June 30, 2024

If ever it can help someone, here is what I did :
I bypassaded the getassayy using layerdata function:

objG[['SoupXRNA']] <- as(objG[['SoupXRNA']], Class = 'Assay5')
LayerData(object = objG[['SoupXRNA']])

objG[['ATAC']] <- as(objG[['ATAC']], Class = 'ChromatinAssay')
LayerData(object = objG[['ATAC']])

objG[['chromvar']] <- as(objG[['chromvar']], Class = 'ChromatinAssay')
LayerData(object = objG[['chromvar']])

Class = 'ChromatinAssay is necessary to keep the motif names

then I copied the selectTFs function to run if in the rstudio interface directly with some modifications:

  • replace RNA assay with SoupXRNA as I had to run soupX to clean my data
  • and increment the motif names call solution proposed by @AmandaKedaigle in the issue " Motif matching when using mouse data #18 "

and It seems to work fine

from scmega.

lzj1769 avatar lzj1769 commented on June 30, 2024

Hi @Dalhte

Sorry for my late reply and glad that you found a solution.

Indeed, the Seurat v5 has uplated many APIs, and I need some time to update scMEGA to keep them compatible.

from scmega.

Dalhte avatar Dalhte commented on June 30, 2024

Hi @lzj1769
Don't worry, it was nice to find a solution by myself :) Even if the solution is quite tedious :DDD

Best
David

from scmega.

evaham1 avatar evaham1 commented on June 30, 2024

Hello!

Many thanks for the tool,
I am also encountering this same error with the issue seeming to be with GetAssayData() in GetTrajectory. I have had a go at trying to bypass this issue as @Dalhte suggested but this is just creating more errors. Could you please suggest a workaround for this or perhaps a suggestion of which Seurat version is best used with scMEGA? I followed the installation instructions which says devtools::install_github("satijalab/seurat", "seurat5", upgrade='always'), should I try re-running the scMEGA steps but with an older version of seurat? Any suggestions are greatly appreciated, I have managed to follow the steps of the tutorial up to SelectTFs so I'm very keen to get this final bit working to build the GRN!
Eva

from scmega.

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.