# HG changeset patch # User peterjc # Date 1495034245 14400 # Node ID 7df3a874f232fd925d851c9cdfc3a23798f843cc # Parent 73b6d81cda486591963ae7350f13bdb2a75fedc1 planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/fastq_pair_names commit 37d5b47ec23e2cbaa453cc660bb1fcbb10dd34ee-dirty diff -r 73b6d81cda48 -r 7df3a874f232 tools/fastq_pair_names/README.rst --- a/tools/fastq_pair_names/README.rst Thu May 11 18:34:08 2017 -0400 +++ b/tools/fastq_pair_names/README.rst Wed May 17 11:17:25 2017 -0400 @@ -59,6 +59,7 @@ - Minor internal changes to Python script for error reporting & style. v0.0.5 - Use ```` (internal change only). - Single quote command line arguments (internal change only). + - Python 3 compatible print function. ======= ====================================================================== diff -r 73b6d81cda48 -r 7df3a874f232 tools/fastq_pair_names/fastq_pair_names.py --- a/tools/fastq_pair_names/fastq_pair_names.py Thu May 11 18:34:08 2017 -0400 +++ b/tools/fastq_pair_names/fastq_pair_names.py Wed May 17 11:17:25 2017 -0400 @@ -8,21 +8,23 @@ Note that the FASTQ variant is unimportant (Sanger, Solexa, Illumina, or even Color Space should all work equally well). -This script is copyright 2014 by Peter Cock, The James Hutton Institute +This script is copyright 2014-2017 by Peter Cock, The James Hutton Institute (formerly SCRI), Scotland, UK. All rights reserved. See accompanying text file for licence details (MIT license). """ +from __future__ import print_function + import os import re import sys -from galaxy_utils.sequence.fastq import fastqReader +if "-v" in sys.argv or "--version" in sys.argv: + print("0.0.5") + sys.exit(0) -if "-v" in sys.argv or "--version" in sys.argv: - print "Version 0.0.1" - sys.exit(0) +from galaxy_utils.sequence.fastq import fastqReader msg = """Expects at least 3 arguments: @@ -134,4 +136,4 @@ out_pairs.close() out_nonpairs.close() -print "%i reads (%i forward, %i reverse, %i neither), %i pairs" % (count, forward, reverse, neither, len(pairs)) +print("%i reads (%i forward, %i reverse, %i neither), %i pairs" % (count, forward, reverse, neither, len(pairs))) diff -r 73b6d81cda48 -r 7df3a874f232 tools/fastq_pair_names/fastq_pair_names.xml --- a/tools/fastq_pair_names/fastq_pair_names.xml Thu May 11 18:34:08 2017 -0400 +++ b/tools/fastq_pair_names/fastq_pair_names.xml Wed May 17 11:17:25 2017 -0400 @@ -1,4 +1,4 @@ - + using the read name suffices galaxy_sequence_utils