From fabf192aa76fc3b12f0c8a2d6f15c1672226e83e Mon Sep 17 00:00:00 2001 From: martinghunt Date: Tue, 8 Apr 2014 09:09:18 +0100 Subject: [PATCH] Add tool_name option to fastaq_to_orfs_gff --- fastaq/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastaq/tasks.py b/fastaq/tasks.py index 90d3f68..450cf09 100644 --- a/fastaq/tasks.py +++ b/fastaq/tasks.py @@ -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: @@ -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)