Skip to content

Commit 51d643e

Browse files
committed
Small format edits
1 parent d9dfe10 commit 51d643e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgscatalog.match/src/pgscatalog/match/cli/intersect_cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ def run_intersect():
108108

109109
# Output counts
110110
logger.info("Outputting variant counts -> intersect_counts_$.txt")
111-
with open('intersect_counts_{}.txt'.format(chrom), 'w') as outf:
111+
with open('intersect_counts_{}.txt'.format(args.chrom), 'w') as outf:
112112
outf.write('\n'.join(map(str, [n_target, n_ref, n_matched])))
113113

114114

115115
def read_var_general(path, chrom=None):
116116
with xopen(path, "rt") as f:
117117
# ToDo: check if this is memory inefficent
118118
reader = csv.DictReader(filter(lambda row: row[:2]!='##', f), delimiter="\t") # need to remove comments of VCF-like characters, might be fully in memory though
119-
if (chrom == None) or (chrom == 'ALL'):
119+
if (chrom is None) or (chrom == 'ALL'):
120120
for row in reader:
121121
yield row
122122
else:

0 commit comments

Comments
 (0)