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
0ad0ddb7
Verified
Commit
0ad0ddb7
authored
6 years ago
by
Etienne MORICE
Browse files
Options
Downloads
Patches
Plain Diff
Suite et fixup, sets for multiple structural
parent
7ed8b5f5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alignementseq_tests.py
+5
-17
5 additions, 17 deletions
alignementseq_tests.py
with
5 additions
and
17 deletions
alignementseq_tests.py
+
5
−
17
View file @
0ad0ddb7
...
...
@@ -125,7 +125,7 @@ class BalibaseTestCase(unittest.TestCase):
structs
=
[]
for
i
,
record
in
enumerate
(
seqs
):
if
i
>=
head
:
if
head
and
i
>=
head
:
break
for
extension
,
fformat
,
parse
in
self
.
formats
:
...
...
@@ -173,18 +173,6 @@ class BalibaseTestCase(unittest.TestCase):
continue
yield
seqs
[
0
],
seqs
[
1
],
structs
[
0
],
structs
[
1
],
seq_fname
def
get_dataset_records
(
self
):
"""
Generator function to iterate over the record generator of each
unaligned fasta file.
"""
dataset_dir
=
os
.
path
.
join
(
self
.
balibase_path
,
"
RV11.unaligned
"
)
for
filename
in
os
.
listdir
(
dataset_dir
):
records
=
Bio
.
SeqIO
.
parse
(
os
.
path
.
join
(
dataset_dir
,
filename
),
"
fasta
"
)
yield
records
,
filename
class
AlignmentSeqTestCase
(
BalibaseTestCase
):
"""
TestCase for alignment correctness and quality
"""
...
...
@@ -372,10 +360,10 @@ class AlignmentSeqTestCase(BalibaseTestCase):
for
in_filename
in
os
.
listdir
(
dataset_dir
):
# Read input
sequences
=
list
(
Bio
.
SeqIO
.
parse
(
os
.
path
.
join
(
dataset_dir
,
in_filename
)
,
"
fasta
"
))
sequences
,
structs
=
self
.
get_seqs_and_structs
(
os
.
path
.
join
(
dataset_dir
,
in_filename
)
)
if
structs
is
None
:
continue
# Create output for all but clustalo
for
method
,
name
in
zip
(
methods_test
,
methods_test_names
):
...
...
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