Skip to content

Commit

Permalink
pass threads as int to fastqc
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkinsc committed Apr 14, 2020
1 parent de5c4fb commit 17d2430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def parser_fastqc(parser=argparse.ArgumentParser()):
parser.add_argument('inBam', help='Input reads, BAM format.')
parser.add_argument('out_html', help='Output report, HTML format.')
parser.add_argument('--out_zip', help='Output data, zip archive.')
parser.add_argument('--threads', help='Output data, zip archive.')
parser.add_argument('--threads', type=int, help='Number of threads.')
util.cmd.attach_main(parser, tools.fastqc.FastQC().execute, split_args=True)
return parser
__commands__.append(('fastqc', parser_fastqc))
Expand Down
2 changes: 1 addition & 1 deletion tools/fastqc.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def version(self):
return TOOL_VERSION

def execute(self, inBam, out_html, out_zip=None, threads=None): # pylint: disable=W0221
threads = util.misc.sanitize_thread_count(threads=threads)
threads = util.misc.sanitize_thread_count(threads=int(threads))

if tools.samtools.SamtoolsTool().isEmpty(inBam):
# fastqc can't deal with empty input
Expand Down

0 comments on commit 17d2430

Please sign in to comment.