We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 72ce91d + b1f42b4 commit 373c59bCopy full SHA for 373c59b
sv2/sv2Config.py
@@ -1,4 +1,5 @@
1
#!/usr/bin/env python2
2
+import os.path
3
from sv2_backend import dump_json,errFH,get_path,query_yes_no
4
try:from configparser import ConfigParser
5
except ImportError:from ConfigParser import ConfigParser
@@ -11,7 +12,10 @@ def __init__(self):
11
12
self.fh = Config.ini
13
else:
14
self.fh=get_path()+'/config/sv2.ini'
- self.json=get_path()+'/config/sv2_clf.json'
15
+ if os.path.exists(os.path.join(os.path.dirname(self.fh), 'sv2_clf.json')):
16
+ self.json=os.path.join(os.path.dirname(self.fh), 'sv2_clf.json')
17
+ else:
18
+ self.json=get_path()+'/config/sv2_clf.json'
19
self.fasta_chr_flag=False
20
self.clfs=None
21
self.gtclf={} # classifiers for genotyping
0 commit comments