Coder Social home page Coder Social logo

Comments (3)

SilenWang avatar SilenWang commented on May 29, 2024

Hi!

I'm trying to use vk primer to design some primers and running into an importError with Bio.Alphabet:

 vk primer snip --ref=WBcel235 data/test.vcf.gz

Traceback (most recent call last):
  File "/anaconda3/envs/vcf-kit/lib/python3.7/site-packages/vcfkit/primer.py", line 26, in <module>
    from vcfkit.utils.primer_vcf import primer_vcf
  File "/anaconda3/envs/vcf-kit/lib/python3.7/site-packages/vcfkit/utils/primer_vcf.py", line 11, in <module>
    from vcfkit.utils.primer3 import primer3
  File "/anaconda3/envs/vcf-kit/lib/python3.7/site-packages/vcfkit/utils/primer3.py", line 9, in <module>
    from Bio.Alphabet.IUPAC import IUPACAmbiguousDNA as DNA_SET
  File "/anaconda3/envs/vcf-kit/lib/python3.7/site-packages/Bio/Alphabet/__init__.py", line 21, in <module>
    "Bio.Alphabet has been removed from Biopython. In many cases, the alphabet can simply be ignored and removed from scripts. In a few cases, you may need to specify the ``molecule_type`` as an annotation on a SeqRecord for your script to work correctly. Please see https://biopython.org/wiki/Alphabet for more information."
ImportError: Bio.Alphabet has been removed from Biopython. In many cases, the alphabet can simply be ignored and removed from scripts. In a few cases, you may need to specify the ``molecule_type`` as an annotation on a SeqRecord for your script to work correctly. Please see https://biopython.org/wiki/Alphabet for more information.

I tried simply commenting out the Bio.Alphabet line from the files, but then I get a core dump instead of an output. Do you have suggestions on a better way to get around this error? I installed vcf-kit using the instructions on the GitHub front page.

Thank you!

Since biopython 1.78, Bio.Alphabet was removed, I think downgrade biopython to an older version will solve this.

from vcf-kit.

danielecook avatar danielecook commented on May 29, 2024

@SilenWang @kimh11 -

I recommend using the dockerized version of vcf-kit:

docker run -it andersenlab/vcf-kit vk primer

Unfortunately I cannot always keep up with changing python dependencies, but the docker image is much more static and should work.

Please let me know if you run into issues.

from vcf-kit.

kimh11 avatar kimh11 commented on May 29, 2024

Thank you both for your helpful replies!

I ended up using the Docker container with singularity and it's been working great.

singularity pull docker://andersenlab/vcf-kit
singularity run --fakeroot --writable vcf-kit_latest.sif 

from vcf-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.