Code Monkey home page Code Monkey logo

Comments (5)

ChenWeiyan avatar ChenWeiyan commented on July 30, 2024

Hi,

It could be quite a lot reasons since I am not aware of the input data format.

Did you follow the steps in our vignette? Or is there any warning/error information you can provide?

Perhaps you could firstly check if the gene identifiers or cell names are properly set? Then whether the data is well normalized to gain a non-zero minimum value?

And also check the integrated data matrix in the out put list, to see if the integration is done perfectly?

Best,
Weiyan

from landscent.

zhumengyan avatar zhumengyan commented on July 30, 2024

Thanks for your quickly reply.
Here is my code.
`
library(Seurat)
require(scater)
library(LandSCENT)
require(AnnotationDbi)
require(org.Hs.eg.db)
data(net17Jan16.m)

tumor info

tumor <- readRDS("./result/integration/seurat/seurat_integration1.rds")
tumor_sce <- as.SingleCellExperiment(tumor, assay = "RNA")

tumor_sce <- normalize(tumor_sce, log_exprs_offset = 1.1)
tumor.m <- as.matrix(assay(tumor_sce, i = "logcounts"))
min(tumor.m)
anno.v <- mapIds(org.Hs.eg.db, keys = rownames(tumor.m), keytype = "SYMBOL",
column = "ENTREZID", multiVals = "first")
unique_anno.v <- unique(anno.v)
tumor_New.m <- matrix(0, nrow = length(unique_anno.v), ncol = dim(tumor.m)[2])
for (i in seq_len(length(unique_anno.v))) {
tmp <- tumor.m[which(anno.v == unique_anno.v[i]) ,]
if (!is.null(dim(tmp))) {
tmp <- colSums(tmp) / dim(tmp)[1]
}
tumor_New.m[i ,] <- tumor_New.m[i ,] + tmp
}
rownames(tumor_New.m) <- unique_anno.v
colnames(tumor_New.m) <- colnames(tumor.m)
tumor_New.m <- tumor_New.m[-which(rownames(tumor_New.m) %in% NA) ,]
tumor_New2.m <- tumor_New.m
Integration.l <- DoIntegPPI(exp.m = tumor_New2.m, ppiA.m = net17Jan16.m)
str(Integration.l)
SR.o <- CompSRana(Integration.l, local = TRUE, mc.cores = 6)
`

from landscent.

ChenWeiyan avatar ChenWeiyan commented on July 30, 2024

Hi,

Thanks for providing your script.

But unfortunately, I do not spot anything wrong. This seems to be the standard procedure as I suggested in the vignette T_T

However could you tell me, in the 'Integration.l$expMC' matrix, how many genes are left?

Best,
Weiyan

from landscent.

zhumengyan avatar zhumengyan commented on July 30, 2024

`
dim(Integration.l$expMC)

10266 18489

`
10266 genes left

from landscent.

ChenWeiyan avatar ChenWeiyan commented on July 30, 2024

emmmmmm.....Seems also fine.

No idea what is going on here T_T

from landscent.

Related Issues (17)

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.