aboutsummaryrefslogtreecommitdiff
path: root/workflows/pull-data/genbank/README.md
blob: 0204dd05fc0a7c05c4619d2b6b4452f643418a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# pipeline

```sh
# --- get list of IDs already in PubSeq
sparql-fetch-ids > pubseq_ids.txt
# --- fetch XML
update-from-genbank --skip pubseq_ids.txt --max 100 --outdir ~/tmp/genbank
# --- get new IDs
genbank-fetch-ids --dir ~/tmp/pubseq > genbank_ids.txt
# --- loop through IDs (pseudo code)
for id in genbank_ids.txt:
  transform-genbank-xml2yamlfa --dir ~/tmp/genbank id --outdir ~/tmp/pubseq
```

# TODO

- [ ] Add id for GenBank accession - i.e. how can we tell a record is from GenBank