Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BIOINF588
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
Etienne MORICE
BIOINF588
Commits
1903be3c
Verified
Commit
1903be3c
authored
6 years ago
by
Etienne MORICE
Browse files
Options
Downloads
Patches
Plain Diff
Patch missing id in multiple alignment
parent
578d2d27
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alignementseq_multiple.py
+1
-1
1 addition, 1 deletion
alignementseq_multiple.py
test_alignementseq_multiple.py
+2
-2
2 additions, 2 deletions
test_alignementseq_multiple.py
with
3 additions
and
3 deletions
alignementseq_multiple.py
+
1
−
1
View file @
1903be3c
...
@@ -136,7 +136,7 @@ def join_alignments(aleft, aright, _mscore=_mscore, gap=-8):
...
@@ -136,7 +136,7 @@ def join_alignments(aleft, aright, _mscore=_mscore, gap=-8):
aseqs
[
len
(
aleft
)
+
jseq
]
+=
aright
[
jseq
][
nextj
]
aseqs
[
len
(
aleft
)
+
jseq
]
+=
aright
[
jseq
][
nextj
]
i
,
j
=
nexti
,
nextj
i
,
j
=
nexti
,
nextj
ret
=
[
SeqRecord
(
s
)
for
s
in
aleft
]
+
[
SeqRecord
(
s
)
for
s
in
aright
]
ret
=
[
SeqRecord
(
id
=
s
.
id
,
seq
=
""
)
for
s
in
aleft
]
+
[
SeqRecord
(
id
=
s
.
id
,
seq
=
""
)
for
s
in
aright
]
for
rec
,
seq
in
zip
(
ret
,
aseqs
):
for
rec
,
seq
in
zip
(
ret
,
aseqs
):
rec
.
seq
=
Seq
(
seq
[::
-
1
])
rec
.
seq
=
Seq
(
seq
[::
-
1
])
return
ret
return
ret
...
...
This diff is collapsed.
Click to expand it.
test_alignementseq_multiple.py
+
2
−
2
View file @
1903be3c
...
@@ -15,7 +15,7 @@ class MultipleAlignTestCase(unittest.TestCase):
...
@@ -15,7 +15,7 @@ class MultipleAlignTestCase(unittest.TestCase):
def
test_align_from_tree
(
self
):
def
test_align_from_tree
(
self
):
aseqs
=
[
s
.
seq
for
s
in
aseqs
=
[
s
.
seq
for
s
in
alignementseq_multiple
.
multiple_align_from_tree
(
alignementseq_multiple
.
multiple_align_from_tree
(
((
"
CHAT
"
,
"
CAT
"
),
"
HER
"
)
((
SeqRecord
(
"
CHAT
"
)
,
SeqRecord
(
"
CAT
"
)
)
,
SeqRecord
(
"
HER
"
)
)
)]
)]
aseqs
.
sort
()
aseqs
.
sort
()
...
@@ -28,7 +28,7 @@ class MultipleAlignTestCase(unittest.TestCase):
...
@@ -28,7 +28,7 @@ class MultipleAlignTestCase(unittest.TestCase):
import
tree_generator
import
tree_generator
import
alignementseq
import
alignementseq
seqs
=
[
SeqRecord
(
s
)
for
s
in
(
"
CHAT
"
,
"
CAT
"
,
"
HER
"
)
]
seqs
=
[
SeqRecord
(
seq
=
s
)
for
s
in
(
"
CHAT
"
,
"
CAT
"
,
"
HER
"
)
]
tree
=
tree_generator
.
tree_build
(
seqs
,
alignementseq
.
vec_align
)
tree
=
tree_generator
.
tree_build
(
seqs
,
alignementseq
.
vec_align
)
aseqs
=
alignementseq_multiple
.
multiple_align_from_linkage_matrix
(
aseqs
=
alignementseq_multiple
.
multiple_align_from_linkage_matrix
(
seqs
,
seqs
,
...
...
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