Mercurial > repos > glogobyte > armdb
comparison armdb_mirbase.py @ 8:6f0fa933b3ed draft
Uploaded
author | glogobyte |
---|---|
date | Wed, 20 Oct 2021 15:16:49 +0000 |
parents | 40c50594116c |
children |
comparison
equal
deleted
inserted
replaced
7:40c50594116c | 8:6f0fa933b3ed |
---|---|
3 import time | 3 import time |
4 import urllib.request | 4 import urllib.request |
5 from multiprocessing import Process, Queue | 5 from multiprocessing import Process, Queue |
6 import itertools | 6 import itertools |
7 | 7 |
8 | |
9 | |
10 #---------------------------------Arguments------------------------------------------ | 8 #---------------------------------Arguments------------------------------------------ |
11 | 9 |
12 subprocess.call(['mkdir', 'out']) | 10 subprocess.call(['mkdir', 'out']) |
13 parser = argparse.ArgumentParser() | 11 parser = argparse.ArgumentParser() |
14 | 12 |
15 parser.add_argument("-pos", "--positions", help="", action="store") | 13 parser.add_argument("-pos", "--positions", help="number of additional nucleotides", action="store") |
16 parser.add_argument("-tool_dir", "--tool_directory", help="tool directory path", action="store") | 14 parser.add_argument("-tool_dir", "--tool_directory", help="tool directory path", action="store") |
17 parser.add_argument("-gen", "--genome", help="tool directory path", action="store") | 15 parser.add_argument("-gen", "--genome", help="genome version", action="store") |
18 parser.add_argument("-gff3", "--gff", help="",action="store") | 16 parser.add_argument("-gff3", "--gff", help="gff file",action="store") |
19 args = parser.parse_args() | 17 args = parser.parse_args() |
20 | 18 |
21 #-----------------------Download and read of the gff3 file--------------------------------- | 19 #-----------------------Download and read of the gff3 file--------------------------------- |
22 | 20 |
23 def read_url(q): | 21 def read_url(q): |