Skip to content

Commit

Permalink
Merge pull request #58 from nextstrain/fix-csvtk
Browse files Browse the repository at this point in the history
ingest: fix csvtk quotes
  • Loading branch information
joverlee521 authored May 2, 2024
2 parents fe37759 + 0c542de commit 29044f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ingest/rules/fetch_from_ncbi.smk
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ rule format_ncbi_dataset_report:
--package {input.dataset_package} \
--fields {params.ncbi_datasets_fields:q} \
--elide-header \
| csvtk fix-quotes -Ht \
| csvtk add-header -t -n {params.ncbi_datasets_fields:q} \
| csvtk rename -t -f accession -n accession-rev \
| csvtk -tl mutate -f accession-rev -n accession -p "^(.+?)\." \
| csvtk -t mutate -f accession-rev -n accession -p "^(.+?)\." \
| csvtk del-quotes -t \
| tsv-select -H -f accession --rest last \
> {output.ncbi_dataset_tsv}
"""
Expand Down

0 comments on commit 29044f0

Please sign in to comment.