From 1392956bf076fdaad45f23bca229f83152853cec Mon Sep 17 00:00:00 2001 From: Joep de Ligt Date: Wed, 14 Aug 2019 09:35:28 +1200 Subject: [PATCH] Update fasta_generate_regions.py Minimal changes to make it python3 and 2 compatible, fixes some python pains for people installing through conda --- binaries/noarch/fasta_generate_regions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/binaries/noarch/fasta_generate_regions.py b/binaries/noarch/fasta_generate_regions.py index 0433410..fde1518 100755 --- a/binaries/noarch/fasta_generate_regions.py +++ b/binaries/noarch/fasta_generate_regions.py @@ -4,9 +4,9 @@ if len(sys.argv) == 1: - print "usage: ", sys.argv[0], " " - print "generates a list of freebayes/bamtools region specifiers on stdout" - print "intended for use in creating cluster jobs" + print("usage: ", sys.argv[0], " ") + print("generates a list of freebayes/bamtools region specifiers on stdout") + print("intended for use in creating cluster jobs") exit(1) fasta_index_file = sys.argv[1] @@ -29,7 +29,7 @@ end = region_start + region_size if end > chrom_length: end = chrom_length - print chrom_name + ":" + str(region_start) + "-" + str(end) + print(chrom_name + ":" + str(region_start) + "-" + str(end)) region_start = end