Maintenance - Mise à jour mensuelle Lundi 7 Décembre 2021 entre 7h00 et 9h00

Commit ce65abbe authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Merge from master

parents 572902da 3931e572
......@@ -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!")
......
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