Virome taxonomic profiling using BLAST

public public 1yr ago Version: v0.4 0 bookmarks

Snakemake workflow for virome taxonomic profiling using BLAST. It's a subworkflow based on hivlab/discover-virome, uses assembled contigs as input.

Code Snippets

18
19
shell:
    "(get_species_taxids.sh -t {params.taxid} > {output} || true)"
175
176
177
178
179
180
181
182
run:
    tab = concatenate_tables(input, sep=",", cols_to_integer=params.ranks)
    mask = tab.superkingdom == VIRUSES_TAXID
    mask = mask.fillna(False)
    vir = tab[mask]
    non_vir = tab[~mask]
    vir.to_csv(output.viral, index=False)
    non_vir.to_csv(output.non_viral, index=False)
SnakeMake From line 175 of rules/blast.smk
194
195
shell:
    "cat {input} > {output}"
SnakeMake From line 194 of rules/blast.smk
37
38
39
40
41
42
43
shell:
    """
    RepeatMasker {params.extra} -pa {threads} {input} -dir {params.outdir}
    if head -n 1 {output.out} | grep -q 'There were no repetitive sequences detected'; then
        ln -sr {input} {output.masked} && touch {output.tbl}
    fi
    """
31
32
shell:
    "python -u scripts/fix_fasta.py --input {input[0]} --output {output[0]}"
SnakeMake From line 31 of main/Snakefile
ShowHide 4 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/hivlab/blast-virome
Name: blast-virome
Version: v0.4
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: None
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...