commit/galaxy-central: clayton_turner: Added ignore lines starting with specific characters to group tool
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/ad5156120f53/ Changeset: ad5156120f53 User: clayton_turner Date: 2014-02-10 22:00:30 Summary: Added ignore lines starting with specific characters to group tool Affected #: 2 files diff -r c458a0fe1ba816098fed03370f425f346bb1df68 -r ad5156120f533aeecc1dc69d92ef19ec68a6223b tools/stats/grouping.py --- a/tools/stats/grouping.py +++ b/tools/stats/grouping.py @@ -37,7 +37,22 @@ round_val = [] data_ary = [] - for var in sys.argv[5:]: + if sys.argv[5] != "None": + oldfile = open(inputfile,'r') + oldfilelines = oldfile.readlines() + newinputfile = inputfile+'2' + newfile = open(newinputfile,'w') + asciitodelete = sys.argv[5].split(',') + for i in range(len(asciitodelete)): + asciitodelete[i] = chr(int(asciitodelete[i])) + for line in oldfilelines: + if line[0] not in asciitodelete: + newfile.write(line) + oldfile.close() + newfile.close() + inputfile = newinputfile + + for var in sys.argv[6:]: op, col, do_round = var.split() ops.append(op) cols.append(col) diff -r c458a0fe1ba816098fed03370f425f346bb1df68 -r ad5156120f533aeecc1dc69d92ef19ec68a6223b tools/stats/grouping.xml --- a/tools/stats/grouping.xml +++ b/tools/stats/grouping.xml @@ -6,6 +6,7 @@ $input1 $groupcol $ignorecase + $ignorelines #for $op in $operations '${op.optype} ${op.opcol} @@ -18,6 +19,24 @@ <param name="ignorecase" type="boolean" truevalue="1" falsevalue="0"><label>Ignore case while grouping?</label></param> + <param name="ignorelines" type="select" display="checkboxes" multiple="True" label="Ignore lines beginning with these characters" help="lines beginning with these are not grouped"> + <option value="62">></option> + <option value="64">@</option> + <option value="43">+</option> + <option value="60"><</option> + <option value="42">*</option> + <option value="45">-</option> + <option value="61">=</option> + <option value="124">|</option> + <option value="63">?</option> + <option value="36">$</option> + <option value="46">.</option> + <option value="58">:</option> + <option value="38">&</option> + <option value="37">%</option> + <option value="94">^</option> + <option value="35">#</option> + </param><repeat name="operations" title="Operation"><param name="optype" type="select" label="Type"><option value="mean">Mean</option> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org