Skip to content

Empty files produced by kevlar split cause crash of kevlar assemble #374

@serosko

Description

@serosko

I am trying to run the tutorial workflow with kevlar v0.7+15.gebabd62.
The Snakemake workflow stops when coming to the rule "assemble", throwing the following error message:

Traceback (most recent call last):
  File "/fast/users/roskoscs_c/work/miniconda/envs/kevlar-env/bin/kevlar", line 8, in <module>
    sys.exit(main())
  File "/fast/users/roskoscs_c/work/miniconda/envs/kevlar-env/lib/python3.6/site-packages/kevlar/__main__.py", line 30, in main
    mainmethod(args)
  File "/fast/users/roskoscs_c/work/miniconda/envs/kevlar-env/lib/python3.6/site-packages/kevlar/assemble.py", line 58, in main
    for partid, contig in assembler:
  File "/fast/users/roskoscs_c/work/miniconda/envs/kevlar-env/lib/python3.6/site-packages/kevlar/assemble.py", line 30, in assemble
    for partid, partition in partstream:
  File "/fast/users/roskoscs_c/work/miniconda/envs/kevlar-env/lib/python3.6/site-packages/kevlar/seqio.py", line 72, in parse_partitioned_reads
    name = read.name if hasattr(read, 'name') else read.defline
AttributeError: 'NoneType' object has no attribute 'defline'

I inspected the 16 possible input files for the rule (partitioned.{i}.augfastx.gz, i=0...15), and noticed that only the files partitioned.0.augfastx.gz - partitioned.4.augfastx.gz contain reads, while the subsequent files don't contain any reads. Only the assemble steps working on the empty files fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions