aboutsummaryrefslogtreecommitdiff
path: root/workflows/pull-data/genbank/README.md
diff options
context:
space:
mode:
authorPjotr Prins2020-12-31 10:25:26 +0000
committerPjotr Prins2020-12-31 10:25:26 +0000
commite33ce088225b9975a84a6724ab8e3a9f82964ec6 (patch)
tree338f687aaf75755158352ef7524d0af3d716cfdb /workflows/pull-data/genbank/README.md
parent63b75e9cf095737fa8d700d1fd1e4d90e17999f5 (diff)
downloadbh20-seq-resource-e33ce088225b9975a84a6724ab8e3a9f82964ec6.tar.gz
bh20-seq-resource-e33ce088225b9975a84a6724ab8e3a9f82964ec6.tar.lz
bh20-seq-resource-e33ce088225b9975a84a6724ab8e3a9f82964ec6.zip
genbank: pseudo workflow
Diffstat (limited to 'workflows/pull-data/genbank/README.md')
-rw-r--r--workflows/pull-data/genbank/README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/workflows/pull-data/genbank/README.md b/workflows/pull-data/genbank/README.md
new file mode 100644
index 0000000..ee67e70
--- /dev/null
+++ b/workflows/pull-data/genbank/README.md
@@ -0,0 +1,13 @@
+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
+```