Skip to content

Commit

Permalink
skip sequence too short <100 bp
Browse files Browse the repository at this point in the history
  • Loading branch information
Juke34 committed Apr 17, 2019
1 parent 76916c5 commit 6f326e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion EMBLmyGFF3/EMBLmyGFF3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,9 @@ def main():
infile.seek(0, 0)

for record in GFF.parse(infile, base_dict=seq_dict):

if len(record.seq)<100:
logging.warning("Sequence %s too short (%s bp)! Minimum accpeted by ENA is 100, we skip it !" % (record.name, len(record.seq) ) )
continue
writer = EMBL( record, True )

#To set up first
Expand Down

0 comments on commit 6f326e9

Please sign in to comment.