aboutsummaryrefslogtreecommitdiff
path: root/workflows/pull-data/genbank/README.md
blob: 22dd920ef5172bc75fd2dd170153046fd9ef037f (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 > 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