Skip to content

ignore samples with no contigs greater than 1500bp in transeq, minimap and wtp #3

@lingyi-owl

Description

@lingyi-owl

@papanikos
I changed the strategy of running the programs of transeq and hmmsearch so each sample is run separately after length filtering step. Previously, samples were concatenated together before running these programs. The new strategy would make more sense when few samples are added into the workflow in the later phase.

Some samples have no contigs greater than 1500 bp and thus have an empty output file after length filtering step.
Now the downstream program (transeq) would run for the rest of the samples and throw an error as below.

It would be better to show an error message like "no contig is greater than 1500bp in XXX sample, so the XXX program neglected this sample..."

Translate nucleic acid sequences
Translate nucleic acid sequences
Translate nucleic acid sequences
Error: Unable to read sequence 'results/microbial/SRR5665121/scaffolds/SRR5665121_scaffolds_gt1500.fasta'
Died: transeq terminated: Bad value for '-sequence' and no prompt
[Sat Aug 28 23:42:59 2021]
Error in rule transeq:
    jobid: 40
    output: results/microbial/SRR5665121/scaffolds/SRR5665121_transeq.fasta
    log: logs/microbial/SRR5665121/transeq/SRR5665121.transeq.log (check log file(s) for error message)
    conda-env: /net/phage/linuxhome/mgx/people/lingyi/fecal_snakemake_test/.snakemake/conda/688f8d31388dbe802b1aa9aa3fa56ab5
    shell:
        transeq -sequence results/microbial/SRR5665121/scaffolds/SRR5665121_scaffolds_gt1500.fasta -outseq results/microbial/SRR5665121/scaffolds/SRR5665121_transeq.fasta -frame 6 -clean
        (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: /net/phage/linuxhome/mgx/people/lingyi/fecal_snakemake_test/.snakemake/log/2021-08-28T234007.151332.snakemake.log

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