Skip to content

Commit

Permalink
use tab separator in import
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Van der Jeugt authored and Felix Van der Jeugt committed Feb 17, 2021
1 parent dd047aa commit 4fd4d41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/static_database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
sqlite3 output.db < workflows/static_database/structure.sql
# Read all generated data into this database
zcat data/tables/ec_numbers.tsv.gz | sed "s/\t/$/g" | sqlite3 -csv -separator "$" output.db '.import /dev/stdin ec_numbers'
zcat data/tables/go_terms.tsv.gz | sed "s/\t/$/g" | sqlite3 -csv -separator "$" output.db '.import /dev/stdin go_terms'
zcat data/tables/interpro_entries.tsv.gz | sed "s/\t/$/g" | sqlite3 -csv -separator "$" output.db '.import /dev/stdin interpro_entries'
zcat data/tables/taxons.tsv.gz | sed "s/\t/$/g" | sqlite3 -csv -separator "$" output.db '.import /dev/stdin taxons'
zcat data/tables/lineages.tsv.gz | sed "s/\t/$/g" | sqlite3 -csv -separator "$" output.db '.import /dev/stdin lineages'
zcat data/tables/ec_numbers.tsv.gz | sqlite3 -csv -separator ' ' output.db '.import /dev/stdin ec_numbers'
zcat data/tables/go_terms.tsv.gz | sqlite3 -csv -separator ' ' output.db '.import /dev/stdin go_terms'
zcat data/tables/interpro_entries.tsv.gz | sqlite3 -csv -separator ' ' output.db '.import /dev/stdin interpro_entries'
zcat data/tables/taxons.tsv.gz | sqlite3 -csv -separator ' ' output.db '.import /dev/stdin taxons'
zcat data/tables/lineages.tsv.gz | sqlite3 -csv -separator ' ' output.db '.import /dev/stdin lineages'
# Compress the database before uploading it to a Github release
zip output.zip output.db
Expand Down

0 comments on commit 4fd4d41

Please sign in to comment.