diff --git a/helper/fasta_to_gff.py b/helper/fasta_to_gff.py index 9e8296a..9e8a261 100644 --- a/helper/fasta_to_gff.py +++ b/helper/fasta_to_gff.py @@ -4,7 +4,9 @@ fasta_file = sys.argv[1] -fasta_data = Fasta.readfile(fasta_file) +fh = Fasta() -for k, s in fasta_data.sequences.items(): - print('%s\t.\tCDS\t1\t%d\t.\t.\t.\tgene_id "Parent=%s"\n' % (k, len(s), k)) +fh.readfile(fasta_file) + +for k, s in fh.sequences.items(): + print('%s\t.\tCDS\t1\t%d\t.\t.\t.\tParent=%s' % (k, len(s), k))