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
genotoul-bioinfo
jflow
Commits
ce65abbe
Commit
ce65abbe
authored
May 04, 2017
by
Floreal Cabanettes
Browse files
Merge from master
parents
572902da
3931e572
Changes
1
Hide whitespace changes
Inline
Side-by-side
workflows/formats.py
View file @
ce65abbe
...
...
@@ -38,12 +38,12 @@ def fastq(ifile):
def
fasta
(
ifile
):
try
:
reader
=
seqio
.
FastaReader
(
ifile
,
wholefile
=
False
)
reader
=
seqio
.
FastaReader
(
ifile
)
nb_seq
=
0
for
id
,
desc
,
seq
,
qualities
in
reader
:
nb_seq
+=
1
# only check the first
10
sequences
if
nb_seq
==
10
:
break
# only check the first
3
sequences
if
nb_seq
==
3
:
break
except
:
raise
InvalidFormatError
(
"The provided file '"
+
ifile
+
"' is not a fasta file!"
)
...
...
Write
Preview
Markdown
is supported
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