annotate add_sample_name_as_first_line.xml @ 0:231b21337c43 draft

planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
author jowong
date Thu, 27 Sep 2018 17:05:18 -0400
parents
children 74a9f37e2bc9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
1 <tool id="my_addName" name="Add sample name as first line" version="0.1.0">
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
2 <description>to an existing tabular file</description>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
3 <command interpreter="python">add_sample_name_as_first_line.py
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
4 --input "$input"
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
5 --sample "$input2.element_identifier"
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
6 --output "$output"
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
7 </command>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
8 <inputs>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
9 <param format="tabular" name="input" type="data" label="to Dataset" />
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
10 <param name="input2" format="data" type="data" label="sample" />
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
11 </inputs>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
12 <outputs>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
13 <data name="output" format="tabular" />
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
14 </outputs>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
15
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
16 <tests>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
17 <test>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
18 <param name="input" value="test.tab" ftype="tabular" />
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
19 <param name="input2" value="ABC_1.fastq.gz" />
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
20 <output name="output" file="test_with_header.tab" ftype="tabular"/>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
21 </test>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
22 </tests>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
23 <help>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
24 **What it does**
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
25
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
26 Adds a new line with the name of the sample file and removing [_12].fastq.gz from the name if there is match to the pattern.
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
27 Written by Johnathan Kwan Long Wong, johnathanwong4@gmail.com
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
28 </help>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
29 <citations>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
30 <citation type="bibtex">@UNPUBLISHED{Johnathan2018,
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
31 author = "Johnathan W"}</citation>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
32 </citations>
231b21337c43 planemo upload for repository https://github.com/jowong4/add_sample_name_as_first_line_of_file commit 462cf96a681fad46e20321feec5996d1e558a0d3
jowong
parents:
diff changeset
33 </tool>