Skip to content

Commit 817aa3e

Browse files
authored
Merge pull request #62 from ramprasadn/master
update tmp file names
2 parents 231de54 + 21c5ef6 commit 817aa3e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
ext_modules = []
2020

2121
setup(name='svdb',
22-
version='2.7.0',
22+
version='2.7.1',
2323
url="https://github.com/J35P312/SVDB",
2424
author="Jesper Eisfeldt",
2525
author_email="jesper.eisfeldt@scilifelab.se",

svdb/__main__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,21 @@ def make_query_calls (args, queries, keyword):
2626
args.out_frq = out_frqs[ind]
2727
if ind < len(queries)-1:
2828
args.prefix = orig_prefix + "_" + str(ind)
29+
output_file = args.prefix + "_query.vcf_tmp"
2930
else:
3031
args.prefix = orig_prefix
31-
query_module.main(args)
32+
output_file = args.prefix + "_query.vcf"
33+
query_module.main(args, output_file)
3234
if ind > 0:
3335
os.remove(args.query_vcf)
34-
args.query_vcf = args.prefix + "_query.vcf"
36+
args.query_vcf = output_file
3537
else:
3638
print("please ensure that both count and frequency tags are specified for all samples")
3739
else:
3840
query_module.main(args)
3941

4042
def main():
41-
version = "2.7.0"
43+
version = "2.7.1"
4244
parser = argparse.ArgumentParser(
4345
"""SVDB-{}, use the build module to construct databases, use the query module to query the database usign vcf files, or use the hist module to generate histograms""".format(version), add_help=False)
4446
parser.add_argument('--build', help="create a db",

svdb/query_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
from . import database, overlap_module, readVCF
99

1010

11-
def main(args):
11+
def main(args, output_file):
1212
# start by loading the variations
1313
queries = []
1414
if args.prefix:
15-
f = open(args.prefix + "_query.vcf", "w")
15+
f = open(output_file, "w")
1616
noOCCTag = 1
1717
infoFound = 0
1818

0 commit comments

Comments
 (0)