Skip to content

Commit

Permalink
modified: setup.py
Browse files Browse the repository at this point in the history
	modified:   svdb/__main__.py
	modified:   svdb/readVCF.py
  • Loading branch information
J35P312 committed Apr 21, 2023
1 parent a7cb2b5 commit c8c5380
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
ext_modules = []

setup(name='svdb',
version='2.8.1',
version='2.8.2',
url="https://github.com/J35P312/SVDB",
author="Jesper Eisfeldt",
author_email="[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion svdb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def make_query_calls (args, queries, keyword):
query_module.main(args)

def main():
version = "2.8.1"
version = "2.8.2"
parser = argparse.ArgumentParser(
"""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)
parser.add_argument('--build', help="create a db",
Expand Down
7 changes: 7 additions & 0 deletions svdb/readVCF.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ def readVCFLine(line):
chrA = chrB
chrB = chrT
posA, posB = posB, posA

#intrachromosomal variant
if chrA == chrB:
if posB < posA:
posA, posB = posB, posA


event_type = "BND"

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

0 comments on commit c8c5380

Please sign in to comment.