Mercurial > repos > jowong > add_sample_as_first_line
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:231b21337c43 |
---|---|
1 <tool id="my_addName" name="Add sample name as first line" version="0.1.0"> | |
2 <description>to an existing tabular file</description> | |
3 <command interpreter="python">add_sample_name_as_first_line.py | |
4 --input "$input" | |
5 --sample "$input2.element_identifier" | |
6 --output "$output" | |
7 </command> | |
8 <inputs> | |
9 <param format="tabular" name="input" type="data" label="to Dataset" /> | |
10 <param name="input2" format="data" type="data" label="sample" /> | |
11 </inputs> | |
12 <outputs> | |
13 <data name="output" format="tabular" /> | |
14 </outputs> | |
15 | |
16 <tests> | |
17 <test> | |
18 <param name="input" value="test.tab" ftype="tabular" /> | |
19 <param name="input2" value="ABC_1.fastq.gz" /> | |
20 <output name="output" file="test_with_header.tab" ftype="tabular"/> | |
21 </test> | |
22 </tests> | |
23 <help> | |
24 **What it does** | |
25 | |
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. | |
27 Written by Johnathan Kwan Long Wong, johnathanwong4@gmail.com | |
28 </help> | |
29 <citations> | |
30 <citation type="bibtex">@UNPUBLISHED{Johnathan2018, | |
31 author = "Johnathan W"}</citation> | |
32 </citations> | |
33 </tool> |