Skip to content

Commit

Permalink
fixup: Use tsv-append instead
Browse files Browse the repository at this point in the history
Co-authored-by: Jover Lee <[email protected]>
  • Loading branch information
j23414 and joverlee521 committed Apr 15, 2024
1 parent 9247490 commit 419a689
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ingest/rules/nextclade.smk
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,7 @@ rule aggregate_gene_coverage_by_gene:
gene_coverage_all="results/gene_coverage_all_{gene}.tsv",
shell:
"""
# Capture header for tsv
head -n1 {input.gene_coverage[0]} > {output.gene_coverage_all}
# Capture rest of tsv lines from all files
for FILE in {input.gene_coverage}; do
awk 'NR>1' $FILE >> {output.gene_coverage_all}
done
tsv-append -H {input.gene_coverage} > {output.gene_coverage_all}
"""

rule append_gene_coverage_columns:
Expand Down

0 comments on commit 419a689

Please sign in to comment.