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
ea47d9bc
Commit
ea47d9bc
authored
10 years ago
by
jkvis
Committed by
Vermaat
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated extractor_loader.py and test.py for the new describe.py
parent
8ef4a68a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mutalyzer/extractor_loader.py
+3
-3
3 additions, 3 deletions
mutalyzer/extractor_loader.py
mutalyzer/test.py
+2
-2
2 additions, 2 deletions
mutalyzer/test.py
with
5 additions
and
5 deletions
mutalyzer/extractor_loader.py
+
3
−
3
View file @
ea47d9bc
...
...
@@ -23,10 +23,10 @@ def main():
alt
=
f
.
read
()
f
.
close
()
extracted_allele
=
describe
.
describe
(
ref
,
alt
)
extracted_allele
=
describe
.
describe
_dna
(
ref
,
alt
)
print
describe
.
extractor
.
VERSION
print
"
HGVS:
"
+
describe
.
allele_description
(
extracted_allele
)
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
)
#main
...
...
This diff is collapsed.
Click to expand it.
mutalyzer/test.py
+
2
−
2
View file @
ea47d9bc
...
...
@@ -12,10 +12,10 @@ def main():
ref
=
"
ACGTCGATTCGCTAGCTTCGGGGGATAGATAGAGATATAGAGATATTTTT
"
alt
=
"
ACGTCGGTTCGCTAGCTTCGGGGGATAGATAGATATATAGAGATATTTTT
"
extracted_allele
=
describe
.
describe
(
ref
,
alt
)
extracted_allele
=
describe
.
describe
_dna
(
ref
,
alt
)
print
extracted_allele
print
describe
.
allele_description
(
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