-
Notifications
You must be signed in to change notification settings - Fork 70
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
hicPCA AttributeError : 'list' object has no attribute 'real' #655
Comments
which version are you using? |
Thank you for your reply , LeiliR . The version I using is 3.4.1. |
Did you get this warning message: "Number of fields in BED file is not standard. Assuming bed6." ? |
Please update to HiCExplorer version 3.6. |
Thank you for your reply both , LeiliR and joachimwolff. there is no warning message as you described. because the hic_matrix.h5 is binary file , I can't check it ,but the chr names of my reference genome is "Chr01" format , so I think the matrix are same. I will try to update to HiCExplorer version 3.6. Thank you again. |
Please check the output of The given format of the chromosome names does not follow the usual two standards of UCSC (chromosome 1 is named: |
@shiyi-pan Please check our develop branch if this provided fix solves your issue. Best, Joachim |
Sorry for reply so late. I tried to download the latest HiCExplorer and failed many times. Matrix information file. Created with HiCExplorer's hicInfo version 3.6File: hic_corrected.h5 here is my bed file: |
Are you using the develop branch? Please use the develop branch , we have fixed it there. you can use |
Hi, sorry for reply late. I have installed the develop branch and it doesn't work . Do I bed file wrong or something else wrong ? Thank you very much, LeilyR and Joachim. |
Can you specify: |
Hi,thank you for your reply. I download the HiCExplorer with the comoand : and met the error : here is my bed file: NN1138.Chrosome.gene.sorted.bed.zip Matrix information file. Created with HiCExplorer's hicInfo version 3.6File: hic_corrected.h5 could you help me fix this problem ? thank you very much. |
Hi all, Is there a way to troubleshoot the error message, "TypeError: 'NoneType' object is not subscriptable"? I am also encountering this message when I use hicPCA and specify a gene track as the extra track. Thank you! |
could you please tell us which version you are using and what is the command line you try to run? |
@shiyi-pan The error you get is due to having a gene coordinate which exceeds the length of the chromosome (IndexError: list index out of range). Please check for genes to be from the same genome version of the reference you used to map your hic data. In future we add a check to report a more clear message. |
Thank you for reply me. my hicexplorer version is 3.6 and here is my command: I have check the gene coordinate and they aren't exceeds the length of the chromosome. |
I could already see that you have : Also when --obsexpMatrix add the extension to your matrix name (obs_exp.h5) This should not cause the error you reported but you wont get the matrix otherwise. |
Thank you for your reply. |
Hi, I used hicPCA to analysis my hic data, here is my code:
hicPCA -m hic_corrected.h5 --outputFileName pca1.bw pca2.bw --format bigwig --pearsonMatrix pearson.h5 --method dist_norm --obsexpMatrix obs_exp --extraTrack NN1138.Chrosome.gene.sorted.bed
my bed file format is here:
Chr01 150057 150620 NN01g00001.1 0 - 150057 150620 0 2 169,80, 0,483,
Chr01 238606 249703 NN01g00002.1 0 + 238606 249703 0 3 2160,251,31, 0,9261,11066,
Chr01 258601 264467 NN01g00003.1 0 - 258601 264467 0 9 330,51,307,119,65,180,211,48,141, 0,756,855,1195,1400,2106,5207,5605,5725,
Chr01 264993 267366 NN01g00004.1 0 + 264993 267366 0 4 34,65,55,290, 0,474,775,2083,
and I met an error:
Traceback (most recent call last):
File "/ds3512/home/panyp/ruanjian/python36/bin/hicPCA", line 7, in
main()
File "/ds3512/home/panyp/ruanjian/python36/lib/python3.6/site-packages/hicexplorer/hicPCA.py", line 334, in main
vecs_list = correlateEigenvectorWithGeneTrack(ma, vecs_list, args.extraTrack)
File "/ds3512/home/panyp/ruanjian/python36/lib/python3.6/site-packages/hicexplorer/hicPCA.py", line 175, in correlateEigenvectorWithGeneTrack
_correlation = pearsonr(eigenvector[bin_id[0]:bin_id[1]].real,
AttributeError: 'list' object has no attribute 'real'
could you help me fix this error ? Thank you very much .
The text was updated successfully, but these errors were encountered: