Skip to content

Commit

Permalink
Add tool_name option to fastaq_to_orfs_gff
Browse files Browse the repository at this point in the history
  • Loading branch information
martinghunt committed Apr 8, 2014
1 parent 7973057 commit fabf192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastaq/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def fastaq_to_mira_xml(infile, outfile):
utils.close(fout)


def fastaq_to_orfs_gff(infile, outfile, min_length=300):
def fastaq_to_orfs_gff(infile, outfile, min_length=300, tool_name='fastaq'):
seq_reader = sequences.file_reader(infile)
fout = utils.open_file_write(outfile)
for seq in seq_reader:
Expand All @@ -201,7 +201,7 @@ def fastaq_to_orfs_gff(infile, outfile, min_length=300):
else:
strand = '+'

print(seq.id, 'fastaq', 'CDS', coords.start+1, coords.end+1, '.', strand, '.', sep='\t', file=fout)
print(seq.id, tool_name, 'CDS', coords.start+1, coords.end+1, '.', strand, '.', sep='\t', file=fout)

utils.close(fout)

Expand Down

0 comments on commit fabf192

Please sign in to comment.