Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
mutalyzer
Commits
141ad7f2
Commit
141ad7f2
authored
10 years ago
by
jkvis
Committed by
Vermaat
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Removed debug information
parent
ea47d9bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mutalyzer/describe.py
+7
-8
7 additions, 8 deletions
mutalyzer/describe.py
mutalyzer/extractor_loader.py
+3
-3
3 additions, 3 deletions
mutalyzer/extractor_loader.py
mutalyzer/test.py
+0
-1
0 additions, 1 deletion
mutalyzer/test.py
with
10 additions
and
12 deletions
mutalyzer/describe.py
+
7
−
8
View file @
141ad7f2
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
mutalyzer/extractor_loader.py
+
3
−
3
View file @
141ad7f2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
mutalyzer/test.py
+
0
−
1
View file @
141ad7f2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment