summaryrefslogtreecommitdiff
path: root/giab_clindex
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2022-09-26 01:32:10 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2022-09-26 01:32:10 -0500
commit2f1781ada00bdd5d4a0181d669f8f4b8d74fccc7 (patch)
tree8e05cc52e062cb4d14382d7bd83681943e6bc02e /giab_clindex
downloadgiab_index_autodl-2f1781ada00bdd5d4a0181d669f8f4b8d74fccc7.tar.xz
giab_index_autodl-2f1781ada00bdd5d4a0181d669f8f4b8d74fccc7.zip
Add basic indexes
Diffstat (limited to 'giab_clindex')
-rwxr-xr-xgiab_clindex14
1 files changed, 14 insertions, 0 deletions
diff --git a/giab_clindex b/giab_clindex
new file mode 100755
index 0000000..e537b81
--- /dev/null
+++ b/giab_clindex
@@ -0,0 +1,14 @@
+#!/bin/env python3
+
+import argparse
+from clnindexdl import download_all_from_index
+from pathlib import Path
+
+parser = argparse.ArgumentParser()
+parser.add_argument('index', type=argparse.FileType('r'))
+parser.add_argument('--threads', '-t', type=int, default=6)
+parser.add_argument('--output_dir', '-o', type=str, default='.')
+args = parser.parse_args()
+
+if __name__ == "__main__":
+ download_all_from_index( args.index, Path( args.output_dir ), args.threads )