ay-lab / dcHiC

dcHiC: Differential compartment analysis for Hi-C datasets
MIT License
60 stars 10 forks source link

error at pcatype=cis level #98

Closed Sen0108 closed 5 months ago

Sen0108 commented 5 months ago

I encountered "Performing block wise correlation calculation Error: upper value must be greater than lower value" this error. Please suggest. I have tried 50K,100K, 1MB resolution.

ay-lab commented 5 months ago

Please check the input you're providing. dcHiC accepts a three-column hic interaction file like the following -

1 2 10 1 3 8 ..

The first two columns are the indices of the genomic region provided in the bed file, and the third column represents the interaction count.

The first column index must be less than or equal to the second column index number. If it is not than it will raise the error.

Sen0108 commented 5 months ago

yeah basic the .matrix file from hicpro output. right?

ay-lab commented 5 months ago

Yes

Sen0108 commented 5 months ago

I tried your suggestion. However it is still showing errors. if using --ebackgrnd=2 Error in aggregate.data.frame(lhs, mf[-1L], FUN = FUN, ...) : no rows to aggregate Calls: lapply ... aggregate -> aggregate.formula -> aggregate.data.frame if using --ebackgrnd=1 Performing block wise correlation calculation Error: upper value must be greater than lower value error

ay-lab commented 5 months ago

Can you just check this awk '$1 > $2 { print }' <matrix file> |wc -l

Sen0108 commented 5 months ago

Tried that and modified the matrix file as per your last instructions.

ay-lab commented 5 months ago

Great! Let me know if you face any other issues.