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

length of 'dimnames' [1] not equal to array extent #87

Open
yeswzc opened this issue Apr 17, 2019 · 0 comments
Open

length of 'dimnames' [1] not equal to array extent #87

yeswzc opened this issue Apr 17, 2019 · 0 comments

Comments

@yeswzc
Copy link

yeswzc commented Apr 17, 2019

Hi, I was using ngs.plot.r with this command:

ngs.plot.r -G hg19 -R tss -C my.bam -O test

But I got an error:

Using database: /***:)***/database/hg19/hg19.ensembl.genebody.protein_coding.RData
Done
Loading R li
Done
Loading R libraries.....Done
Analyze bam files and calculate coverage..................................Done
N1  20242
N2 698
Error in dimnames(x) <- dn :
  length of 'dimnames' [1] not equal to array extent
Calls: rownames<- -> rownames<-
Execution halted

I believe the error is at this line:

rownames(enrichList[[i]]) <- paste(coord.list[[reg]]$gname,
                                       coord.list[[reg]]$tid, sep=':')

It may because of my low coverage bam data. But I am not sure how to handle it, could you help me to figure this out?

Thank you very much!

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

1 participant