Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tbgl
tools
mrdna
Commits
88a43288
Commit
88a43288
authored
Sep 14, 2018
by
cmaffeo2
Browse files
Sequence reader now ignores blank lines
parent
b6780362
Changes
1
Hide whitespace changes
Inline
Side-by-side
mrdna/model/dna_sequence.py
View file @
88a43288
...
...
@@ -6,7 +6,7 @@ def read_sequence_file(sequenceFile=_m13_path):
with
open
(
sequenceFile
)
as
ch
:
for
l
in
ch
:
l
=
l
.
strip
().
replace
(
" "
,
""
)
if
l
[
0
]
in
(
";"
,
"#"
):
continue
if
len
(
l
)
==
0
or
l
[
0
]
in
(
";"
,
"#"
):
continue
seq
.
extend
([
c
.
upper
()
for
c
in
l
])
return
list
(
seq
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment