Skip to content

Commit 23e3cff

Browse files
committed
Remove intermediate per-site annotation table
1 parent d81601f commit 23e3cff

File tree

3 files changed

+1
-61
lines changed

3 files changed

+1
-61
lines changed

workflow/rules/vaf.smk

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,6 @@ rule snps_to_ancestor:
5252
"""
5353

5454

55-
rule annotation:
56-
threads:1
57-
conda: "../envs/biopython.yaml"
58-
shadow: "shallow"
59-
input:
60-
gb = OUTDIR/"reference.gb",
61-
ref = OUTDIR/"reference.fasta",
62-
features = Path(config["FEATURES_JSON"]).resolve()
63-
output:
64-
df = temp(OUTDIR/"annotation.csv")
65-
log:
66-
LOGDIR / "annotation" / "log.txt"
67-
script:
68-
"../scripts/report/get_annotation.py"
69-
70-
7155
rule mask_tsv:
7256
threads: 1
7357
conda: "../envs/biopython.yaml"
@@ -92,8 +76,7 @@ rule filter_tsv:
9276
min_alt_rv = 2,
9377
min_alt_dp = 2,
9478
input:
95-
tsv = OUTDIR/"vaf"/"{sample}.masked.tsv",
96-
annotation = OUTDIR/"annotation.csv"
79+
tsv = OUTDIR/"vaf"/"{sample}.masked.tsv"
9780
output:
9881
filtered_tsv = temp(OUTDIR/"vaf"/"{sample}.masked.prefiltered.tsv")
9982
log:

workflow/scripts/filter_tsv.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ data <- mutate(
4343
# Remove duplicated features
4444
data <- distinct(data, pick(!GFF_FEATURE), .keep_all = TRUE)
4545

46-
# Change annotation to gb2seq annotation
47-
features <- read_csv(snakemake@input[["annotation"]])
48-
49-
data <- data %>%
50-
left_join(features) %>%
51-
rename(GB_FEATURE = GEN)
52-
5346
log_info("Saving results")
5447
write_tsv(
5548
data,

workflow/scripts/report/get_annotation.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)