Entering edit mode
3.4 years ago
rheab1230
▴
140
Hello everyone,
I am trying to use vcfstats tool.
I am writing the following command but its showing error:
vcfstats -h
the error:
Traceback (most recent call last):
File "/opt/ohpc/pub/libs/gnu8/numpy/1.15.3/lib64/python3.4/site-packages/numpy/core/__init__.py", line 16, in <module>
from . import multiarray
ImportError: cannot import name 'multiarray' from partially initialized module 'numpy.core' (most likely due to a circular import) (/opt/ohpc/pub/libs/gnu8/numpy/1.15.3/lib64/python3.4/site-packages/numpy/core/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/anaconda3/bin/vcfstats", line 5, in <module>
from vcfstats import main
File "/home/anaconda3/lib/python3.8/site-packages/vcfstats/__init__.py", line 9, in <module>
from cyvcf2 import VCF
File "/home/anaconda3/lib/python3.8/site-packages/cyvcf2/__init__.py", line 1, in <module>
from .cyvcf2 import (VCF, Variant, Writer, r_ as r_unphased, par_relatedness,
File "cyvcf2/cyvcf2.pyx", line 1, in init cyvcf2.cyvcf2
File "/opt/ohpc/pub/libs/gnu8/numpy/1.15.3/lib64/python3.4/site-packages/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/opt/ohpc/pub/libs/gnu8/numpy/1.15.3/lib64/python3.4/site-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/opt/ohpc/pub/libs/gnu8/numpy/1.15.3/lib64/python3.4/site-packages/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/opt/ohpc/pub/libs/gnu8/numpy/1.15.3/lib64/python3.4/site-packages/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/opt/ohpc/pub/libs/gnu8/numpy/1.15.3/lib64/python3.4/site-packages/numpy/core/__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was:
cannot import name 'multiarray' from partially initialized module 'numpy.core' (most likely due to a circular import) (/opt/ohpc/pub/libs/gnu8/numpy/1.15.3/lib64/python3.4/site-packages/numpy/core/__init__.py)
I have install numpy package:
pip install numpy
the output of the above command:
Requirement already satisfied: numpy in /opt/ohpc/pub/libs/gnu8/numpy/1.15.3/lib64/python3.4/site-packages (1.15.3)
Can anyone please help me out with this.
Thank You.
In my experience, mixing pip with conda hasn't always played out well. You may want to
conda install numpy
to make sure everyone knows where everyone else lives.I did the above. but I am still getting error.
Does vcfstats have a github repo? You may want to browse through and if necessary, open an issue there.
Yes, it has. I will try to open an issue there.
Hello, I am trying to run vcfstats. the command:
the error:
Its creating two new files T.txt and T.plot.R but T.col.png is not getting generated. Can you please help me out with this.
I don't see an error message in the output you posted above. Is that all the messages the command printed out?
There is no error. But the final file containing the plot is not getting generated.
There should be an error message. What is the program exit code? You will need to run the program again and immediately after it's done, run
echo $?
. Do this:Also, what's the content of
T.plot.R
?Content of T.plot.R
This looks like code to create the plot. I do see a bunch of problems with the code (which could be copy-paste issues) - can you upload the file to a GitHub gist instead of copy-pasting it here? Make sure to upload the file as is, not copy-paste it to the gist.
Okay, I will do that.
This is the link: https://github.com/rhea106/R-code/blob/main/T.plot.R
Thanks. The
ylab(...)ls
part stands out to me. Are you using a config file or somehow supplying a--ggs
value?Plus, see the block in the gist under
figtype=='pie'
(lines 34-59, especially line 43) and how it's missing in your comment above, making thep = p+
line above it meaningless? It is probably a copy paste error - please be more careful in the future, as these errors can be insanely hard to detect when they're even a tiny bit less obvious.I am sorry for that. I will definitely be careful next time. Yes, I am providing a config file.
Do you mention any ggplot parameters in the config file?
That's the exact content from their example in the manual, so it should work. This is getting to a point where the developer would be the best person to help out, so email them or open an issue on github.
Yes, I have contact the developer regarding this.
I also have one more doubt. I am trying to run this command:
I am getting this error:
I downloaded and updated the software to latest version.