Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in runGenePeakcorr #21

Open
Genki-YAN opened this issue Feb 2, 2023 · 2 comments
Open

Error in runGenePeakcorr #21

Genki-YAN opened this issue Feb 2, 2023 · 2 comments

Comments

@Genki-YAN
Copy link

Genki-YAN commented Feb 2, 2023

I have checked the format of the ATAC.se and the RNAmat.They are SummarizedExperiment and matrix. But when I ran runGenePeakcorr, I still have this problem.

cisCorr <- runGenePeakcorr(ATAC.se = ATAC.rs.paired,
                           RNAmat = as.matrix(RNAmat.paired@assays$RNA@counts),
                           genome = "mm10", # One of hg19, mm10 or hg38
                           nCores = 4,
                           p.cut = NULL, # Set this to NULL and we can filter later
                           n_bg = 100)

Assuming paired scATAC/scRNA-seq data ..
Error in centerCounts(ATACmat) :
Supplied object must be either of class SummarizedExperiment or Matrix ..

Can someone solve this?
Thanks!
image

image

@vkartha
Copy link

vkartha commented Feb 9, 2023

Hi @Genki-YAN , can you simply print your ATAC.rs.paired object (type the object name and hit enter and paste the contents here?) Can you also show me the contents of running assay(ATAC.rs.paired)[1:5,1:5]?

This seems to be a format check issue (either the object isn't what we're expecting or the check is throwing an error for an improper reason which I would fix)

Thanks

@ajt986
Copy link

ajt986 commented Sep 26, 2023

Hi, In case others may run into this issue: Make sure that the count matrix supplied to the SummarizedExperiment is of type Matrix from the Matrix library and not matrix. This fixed the issue for me at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants