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 when running cis and analysis #69

Closed
catherine0202 opened this issue Jun 15, 2023 · 5 comments
Closed

error when running cis and analysis #69

catherine0202 opened this issue Jun 15, 2023 · 5 comments
Labels
user issue fixed User errors raised with a clear resolution.

Comments

@catherine0202
Copy link

catherine0202 commented Jun 15, 2023

hello!
I got an error "Performing block wise correlation calculation Error: upper value must be greater than lower value" when running '--pcatype cis'. But my hic file was complete and had been transformed by 'preprocess.py' without any error.

Here was some part of the log file:
Matrix dimension 14514 X 14514
Performing Z transformation : complete!
Performing block wise correlation calculation : complete!
Matrix dimension 14246 X 14246
Performing Z transformation : complete!
Performing block wise correlation calculation : complete!
chr start end index 1 2
8 chr8 70000 80000 8 -5.427264 -11.900826
14 chr8 130000 140000 14 -26.150188 -5.274410
17 chr8 160000 170000 17 -23.993980 -1.556982
18 chr8 170000 180000 18 -26.141591 -7.992211
20 chr8 190000 200000 20 -24.585561 -6.226422
21 chr8 200000 210000 21 -24.482866 -5.563963
Matrix dimension 13840 X 13840
Performing Z transformation : complete!
Performing block wise correlation calculation : complete!
Matrix dimension 11617 X 11617
Performing Z transformation : complete!
Performing block wise correlation calculation : complete!
chr start end index 1 2
2 chr9 10000 20000 2 5.012175 22.605769
3 chr9 20000 30000 3 -8.487658 26.162420
4 chr9 30000 40000 4 3.589291 26.932818
5 chr9 40000 50000 5 2.808922 9.428807
6 chr9 50000 60000 6 -7.670276 14.440521
7 chr9 60000 70000 7 -6.636064 14.105107
Matrix dimension 2 X 2
Performing Z transformation : complete!
Performing block wise correlation calculation Error: upper value must be greater than lower value
Execution halted.

!!!Then I used the file produced by the above step to run '--pcatype analyze' and also got this error:
Running intra sample differential calls for nfcp2_dchic zk_dchic samples
Error in pcanalyze(data, dirovwt, diffdir, rzscore, szscore, fdr_thr, :
object 'chrom' not found
Execution halted

I installed all required softwares and packages in a slurm-based system, is these errors caused by my input files or the system?

@ay-lab
Copy link
Owner

ay-lab commented Jun 15, 2023

Hi,

Any non-standard chromosome (e.g. chrY, chrM and any chromosome with very few interactions) can lead to such error. Please make sure you're providing any such chromosome. '--pcatype analyze' step requires completion of '--pcatype cis' step, so you got the last error. Let me know how it goes.

@catherine0202
Copy link
Author

catherine0202 commented Jun 15, 2023 via email

@ay-lab
Copy link
Owner

ay-lab commented Jun 15, 2023

Yes, please delete chrY, chrM files from this folder, coordinate records from the bed files and give it a try again. Hopefully, this will resolve the issue.

@catherine0202
Copy link
Author

catherine0202 commented Jun 17, 2023 via email

@ay-lab
Copy link
Owner

ay-lab commented Jun 19, 2023

Hi,

To run the fithic part, you first need to have the bias file. Please check this on how to generate the bias files -
https://github.com/ay-lab/fithic#optional-arguments
ay-lab/fithic#53 (comment)

(If you already processed this data using HiCPro then you should have the ice normalized bias values with the "iced" folder)

Please generate the bias files for each sample provided in the input.txt file. Then create an additional folder, 'biases' under the current path and dump all the *.biases.gz files inside it. Rerun the step again.

Regarding the subcompartment error, do you have this file "fdr_result/differential.intra_sample_group.pcQnm.bedGraph"?
Can you share it? It seems, the default subcompartment number (= 6) is creating the issue. You can change this using "--subnum" option (and set it to a lower value like 4???). I hope this resolves the issue.

@ay-lab ay-lab added user questions User questions about dcHiC/compartment analysis user issue fixed User errors raised with a clear resolution. and removed user questions User questions about dcHiC/compartment analysis labels Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user issue fixed User errors raised with a clear resolution.
Projects
None yet
Development

No branches or pull requests

2 participants