GithubHelp home page GithubHelp logo

Can I integrate data with iCellR? about icellr HOT 4 CLOSED

rezakj avatar rezakj commented on August 18, 2024
Can I integrate data with iCellR?

from icellr.

Comments (4)

rezakj avatar rezakj commented on August 18, 2024

Yes, it is very easy. First read each patient data like this:

P1 <- load10x("filtered_gene_bc_matrices/hg19/")
P2 <- load10x("filtered_gene_bc_matrices/hg19/")
P3 <- load10x("filtered_gene_bc_matrices/hg19/")
...
P50 <- load10x("filtered_gene_bc_matrices/hg19/")

Then use the data.aggregation function to make them into one file while also labeling each patient/condition.

Example for 3 patients:
my.data <- data.aggregation(samples = c("P1", "p2","P3"), condition.names = c("P1", "p2","P3"))

Then make an object:

my.obj <- make.obj(my.data)
my.obj

CPCA is for batch alignment, which you run instead of PCA step if you wish to do batch alignment.

from icellr.

Midsummer723 avatar Midsummer723 commented on August 18, 2024

Thank you for the quick reply. The CPCA can work for the batch effect,right? If it is, how can I use it to my data . Like the "my.obj <- iba(my.obj,dims = 1:30, k = 10,ba.method = "CPCA", method = "gene.model", gene.list = [email protected])" change the gene.model to orig.ident (sorry , I use the seurat)? OR if not, how can I integrate the data to aviod the batch effect.

from icellr.

rezakj avatar rezakj commented on August 18, 2024

Yes, you can replace [email protected] with orig.ident or any gene list. It is technically just a number of genes you want to use for this. It could be a list of top dispersed genes or top 1000-2000 expressed genes or combination of both or a set of genes you are interested in (eg. c(gene1,gene2,...)).

from icellr.

Midsummer723 avatar Midsummer723 commented on August 18, 2024

Thank you very much!

from icellr.

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.