Rosemeis / pcangsd

Framework for analyzing low depth NGS data in heterogeneous populations using PCA.
GNU General Public License v3.0
46 stars 11 forks source link

UnboundLocalError: local variable 'pr' referenced before assignment #45

Closed lauraivillegasr closed 3 years ago

lauraivillegasr commented 3 years ago

Hi! I get the following error when trying to run pcangsd. I am not sure of how to solve it.

File "/home/user/pcangsd/covariance.py", line 75, in emPCA del d, eVal, eVec, loading, mapTest, partcov, pr UnboundLocalError: local variable 'pr' referenced before assignment

Rosemeis commented 3 years ago

Hi,

Something goes wrong in the automatic selection of number of significant eigenvectors, where it doesn't seem to find anything. You can override the automatic selection with the "-e" parameter. Can I ask you to give a little detail about your dataset (# samples, # sites). :-)

Best, Jonas

lauraivillegasr commented 3 years ago

Hi! I have 4 samples and 4421112 sites. It has worked now using -e 3 Thank you!