Skip to content

Commit

Permalink
Add gb2seq annotation to all analyses
Browse files Browse the repository at this point in the history
  • Loading branch information
SeviJordi committed Sep 27, 2023
1 parent 78830fe commit ed87977
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion workflow/rules/vaf.smk
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ rule snps_to_ancestor:
sed 's/'$ref'/'{wildcards.sample}'/g' {wildcards.sample}.tsv | cat > {output.tsv}
"""

rule annotation:
threads:1
conda: "../envs/biopython.yaml"
shadow: "shallow"
input:
gb = OUTDIR/"reference.gb",
ref = OUTDIR/"reference.fasta"
output:
df = temp(OUTDIR/"annotation.csv")
log:
LOGDIR / "annotation" / "log.txt"
script:
"../scripts/report/get_annotation.py"

rule format_tsv:
threads:1
Expand Down Expand Up @@ -94,7 +107,8 @@ rule filter_tsv:
threads: 1
conda: "../envs/renv.yaml"
input:
tsv = OUTDIR/f"{OUTPUT_NAME}.masked.tsv"
tsv = OUTDIR/f"{OUTPUT_NAME}.masked.tsv",
annotation = OUTDIR/"annotation.csv"
output:
filtered_tsv = OUTDIR/f"{OUTPUT_NAME}.masked.filtered.tsv"
log:
Expand Down

0 comments on commit ed87977

Please sign in to comment.