Commit 3cdabfc 1 parent d5f3e7a commit 3cdabfc Copy full SHA for 3cdabfc
File tree 1 file changed +13
-0
lines changed
pgscatalog.match/src/pgscatalog/match/cli
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 12
12
def run_intersect ():
13
13
args = parse_args ()
14
14
15
+ if args .verbose :
16
+ logging .getLogger ("pgscatalog.core" ).setLevel (logging .DEBUG )
17
+ logging .getLogger ("pgscatalog.match" ).setLevel (logging .DEBUG )
18
+ logger .setLevel (logging .DEBUG )
19
+ logger .debug ("Verbose logging enabled" )
20
+
15
21
# Process & sort reference variants
16
22
logger .info ("Reading & sorting REFERENCE variants: {}" .format (args .reference ))
17
23
with xopen ('reference_variants.txt' , 'wt' ) as outf :
@@ -163,6 +169,13 @@ def parse_args(args=None):
163
169
required = False ,
164
170
help = "whether to limit matches to specific chromosome of the reference" ,
165
171
)
172
+ parser .add_argument (
173
+ "-v" ,
174
+ "--verbose" ,
175
+ dest = "verbose" ,
176
+ action = "store_true" ,
177
+ help = "<Optional> Extra logging information" ,
178
+ )
166
179
return parser .parse_args (args )
167
180
168
181
You can’t perform that action at this time.
0 commit comments