Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed May 11, 2017
2 parents 40c6b98 + 9504f59 commit 9dc8cf5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions helper/fasta_to_gff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 9dc8cf5

Please sign in to comment.