diazlab / CONICS

CONICS: COpy-Number analysis In single-Cell RNA-Sequencing
73 stars 28 forks source link

Error in plotAll #41

Open marie2T opened 1 year ago

marie2T commented 1 year ago

Thanks for providing us this very useful tool.

I am doing an extensive analysis on data from BM samples.

I get an error at plotAll :

Here is my code and error display.

l <- plotAll(matrix, normFactor, IdfChromStartEndLength, gene_position, "CON_CNVs")

Error: Error in barplot.default(sort(loglik), names = names(sort(loglik)), cex.axis = 0.8, : 'height' must be a vector or a matrix

I tried edditing the plotAll function, however, nothing seems to be working.

Is there any way to work around this error?

Thanks for your help in advance.

ksinghal28 commented 7 months ago

Hi @marie2T , Were you able to figure out a workaround or reason for this error?

I am encountering it for some of my samples but not all of them. And I cannot figure out a pattern for cases where I do encounter it.

Thank you!

sonight007 commented 2 months ago

Hello,

I encounter this same error. I figured out that I didn't add row.names = 1 when read table:

regions=read.table("chromosome_arm_positions_grch38.txt",sep="\t",row.names = 1,header = T) head(regions,n=5) Chrom Start End Length 1p 1 0 122026459 122026459 1q 1 124932724 248956422 124023698 2p 2 0 92188145 92188145 2q 2 94090557 242193529 148102972 3p 3 0 90772458 90772458

After adding it, everything went well.