Skip to content

Commit

Permalink
Revert "fix(ingest): Remove tsv-utils so that image can build on main (
Browse files Browse the repository at this point in the history
…#2185)" (#2240)

This reverts commit f076cc1.

We can add tsv-utils back now that I've made it available for aarch64 in conda-forge: https://github.com/conda-forge/tsv-utils-feedstock

This reduces amount of code to maintain, fewer Python scripts.
  • Loading branch information
corneliusroemer authored Jul 3, 2024
1 parent 823ab18 commit fdd1793
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 73 deletions.
11 changes: 4 additions & 7 deletions ingest/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,18 @@ rule align:

rule process_alignments:
input:
script="scripts/process_alignments.py",
results=expand(
"results/nextclade_{segment}.tsv",
segment=config["nucleotide_sequences"],
),
output:
merged="results/nextclade_merged.tsv",
params:
log_level=LOG_LEVEL,
shell:
"""
python {input.script} \
--input "{input.results}" \
--output {output.merged} \
--log-level {params.log_level} \
tsv-append --header {input.results} \
| tsv-select --header --fields seqName,clade \
| tsv-filter --header --not-empty clade \
> {output.merged}
"""


Expand Down
1 change: 1 addition & 0 deletions ingest/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ dependencies:
- requests
- seqkit
- snakemake
- tsv-utils
- unzip
66 changes: 0 additions & 66 deletions ingest/scripts/process_alignments.py

This file was deleted.

0 comments on commit fdd1793

Please sign in to comment.