Skip to content
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

Tutorial: AssertionError: Your sequence must be DNA! #164

Open
johnsolk opened this issue Nov 5, 2017 · 2 comments
Open

Tutorial: AssertionError: Your sequence must be DNA! #164

johnsolk opened this issue Nov 5, 2017 · 2 comments

Comments

@johnsolk
Copy link

johnsolk commented Nov 5, 2017

From the tutorial with this command:

kevlar simplex \
    --case proband.fq.gz --case-min 6 \
    --control mother.fq.gz --control father.fq.gz --ctrl-max 0 \
    --novel-memory 5M --novel-fpr 0.6 --threads 4 \
    --filter-memory 1M --filter-fpr 0.005 \
    --mask-files refr.fq.gz --mask-memory 5M \
    --ksize 25 --out variant-calls.vcf refr.fq.gz

The following error was raised:

[kevlar::filter] Loading mask from ['refr.fq.gz']
    1 sequences and 2499976 k-mers consumed; estimated false positive rate is 0.002
[kevlar::filter] Mask loaded in 1.04 sec
[kevlar::partition] Loading reads
[kevlar::filter] Loading input; recalculate k-mer abundances, de-duplicate reads and merge k-mers
Traceback (most recent call last):
  File "/mnt/home/ljcohen/.conda/envs/dammit/bin/kevlar", line 11, in <module>
    sys.exit(main())
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/kevlar/__main__.py", line 33, in main
    mainmethod(args)
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/kevlar/simplex.py", line 107, in main
    for variant in workflow:
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/kevlar/simplex.py", line 70, in simplex
    for cc in partitioner:
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/kevlar/partition.py", line 25, in partition
    graph.load(readstream, minabund=minabund, maxabund=maxabund)
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/kevlar/readgraph.py", line 62, in load
    for record in readstream:
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/kevlar/filter.py", line 106, in filter
    for record in readstream:
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/kevlar/novel.py", line 137, in novel
    minkmer = kevlar.revcommin(kmer)
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/kevlar/__init__.py", line 81, in revcommin
    rc = revcom(seq)
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/kevlar/__init__.py", line 77, in revcom
    return screed.dna.reverse_complement(str(seq))
  File "/mnt/home/ljcohen/.conda/envs/dammit/lib/python3.5/site-packages/screed/dna.py", line 27, in reverse_complement
    assert is_DNA(s), "Your sequence must be DNA!"
AssertionError: Your sequence must be DNA!

Are there illegal letters in the file?

@standage
Copy link
Collaborator

standage commented Nov 6, 2017

Weird. There shouldn't be any non-ACGT characters in the sequence data.

Just a thought: What version of screed and khmer do you have installed?

@johnsolk
Copy link
Author

johnsolk commented Nov 6, 2017

(kevlar-env) [ljcohen@dev-intel14 fastq2]$ interleave-reads.py --version

|| This is the script interleave-reads.py in khmer.
|| You are running khmer version 3.0.0a1+20.gc0700ce
|| You are also using screed version 1.0
||
|| If you use this script in a publication, please cite EACH of the following:
||
||   * MR Crusoe et al., 2015. http://dx.doi.org/10.12688/f1000research.6924.1
||
|| Please see http://khmer.readthedocs.io/en/latest/citations.html for details.

khmer 3.0.0a1+20.gc0700ce```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants