Skip to content

Commit

Permalink
Merge pull request #54 from nextstrain/ingest/streamline-sort
Browse files Browse the repository at this point in the history
ingest: improve sorting of RSV A and RSV B with nextclade 3.2
  • Loading branch information
rneher authored Feb 22, 2024
2 parents 28e7f8e + 91c6651 commit 67e4d34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ingest/workflow/snakemake_rules/sort.smk
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ rule sort:
"data/b/sequences.fasta"
shell:
'''
nextclade3 sort {input.sequences} --output-dir tmp
seqkit rmdup tmp/nextstrain/rsv/b/sequences.fasta > data/b/sequences.fasta
seqkit rmdup tmp/nextstrain/rsv/a/sequences.fasta > data/a/sequences.fasta
seqkit rmdup {input.sequences} | \
nextclade3 sort - --output-dir tmp
mv tmp/nextstrain/rsv/b/sequences.fasta > data/b/sequences.fasta
mv tmp/nextstrain/rsv/a/sequences.fasta > data/a/sequences.fasta
rm -r tmp
'''

Expand Down

0 comments on commit 67e4d34

Please sign in to comment.