Giter VIP home page Giter VIP logo

Comments (5)

pkharchenko avatar pkharchenko commented on August 25, 2024

from conos.

VPetukhov avatar VPetukhov commented on August 25, 2024

@pkharchenko , you missed the required part with creating Pagoda or Seurat objects. So it should be something like lapply(sceList, counts) %>% lapply(basicSeuratProc) %>% Conos$new()

from conos.

bony45 avatar bony45 commented on August 25, 2024

Thanks a lot for all of your suggestions.
i tried

sce1_counts=counts(sce1)
counts=lapply(sceList, counts)
panel.preprocessed <- lapply(counts, basicP2proc, n.cores=4, min.cells.per.gene=0, n.odgenes=2e3, get.largevis=FALSE, make.geneknn=FALSE)

is this simmilar to lapply(sceList, counts) %>% lapply(basicSeuratProc) %>% Conos$new() ?
I am not sure if the next question should be a separate thread.
how to add annotation(label) for cells for their distinct cell type? how to integrate that information using conos. I have seen Conos adding labels. I am not sure how to do that for my dataset.
Thanks

from conos.

GMaciag avatar GMaciag commented on August 25, 2024

@bony45 The piece of code you supplied will only get you a list of pagoda2 objects. If you want a cobos object you still need to run conos$new(panel.preprocessed).

Regarding your second question(s), that depends on what exactly you want to do. Have you already run the cell clustering and have the desired annotation in a factor ordered according to cell names?
Then you can just do:

con$clusters$your_annotation$groups <- labels

If you don't have the clustering yet, do it with conos and then replace the default labels (numbers) with the ones you want:

con <- Conos$new()
con$findCommunities(method=leiden.community)
labels <- con$clusters$leiden$groups
labels <- revalue(labels, c("1"="your_label1", "2"="your_label2", ...))
con$clusters$your_annotation$groups <- labels

from conos.

bony45 avatar bony45 commented on August 25, 2024

Thanks a lot

from conos.

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.