Open moldach opened 4 years ago
Here is the latest message from one of the IT staff helping me trouble shoot this on ComputeCanada:
Hi Matthew,
Here is an explanation for the somewhat unintuitive behaviour of
pip
on Compute Canada clusters. Since we provide a variety of pre-built Python “wheels”, our version ofpip
is configured to favour binary packages (wheels) over source distributions. Usually, this causes no problem: either the package is provided by Compute Canada, in which case we highly recommend you use the pre-built version, or it is not provided, in which case PyPI is queried to download either a binary or a source distribution, depending on what a specific project offers.However, in the case of
genomeview
, the project distributed wheels up to version 0.9.5, and then stopped, providing only source archives for the later versions. Therefore,pip
thought that 0.9.5 was the latest available version since it favoured the latest 0.9.5 wheel and ignored source-only distributions for later versions. You can change this behaviour withpip install package --no-binary :all:
. This will forcepip
not to use any wheel, and will build everything from source.By using the
--no-binary :all:
option, I was able to installgenomeview-1.0.1
. Unfortunately, this does not solve the folloxwing error:
ERROR:root:Unable to load cythonized quickconsensus module; this is likely because pysam has been updated since genomeview was originally install. To fix this, force reinstall genomeview:
pip install --upgrade --force-reinstall genomeview ```
I tried uninstalling and reinstalling
genomeview
, but to no avail. The exact same error happens on non-Compute Canada machines, i.e.genomeview-1.0.1
installs fine but fails when issuingimport genomeview
, so this seems like a problem with the package itself. At this point, your best bet is to report this to the developers of GenomeView.
GenomeView developer here. The python package 'genomeview-1.0.1' is maintained by nspies, not by us: https://pypi.org/project/genomeview/. GenomeView has not made public releases since April 2018., so I doubt it's a change on our end. GenomeView is a stand-alone piece of software made in Java, that appears to have been wrapped in python by nspies.
Hi @thomasabeelI I have not heard back from @nspies yet...
There is no e-mail listed on his github or personal site. Any idea how to contact him?
@nspies I have also encountered this error while trying to Dockerize svviz2. You can see my installation script here: https://raw.githubusercontent.com/slzarate/parliament2/master/docker_images/svviz/Dockerfile
Hi all, I've long since left academia and don't have bandwidth to support svviz2 which is both old and only unofficially released.
Unfortunately, this appears to be a packaging issue, and one I'm not sure I can fix right away. The quick fix is to install genomeview from source after all other requirements are installed, which forces it to compile from scratch against the installed dependencies (pysam):
pip install -U git+https://github.com/nspies/genomeview.git
Hi @nspies thank you for getting back to us. I can confirm that after following your suggestions I have got svviz2
up and running. Thank you very much again, and all the best in your future endeavours
Thanks, @nspies! Congrats and best of luck!
Hey @slzarate did you ever get your container working?
I'm trying it out but getting an error:
sudo docker run -v /home/mtg/svviz2:/mnt/mydata -it moldach686/svviz2 svviz ref /mnt/mydata/c_elegans.PRJNA13758.WS265.genomic.fa -b /mnt/mydata/VC109_Homo_trim_bwaMEM_sort.bam --type nslocation
Could not find fasta file 'ref' -- did you forget to specify a reference file?
Using an older version of svviz
I get the opposite error - for the bam
file.
(base) mtg@mtg-ThinkPad-P53:~/svviz2$ sudo docker run -v /home/mtg/svviz2/tmp:/mnt/mydata -it eppierj/svviz2 --ref /mnt/data/c_elegans.PRJNA13758.WS265.genomic.fa --variants /mnt/mydata/VARIANTS VC109_Homo_trim_bwaMEM_sort.bam
rpy2 could not be imported; dotplots will not be generated
Traceback (most recent call last):
File "/usr/local/bin/svviz2", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/svviz2/app/main.py", line 59, in main
datahub = get_datahub()
File "/usr/local/lib/python3.5/dist-packages/svviz2/app/main.py", line 21, in get_datahub
datahub.set_args(args)
File "/usr/local/lib/python3.5/dist-packages/svviz2/app/datahub.py", line 276, in set_args
sample = Sample(name, bam_path, self, extra_args)
File "/usr/local/lib/python3.5/dist-packages/svviz2/app/sample.py", line 57, in __init__
self._load(extra_args)
File "/usr/local/lib/python3.5/dist-packages/svviz2/app/sample.py", line 61, in _load
raise FileNotFoundError("Could not find bam file {}".format(self.bam_path))
FileNotFoundError: Could not find bam file VC109_Homo_trim_bwaMEM_sort.bam
Hi all, I've long since left academia and don't have bandwidth to support svviz2 which is both old and only unofficially released.
Unfortunately, this appears to be a packaging issue, and one I'm not sure I can fix right away. The quick fix is to install genomeview from source after all other requirements are installed, which forces it to compile from scratch against the installed dependencies (pysam):
pip install -U git+https://github.com/nspies/genomeview.git
Thx nspies! If anyone else try it and it does not works, you can add --force-reinstall: "pip install --force-reinstall -U git+https://github.com/nspies/genomeview.git".
This is a follow up to #62 (which was on a shared academic HPC).
I've now tried to download/run
svviz2
from Linux machine where I have root privileges.Then calling
svviz2
I see the error:running
sudo pip3 install --upgrade --force-reinstall genomeview
followed bysvviz2
Here is my system information: