Mercurial > repos > galaxyp > regex_find_replace
annotate regex.xml @ 0:002f95cf9d6e draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
| author | galaxyp | 
|---|---|
| date | Wed, 18 Jan 2017 17:45:06 -0500 | 
| parents | |
| children | bf0c0905fd60 | 
| rev | line source | 
|---|---|
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 1 <tool id="regex1" name="Regex Find And Replace" version="1.0.0"> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 2 <description></description> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 3 <command interpreter="python">regex.py --input '$input' --output '$out_file1' --input_display_name '$input.display_name' | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 4 #for $check in $checks: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 5 --pattern='$check.pattern' --replacement='$check.replacement' | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 6 #end for | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 7 </command> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 8 <inputs> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 9 <param format="txt" name="input" type="data" label="Select lines from"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 10 <repeat name="checks" title="Check"> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 11 <param name="pattern" size="40" type="text" value="chr([0-9A-Za-z])+" label="Find Regex" help="here you can enter text or regular expression (for syntax check lower part of this frame)"> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 12 <sanitizer> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 13 <valid> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 14 <add preset="string.printable"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 15 <remove value="\" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 16 <remove value="'" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 17 </valid> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 18 <mapping initial="none"> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 19 <add source="\" target="__backslash__" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 20 <add source="'" target="__sq__"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 21 </mapping> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 22 </sanitizer> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 23 </param> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 24 <param name="replacement" size="40" type="text" value="newchr\1" label="Replacement"> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 25 <sanitizer> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 26 <valid> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 27 <add preset="string.printable"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 28 <remove value="\" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 29 <remove value="'" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 30 </valid> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 31 <mapping initial="none"> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 32 <add source="\" target="__backslash__" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 33 <add source="'" target="__sq__"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 34 </mapping> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 35 </sanitizer> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 36 </param> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 37 </repeat> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 38 </inputs> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 39 <outputs> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 40 <data format="input" name="out_file1" metadata_source="input"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 41 </outputs> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 42 <tests> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 43 <test> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 44 <param name="input" value="find1.txt"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 45 <param name="pattern" value="(T\w+)"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 46 <param name="replacement" value="\1 \1" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 47 <output name="out_file1" file="replace1.txt"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 48 </test> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 49 <test> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 50 <param name="input" value="find1.txt"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 51 <param name="pattern" value="f"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 52 <param name="replacement" value="'"" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 53 <output name="out_file1" file="replace2.txt"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 54 </test> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 55 <test> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 56 <param name="input" value="find1.txt"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 57 <param name="checks_0|pattern" value="a test file"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 58 <param name="checks_0|replacement" value="a file named #{input_name}" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 59 <param name="checks_1|pattern" value="see here"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 60 <param name="checks_1|replacement" value="see #{input_name}" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 61 <param name="checks_2|pattern" value="see (find1).txt"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 62 <param name="checks_2|replacement" value="see \1" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 63 <output name="out_file1" file="replace3.txt"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 64 </test> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 65 </tests> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 66 <help> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 67 This tool goes line by line through the specified input file and | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 68 replaces text which matches the specified regular expression patterns | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 69 with its corresponding specified replacement. | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 70 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 71 This tool uses Python regular expressions. More information about | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 72 Python regular expressions can be found here: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 73 http://docs.python.org/library/re.html. | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 74 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 75 To convert an Ilumina FATSQ sequence id from the CAVASA 8 format:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 76 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 77 @EAS139:136:FC706VJ:2:2104:15343:197393 1:Y:18:ATCACG | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 78 GGGTGATGGCCGCTGCCGATGGCGTCAAATCCCACC | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 79 +EAS139:136:FC706VJ:2:2104:15343:197393 1:Y:18:ATCACG | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 80 IIIIIIIIIIIIIIIIIIIIIIIIIIIIII9IG9IC | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 81 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 82 To the CASAVA 7 format:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 83 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 84 @EAS139_FC706VJ:2:2104:15343:197393#0/1 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 85 GGGTGATGGCCGCTGCCGATGGCGTCAAATCCCACC | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 86 +EAS139_FC706VJ:2:2104:15343:197393#0/1 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 87 IIIIIIIIIIIIIIIIIIIIIIIIIIIIII9IG9IC | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 88 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 89 Use Settings:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 90 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 91 Find Regex: ^([@+][A-Z0-9]+):\d+:(\S+)\s(\d).*$ | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 92 Replacement: \1_\2#0/\3 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 93 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 94 Note that the parentheses **()** capture patterns in the text that can be used in the replacement text by using a backslash-number reference: **\\1** | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 95 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 96 The regex **^([@+][A-Z0-9]+):\d+:(\S+) (\d).*$** means:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 97 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 98 ^ - start the match at the beginning of the line of text | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 99 ( - start a group (1), that is a string of matched text, that can be back-referenced in the replacement as \1 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 100 [@+] - matches either a @ or + character | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 101 [A-Z0-9]+ - matches an uppercase letter or a digit, the plus sign means to match 1 or more such characters | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 102 ) - end a group (1), that is a string of matched text, that can be back-referenced in the replacement as \1 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 103 :\d+: - matches a colon followed by one or more digits followed by a colon character | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 104 (\S+) - matches one or more non-whitespace charcters, the enclosing parentheses make this a group (2) that can back-referenced in the replacement text as \2 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 105 \s - matches a whitespace character | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 106 (\d) - matches a single digit character, the enclosing parentheses make this a group (3) that can back-referenced in the replacement text as \3 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 107 .* - dot means match any character, asterisk means zero more more matches | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 108 $ - the regex must match to the end of the line of text | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 109 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 110 In the replacement pattern, use the special token #{input_name} to insert the input dataset's display name. | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 111 The name can be modified by a second find/replace check. Suppose you want to insert the sample id of your dataset, | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 112 named **Sample ABC123**, into the dataset itself, which currently contains the lines:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 113 Data 1 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 114 Data 2 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 115 Data 3 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 116 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 117 You can use the following checks:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 118 Find Regex: Data | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 119 Replacement: #{input_name} Data | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 120 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 121 Find Regex: Sample (\S+) | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 122 Replacement: \1 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 123 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 124 The result will be:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 125 ABC123 Data 1 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 126 ABC123 Data 2 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 127 ABC123 Data 3 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 128 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 129 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 130 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 131 Galaxy aggressively escapes input supplied to tools, so if something | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 132 is not working please let us know and we can look into whether this is | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 133 the cause. Also if you would like help constructing regular | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 134 expressions for your inputs, please let us know at help@msi.umn.edu. | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 135 </help> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 136 </tool> | 
