Commit 3c722634 authored by cnoirot's avatar cnoirot
Browse files

Add gff3 format

parent d111eba7
......@@ -17,6 +17,7 @@
import jflow
from jflow import seqio
from jflow.featureiolib.gff3 import GFF3IO
from jflow.exceptions import InvalidFormatError
import os
import sys
......@@ -57,4 +58,14 @@ def sff(ifile):
if nb_seq == 10: break
except:
raise InvalidFormatError("The provided file '" + ifile + "' is not a sff file!")
\ No newline at end of file
def gff3(ifile):
#try:
reader = GFF3IO(ifile,"r")
nb_line = 0
for record in reader:
nb_line += 1
# only check the first 10 sequences
if nb_line == 10: break
#except:
# raise InvalidFormatError("The provided file '" + ifile + "' is not a gff3 file!")
\ No newline at end of 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