Mercurial > repos > galaxyp > regex_find_replace
annotate regex_tabular.xml @ 5:96eb105e71d8 draft default tip
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 3eaa2a2bdaeedf1b0771b1b764a550106dcbc186
| author | galaxyp | 
|---|---|
| date | Thu, 02 Feb 2023 08:21:21 +0000 | 
| parents | d72a404cef12 | 
| children | 
| rev | line source | 
|---|---|
| 5 
96eb105e71d8
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 3eaa2a2bdaeedf1b0771b1b764a550106dcbc186
 galaxyp parents: 
4diff
changeset | 1 <tool id="regexColumn1" name="Column Regex Find And Replace" version="1.0.3" profile="21.01"> | 
| 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> | 
| 2 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 3 <requirements> | 
| 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 4 <requirement type="package" version="3.7">python</requirement> | 
| 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 5 </requirements> | 
| 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 6 <command> | 
| 3 
6c8e2cb00619
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 0595f14f3b95f8b8190b58625217c72e76c649ee"
 galaxyp parents: 
2diff
changeset | 7 python '$__tool_directory__/regex.py' | 
| 2 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 8 --input '$input' | 
| 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 9 --output '$out_file1' | 
| 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 10 --column $field | 
| 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 11 --input_display_name '$input.display_name' | 
| 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 12 #for $check in $checks: | 
| 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 13 --pattern='$check.pattern' --replacement='$check.replacement' | 
| 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 14 #end for | 
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 15 </command> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 16 <inputs> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 17 <param format="tabular" name="input" type="data" label="Select cells from"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 18 <param name="field" label="using column" type="data_column" data_ref="input" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 19 <repeat name="checks" title="Check"> | 
| 4 
d72a404cef12
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit a9b01eafeefb50c416fbfe342b15298fe9321679
 galaxyp parents: 
3diff
changeset | 20 <param name="pattern" 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)"> | 
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 21 <sanitizer> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 22 <valid> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 23 <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 | 24 <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 | 25 <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 | 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 <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 | 28 <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 | 29 <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 | 30 </mapping> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 31 </sanitizer> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 32 </param> | 
| 2 
6dcfb96bc8b0
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 8871a847daed1f996c0a2069c3e876685bf8d220"
 galaxyp parents: 
1diff
changeset | 33 <param name="replacement" type="text" value="newchr\1" label="Replacement"> | 
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 34 <sanitizer> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 35 <valid> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 36 <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 | 37 <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 | 38 <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 | 39 </valid> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 40 <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 | 41 <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 | 42 <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 | 43 </mapping> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 44 </sanitizer> | 
| 
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> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 46 </repeat> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 47 </inputs> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 48 <outputs> | 
| 5 
96eb105e71d8
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 3eaa2a2bdaeedf1b0771b1b764a550106dcbc186
 galaxyp parents: 
4diff
changeset | 49 <data format_source="input" name="out_file1" metadata_source="input" /> | 
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 50 </outputs> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 51 <tests> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 52 <test> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 53 <param name="input" value="find_tabular_1.txt" ftype="tabular" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 54 <param name="field" value="2" /> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 55 <param name="pattern" value="moo"/> | 
| 
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="replacement" value="cow" /> | 
| 5 
96eb105e71d8
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 3eaa2a2bdaeedf1b0771b1b764a550106dcbc186
 galaxyp parents: 
4diff
changeset | 57 <output name="out_file1" file="replace_tabular_1.txt" ftype="tabular"/> | 
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 58 </test> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 59 <test> | 
| 
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="input" value="find_tabular_1.txt" ftype="tabular" /> | 
| 
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="field" value="1" /> | 
| 
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="pattern" value="moo"/> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 63 <param name="replacement" value="cow" /> | 
| 5 
96eb105e71d8
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 3eaa2a2bdaeedf1b0771b1b764a550106dcbc186
 galaxyp parents: 
4diff
changeset | 64 <output name="out_file1" file="replace_tabular_2.txt" ftype="tabular"/> | 
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 65 </test> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 66 </tests> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 67 <help> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 68 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 69 .. class:: warningmark | 
| 
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 will attempt to reuse the metadata from your first input.** To change metadata assignments click on the "edit attributes" link of the history item generated by this tool. | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 72 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 73 .. class:: infomark | 
| 
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 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* | 
| 
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 ----- | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 78 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 79 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 | 80 if the text in the selected column matches a specified regular expression pattern | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 81 replaces the text with the 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 | 82 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 83 This tool can be used to change between the chromosome naming conventions of UCSC and Ensembl. | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 84 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 85 For example to remove the **chr** part of the reference sequence name in the first column of this GFF file:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 86 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 87 ##gff-version 2 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 88 ##Date: Thu Mar 23 11:21:17 2006 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 89 ##bed2gff.pl $Rev: 601 $ | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 90 ##Input file: ./database/files/61c6c604e0ef50b280e2fd9f1aa7da61.dat | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 91 chr1 bed2gff CCDS1000.1_cds_0_0_chr1_148325916_f 148325916 148325975 . + . score "0"; | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 92 chr21 bed2gff CCDS13614.1_cds_0_0_chr21_32707033_f 32707033 32707192 . + . score "0"; | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 93 chrX bed2gff CCDS14606.1_cds_0_0_chrX_122745048_f 122745048 122745924 . + . score "0"; | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 94 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 95 Setting:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 96 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 97 using column: c1 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 98 Find Regex: chr([0-9]+|X|Y|M[Tt]?) | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 99 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 | 100 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 101 produces:: | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 102 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 103 ##gff-version 2 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 104 ##Date: Thu Mar 23 11:21:17 2006 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 105 ##bed2gff.pl $Rev: 601 $ | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 106 ##Input file: ./database/files/61c6c604e0ef50b280e2fd9f1aa7da61.dat | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 107 1 bed2gff CCDS1000.1_cds_0_0_chr1_148325916_f 148325916 148325975 . + . score "0"; | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 108 21 bed2gff CCDS13614.1_cds_0_0_chr21_32707033_f 32707033 32707192 . + . score "0"; | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 109 X bed2gff CCDS14606.1_cds_0_0_chrX_122745048_f 122745048 122745924 . + . score "0"; | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 110 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 111 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 112 This tool uses Python regular expressions with the **re.sub()** function. | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 113 More information about 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 | 114 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 | 115 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 116 The regex **chr([0-9]+|X|Y|M)** means start with text **chr** followed by either: one or more digits, or the letter X, or the letter Y, or the letter M (optionally followed by a single letter T or t). | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 117 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 | 118 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 119 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 120 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 | 121 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 | 122 named **Sample ABC123**, into the dataset itself, which currently contains the lines:: | 
| 1 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 123 | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 124 Data 1 | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 125 Data 2 | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 126 Data 3 | 
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 127 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 128 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 | 129 | 
| 1 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 130 Find Regex: Data | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 131 Replacement: #{input_name} Data | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 132 | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 133 Find Regex: Sample (\S+) | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 134 Replacement: \1 | 
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 135 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 136 The result will be:: | 
| 1 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 137 | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 138 ABC123 Data 1 | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 139 ABC123 Data 2 | 
| 
bf0c0905fd60
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
 galaxyp parents: 
0diff
changeset | 140 ABC123 Data 3 | 
| 0 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 141 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 142 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 143 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 144 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 | 145 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 | 146 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 | 147 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 | 148 | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 149 </help> | 
| 
002f95cf9d6e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 568a615b191482c54ecb31399ba27f78d6c71510
 galaxyp parents: diff
changeset | 150 </tool> | 
