Skip to content

Commit c8c5380

Browse files
committed
modified: setup.py
modified: svdb/__main__.py modified: svdb/readVCF.py
1 parent a7cb2b5 commit c8c5380

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
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.8.1',
22+
version='2.8.2',
2323
url="https://github.com/J35P312/SVDB",
2424
author="Jesper Eisfeldt",
2525
author_email="[email protected]",

svdb/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def make_query_calls (args, queries, keyword):
4646
query_module.main(args)
4747

4848
def main():
49-
version = "2.8.1"
49+
version = "2.8.2"
5050
parser = argparse.ArgumentParser(
5151
"""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)
5252
parser.add_argument('--build', help="create a db",

svdb/readVCF.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ def readVCFLine(line):
107107
chrA = chrB
108108
chrB = chrT
109109
posA, posB = posB, posA
110+
111+
#intrachromosomal variant
112+
if chrA == chrB:
113+
if posB < posA:
114+
posA, posB = posB, posA
115+
116+
110117
event_type = "BND"
111118

112119
return chrA, posA, chrB, posB, event_type, description, format

0 commit comments

Comments
 (0)