Skip to content

Commit 97a48a7

Browse files
committed
set default method to use sqlite
1 parent da0c0de commit 97a48a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PrecisionProDB.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def main():
5353
parser.add_argument('--PEFF', help='If set, PEFF format file(s) will be generated. Default: do not generate PEFF file(s).', action='store_true')
5454
parser.add_argument('--keep_all', help='If set, do not delete files generated during the run', action='store_true')
5555

56-
parser.add_argument('-S','--sqlite', help='''A path of sqlite file for re-use of annotation info. default '', do not use sqlite. The program will create a sqlite file if the file does not exist. If the file already exists, the program will use data stored in the file. It will cause error if the content in the sqlite file is not as expected. ''', default='', type=str)
56+
parser.add_argument('-S','--sqlite', help='''A path of sqlite file for re-use of annotation info. default outprefix + '.sqlite'. The program will create a sqlite file if the file does not exist. If the file already exists, the program will use data stored in the file. It will cause error if the content in the sqlite file is not as expected. To disable sqlite, set to "NONE". ''', default='', type=str)
5757
parser.add_argument('--info_field', help='fields to use in the INFO column of the vcf file to filter variants. Default None', default = None)
5858
parser.add_argument('--info_field_thres', help='threhold for the info field. Default None, do not filter any variants. If set "--info_filed AF --info_field_thres 0.01", only keep variants with AF >= 0.01', default = None)
5959

@@ -77,6 +77,10 @@ def main():
7777
keep_all = f.keep_all
7878
file_sqlite = f.sqlite
7979
print(f)
80+
if file_sqlite == '':
81+
file_sqlite = outprefix + '.sqlite'
82+
elif file_sqlite == 'NONE':
83+
file_sqlite = ''
8084

8185

8286
time0 = time.time()

0 commit comments

Comments
 (0)