details: http://www.bx.psu.edu/hg/galaxy/rev/ba884f1a6b81
changeset: 2692:ba884f1a6b81
user: Dan Blankenberg <dan(a)bx.psu.edu>
date: Tue Sep 15 10:15:42 2009 -0400
description:
Fix maf_utilities compatibility with python 2.4; STRING.startswith() accepting a tuple was introduced in python 2.5.
1 file(s) affected in this change:
lib/galaxy/tools/util/maf_utilities.py
diffs (23 lines):
diff -r 40c5e1853a66 -r ba884f1a6b81 lib/galaxy/tools/util/maf_utilities.py
--- a/lib/galaxy/tools/util/maf_utilities.py Mon Sep 14 17:03:17 2009 -0400
+++ b/lib/galaxy/tools/util/maf_utilities.py Tue Sep 15 10:15:42 2009 -0400
@@ -403,7 +403,7 @@
else:
blocks.append( ( score, idx, offset ) )
- gap_chars_tuple = tuple( GAP_CHARS )
+ #gap_chars_tuple = tuple( GAP_CHARS )
gap_chars_str = ''.join( GAP_CHARS )
#Loop through ordered blocks and layer by increasing score
for block_dict in blocks:
for block in iter_blocks_split_by_species( block_dict[1].get_at_offset( block_dict[2] ) ): #need to handle each occurance of sequence in block seperately
@@ -415,7 +415,8 @@
#we should trim gaps from both sides, since these are not positions in this species genome (sequence)
text = text.rstrip( gap_chars_str )
gap_offset = 0
- while text.startswith( gap_chars_tuple ):
+ while True in [ text.startswith( gap_char ) for gap_char in GAP_CHARS ]: #python2.4 doesn't accept a tuple for .startswith()
+ #while text.startswith( gap_chars_tuple ):
gap_offset += 1
text = text[1:]
if not text:
details: http://www.bx.psu.edu/hg/galaxy/rev/b179523d7d78
changeset: 2693:b179523d7d78
user: anton(a)nekrut-mbp.bx.psu.edu
date: Tue Sep 15 10:30:54 2009 -0400
description:
Modification for input datatype in the splitter:w
1 file(s) affected in this change:
tools/metag_tools/split_paired_reads.xml
diffs (21 lines):
diff -r ba884f1a6b81 -r b179523d7d78 tools/metag_tools/split_paired_reads.xml
--- a/tools/metag_tools/split_paired_reads.xml Tue Sep 15 10:15:42 2009 -0400
+++ b/tools/metag_tools/split_paired_reads.xml Tue Sep 15 10:30:54 2009 -0400
@@ -4,7 +4,7 @@
split_paired_reads.py $input $output1 $output2
</command>
<inputs>
- <param name="input" type="data" format="fastqsolexa" label="Your paired-end file" />
+ <param name="input" type="data" format="fastqsolexa,fastqsanger" label="Your paired-end file" />
</inputs>
<outputs>
<data name="output1" format="fastqsolexa"/>
@@ -20,7 +20,7 @@
**What it does**
-Splits a single fastq datasret representing paired-end run into two datasets (one for each end). This tool works only for datasets where both ends have **the same** length.
+Splits a single fastq dataset representing paired-end run into two datasets (one for each end). This tool works only for datasets where both ends have **the same** length.
-----