view sRbowtieParser.xml @ 1:ca3845fb0b31 draft default tip

planemo upload for repository commit 70312b58ba246c07e70cdbd0a097f274f1386d09
author drosofff
date Mon, 18 Apr 2016 10:09:08 -0400
parents b996480cd604
line wrap: on
line source

<tool id="sRbowtieParser" name="Parse items in sRbowtie alignment" version="1.0.6">
	<requirement type="package" version="0.12.7">bowtie</requirement>
        <requirement type="package" version="0.7.7">pysam</requirement>
        <requirement type="package" version="1.9">numpy</requirement>
        python $__tool_directory__/
	          #if $refGenomeSource.genomeSource == "history":
                    --IndexSource $refGenomeSource.ownFile
         	    --ExtractDirective fastaSource
		    #silent reference= filter( lambda x: str( x[0] ) == str( $input_list.dbkey ), $__app__.tool_data_tables[ 'bowtie_indexes' ].get_fields() )[0][-1]
            	    --IndexSource $reference
            	    --ExtractDirective bowtieIndex
          	  #end if
		  --output $output
		  --polarity $polarity
		  #for $i in $refGenomeSource.input_list
		  #end for
                  #for $i in $refGenomeSource.input_list
                  #end for
                  #for $i in $refGenomeSource.input_list
                  #end for

       <conditional name="refGenomeSource">
           <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">
               <option value="indexed">Use a built-in index</option>
               <option value="history">Use one from the history</option>
           <when value="indexed">
               <param name="input_list" type="data" format="tabular,sam,bam" label="Select multiple alignments to parse" multiple="true">
                  <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."/>
           <when value="history">
                <param name="ownFile" type="data" format="fasta"  label="Select the fasta reference" />
	        <param name="input_list" type="data" format="tabular,sam,bam" label="Select multiple alignments to parse" multiple="true"/>
       </conditional>  <!-- refGenomeSource -->
       <param name="polarity" type="select" label="how to count sense and antisense reads">
         <option value="both">count both sense and antisense reads</option>
         <option value="forward">count only sense reads</option>
         <option value="reverse">count only antisense reads</option>
   <data format="tabular" name="output" label="Read Count  Lists"/>

**What it does**

Parses read counts from one or several sRBowtie alignments (in tabular, Sam or Bam format).
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

Sense, antisense or both sense and antisense alignments can be counted

The library labels are infered from the input dataset names in the galaxy history.

**It is thus essential that input datasets are appropriately renamed**

**it is preferable that you do not put any space in this input dataset names. You may edit these names in the history**

      <param name="genomeSource" value="history" />
      <param name="ownFile" value ="dme-mir-v20" ftype="fasta" />
      <param name="input_list" value="matchedSample_1,matchedSample_2" ftype="tabular" />
      <param name="polarity" value="forward" />
      <output name="output" ftype="tabular" file="" />