view SMART/galaxy/trimSequences.xml @ 50:6283667d1f34

Deleted selected files
author m-zytnicki
date Fri, 13 Dec 2013 10:42:50 -0500
parents 2c0c0a89fad7
children
line wrap: on
line source

<tool id="trimSequences" name="trim sequences">
  <description>Remove the 5' and/or 3' adapters of a list of reads.</description>
	<requirements>
		<requirement type="set_environment">PYTHONPATH</requirement>
	</requirements>
  <command interpreter="python"> ../Java/Python/trimSequences.py -i $inputFile -f fastq
  	#if $OptionFPADP.FPADP == "Yes":
		-5 $OptionFPADP.fivePAdaptor
	#end if	  
	 #if $OptionTPADP.TPADP == "Yes":
		-3 $OptionTPADP.threePAdaptor
	#end if	
	-e $errors
	$indels
  	$noAdaptor5p $noAdaptorFile5p
  	$noAdaptor3p $noAdaptorFile3p
  	-o $outputFile  
  
  </command>
  
  
  <inputs>
    <param name="inputFile" type="data" label="Input fastq File" format="fastq"/>
	
	<conditional name="OptionFPADP">
		<param name="FPADP" type="select" label="5' adapter">
			<option value="Yes">Yes</option>
			<option value="No" selected="true">No</option>
		</param>
		<when value="Yes">
			<param name="fivePAdaptor" type="text" value="None" />
		</when>
		<when value="No">
		</when>
	</conditional>	
	
	<conditional name="OptionTPADP">
		<param name="TPADP" type="select" label="3' adapter">
			<option value="Yes">Yes</option>
			<option value="No" selected="true">No</option>
		</param>
		<when value="Yes">
			<param name="threePAdaptor" type="text" value="None" />
		</when>
		<when value="No">
		</when>
	</conditional>
	
	<param name="errors" type="integer" label="number of errors in percent" value="0" />
	<param name="indels" type="boolean" truevalue="-d" falsevalue="" checked="false" label="indels option" help="also accept indels"/>
	<param name="noAdaptor5p" type="boolean" truevalue="-n" falsevalue="" checked="false" label="noAdaptor 5' option" help="file name where to print sequences with no 5' adapter "/>
	<param name="noAdaptor3p" type="boolean" truevalue="-m" falsevalue="" checked="false" label="noAdaptor 3' option" help="file name where to print sequences with no 3' adapter "/>
	
  </inputs>

  <outputs>
    <data format="fastq" name="outputFile" label="[trim sequences] output file"/>
	<data name="noAdaptorFile5p" format="fastq" label="[trim sequences] noAdapter5p file">
		<filter>noAdaptor5p</filter>
	</data>
	<data name="noAdaptorFile3p" format="fastq" label="[trim sequences] noAdapter3p file">
		<filter>noAdaptor3p</filter>
	</data>
  </outputs>

  <help>
This function removes the adaptor from the 5' or 3' end of your reads. It can even recognize the adaptators which are partially present. You can specify whether you are ready to accept indels or not.
  </help>
  <tests>
	<test>
 		<param name="inputFile" value="short_fastq.fastq" />
 		<param name="FPADP" value="Yes"/>
		<param name="fivePAdaptor" value="AAAA" />
		<param name="TPADP" value="No"/>
		<param name="errors" value="1"/>
		<param name="indels" value="False"/>
		<param name="noAdaptor5p" value="False"/>
		<param name= "noAdaptor3p" value="False"/>
		<output name="outputFile" file="exp_trimsequences_short_fastq.fastq" />
	</test>
  </tests>
</tool>