Mercurial > repos > drosofff > msp_sr_bowtie_parser
annotate sRbowtieParser.xml @ 7:a64100788fc6 draft
planemo upload for repository https://bitbucket.org/drosofff/gedtools/
author | mvdbeek |
---|---|
date | Thu, 11 Jun 2015 12:55:54 -0400 |
parents | aa3620d405b1 |
children | 8c137c778dfd |
rev | line source |
---|---|
5
aa3620d405b1
planemo upload for repository https://bitbucket.org/drosofff/gedtools/
mvdbeek
parents:
4
diff
changeset
|
1 <tool id="sRbowtieParser" name="Parse items in sRbowtie alignment" version="1.0.4"> |
0 | 2 <description></description> |
3 <requirements> | |
4 <requirement type="package" version="0.12.7">bowtie</requirement> | |
3
3fcc752a7101
planemo upload for repository https://bitbucket.org/drosofff/gedtools/
mvdbeek
parents:
2
diff
changeset
|
5 <requirement type="package" version="1.2">samtools</requirement> |
7
a64100788fc6
planemo upload for repository https://bitbucket.org/drosofff/gedtools/
mvdbeek
parents:
5
diff
changeset
|
6 <requirement type="package" version="2.7">python</requirement> |
0 | 7 <requirement type="package" version="0.7.7">pysam</requirement> |
5
aa3620d405b1
planemo upload for repository https://bitbucket.org/drosofff/gedtools/
mvdbeek
parents:
4
diff
changeset
|
8 <requirement type="package" version="1.9">numpy</requirement> |
4
2c7f42686440
planemo upload for repository https://bitbucket.org/drosofff/gedtools/
mvdbeek
parents:
3
diff
changeset
|
9 <requirement type="package" version="0.14">scipy</requirement> |
0 | 10 </requirements> |
11 <command interpreter="python"> | |
12 sRbowtieParser.py | |
13 #if $refGenomeSource.genomeSource == "history": | |
14 --IndexSource $refGenomeSource.ownFile | |
15 --ExtractDirective fastaSource | |
16 #else: | |
17 #silent reference= filter( lambda x: str( x[0] ) == str( $input_list.dbkey ), $__app__.tool_data_tables[ 'bowtie_indexes' ].get_fields() )[0][-1] | |
18 --IndexSource $reference | |
19 --ExtractDirective bowtieIndex | |
20 #end if | |
21 --output $output | |
22 --polarity $polarity | |
23 --alignmentSource | |
24 #for $i in $refGenomeSource.input_list | |
25 $i | |
26 #end for | |
27 --alignmentFormat | |
28 #for $i in $refGenomeSource.input_list | |
29 $i.ext | |
30 #end for | |
31 --alignmentLabel | |
32 #for $i in $refGenomeSource.input_list | |
33 "$i.name" | |
34 #end for | |
35 | |
36 </command> | |
37 <inputs> | |
38 <conditional name="refGenomeSource"> | |
39 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options"> | |
40 <option value="indexed">Use a built-in index</option> | |
41 <option value="history">Use one from the history</option> | |
42 </param> | |
43 <when value="indexed"> | |
44 <param name="input_list" type="data" label="Select multiple alignments to parse" multiple="true"> | |
45 <validator type="dataset_metadata_in_data_table" table_name="bowtie_indexes" metadata_name="dbkey" metadata_column="0" message="database not set for this bowtie output. Select the database(=genome used for matching) manually, or select a reference fasta from your history."/> | |
46 </param> | |
47 </when> | |
48 <when value="history"> | |
49 <param name="ownFile" type="data" format="fasta" label="Select the fasta reference" /> | |
50 <param name="input_list" type="data" label="Select multiple alignments to parse" multiple="true"/> | |
51 </when> | |
52 </conditional> <!-- refGenomeSource --> | |
53 <param name="polarity" type="select" label="how to count sense and antisense reads"> | |
54 <option value="both">count both sense and antisense reads</option> | |
55 <option value="forward">count only sense reads</option> | |
56 <option value="reverse">count only antisense reads</option> | |
57 </param> | |
58 </inputs> | |
59 <outputs> | |
60 <data format="tabular" name="output" label="Read Count Lists"/> | |
61 </outputs> | |
62 <help> | |
63 | |
64 **What it does** | |
65 | |
66 Parses read counts from one or several sRBowtie alignments (in tabular, Sam or Bam format). | |
67 Here a bowtie match done against an index composed of a set of items is parsed and expressed as a hit list of the corresponding items | |
68 | |
69 Sense, antisense or both sense and antisense alignments can be counted | |
70 | |
71 The library labels are infered from the input dataset names in the galaxy history. | |
72 | |
73 **It is thus essential that input datasets are appropriately renamed** | |
74 | |
75 **it is preferable that you do not put any space in this input dataset names. You may edit these names in the history** | |
76 | |
77 </help> | |
1 | 78 <tests> |
79 <test> | |
0 | 80 <param name="genomeSource" value="history" /> |
81 <param name="ownFile" value ="dme-mir-v20" ftype="fasta" /> | |
1 | 82 <param name="input_list" value="matchedSample_1,matchedSample_2" ftype="tabular" /> |
0 | 83 <param name="polarity" value="forward" /> |
1 | 84 <output name="output" ftype="tabular" file="Read_Count_Lists.tab" /> |
85 </test> | |
86 </tests> | |
0 | 87 </tool> |
88 |