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 counts_check(object) : ncol(object) > 1 #93

Open
c2b2pss opened this issue Dec 7, 2021 · 4 comments
Open

Error in counts_check(object) : ncol(object) > 1 #93

c2b2pss opened this issue Dec 7, 2021 · 4 comments

Comments

@c2b2pss
Copy link

c2b2pss commented Dec 7, 2021

When running

"dev <- computeDeviations(object = example_counts, annotations = motif_ix)"
What does this error mean?

""Error in counts_check(object) : ncol(object) > 1""

The object is created using

fragment_counts <- getCounts(bamfile, 
                             peaks2, 
                             paired =  TRUE, 
                             by_rg = FALSE, 
                             format = "bam", 
                             colData = DataFrame(celltype = "LNCAP_CR08))

The bamfile is a single .bam file and the peaks is a single narrowpak file read in and sorted using

peaks2 <- getPeaks(peakfile, sort_peaks = TRUE)

$ head(example_counts)
class: RangedSummarizedExperiment 
dim: 6 1 
metadata(0):
assays(1): counts
rownames: NULL
rowData names(1): bias
colnames(1): LNCAP_CR08.bam
colData names(2): celltype depth

I have a single .bam and single peak file. Does this mean I must have replicates? Or does it mean I need a control or comparison peakset?

I can't get past this step ..........

Thanks!

@Robinyi
Copy link

Robinyi commented Dec 31, 2022

I had the same problem

@heping-amy
Copy link

Me too ...

1 similar comment
@YZJenny
Copy link

YZJenny commented Jan 17, 2024

Me too ...

@jsangalang
Copy link

Any updates??

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

5 participants