Commit 3931e572 authored by cnoirot's avatar cnoirot
Browse files

Debug when fasta file is large file cannot load wholefile

parent 77b80492
......@@ -37,12 +37,12 @@ def fastq(ifile):
def fasta(ifile):
try:
reader = seqio.FastaReader(ifile, wholefile=True)
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 jflow.exceptions.InvalidFormatError("The provided file '" + ifile + "' is not a fasta file!")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment