Skip to content
Snippets Groups Projects
Commit 141ad7f2 authored by jkvis's avatar jkvis Committed by Vermaat
Browse files

Removed debug information

parent ea47d9bc
No related branches found
No related tags found
No related merge requests found
......@@ -303,14 +303,13 @@ def describe_dna(s1, s2):
description = Allele()
in_transposition = 0
variant_extract = extractor.extract(str(s1), len(s1), str(s2), len(s2), 0)
for variant in variant_extract.variants:
print (variant.type, variant.reference_start,
variant.reference_end, variant.sample_start,
variant.sample_end, variant.transposition_start,
variant.transposition_end)
print (variant.type & extractor.TRANSPOSITION_OPEN, variant.type &
extractor.TRANSPOSITION_CLOSE)
for variant in extractor.extract(unicode(s1), len(s1), unicode(s2), len(s2), 0):
# print (variant.type, variant.reference_start,
# variant.reference_end, variant.sample_start,
# variant.sample_end, variant.transposition_start,
# variant.transposition_end)
# print (variant.type & extractor.TRANSPOSITION_OPEN, variant.type &
# extractor.TRANSPOSITION_CLOSE)
if variant.type & extractor.TRANSPOSITION_OPEN:
if not in_transposition:
......
......@@ -25,9 +25,9 @@ def main():
extracted_allele = describe.describe_dna(ref, alt)
print "Description Extractor Version " + describe.extractor.VERSION
#print "HGVS: " + describe.allele_description(extracted_allele)
print "JSON: " + json.dumps({"reference_sequence": ref, "sample_sequence": alt, "allele_description": extracted_allele}, cls=MyEncoder)
#print "Description Extractor Version " + describe.extractor.VERSION
print extracted_allele
#print "JSON: " + json.dumps({"reference_sequence": ref, "sample_sequence": alt, "allele_description": extracted_allele}, cls=MyEncoder)
#main
......
......@@ -15,7 +15,6 @@ def main():
extracted_allele = describe.describe_dna(ref, alt)
print extracted_allele
#print describe.allele_description(extracted_allele)
print json.dumps({"reference_sequence": ref, "sample_sequence": alt,
"allele_description": extracted_allele}, cls=MyEncoder)
#main
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment