Advertisement
Guest User

Untitled

a guest
Dec 7th, 2011
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.97 KB | None | 0 0
  1. <tool id="subset" name="Subset" description="only keeps the n lines of a text-based file">
  2.     <command interpreter="python">
  3.     subset.py
  4.         $singlePaired.sPaired
  5.         $size
  6.         $input.ext
  7.         ${ os.getcwd() }/${ $__app__.config.tool_path }
  8.         #if str( $singlePaired.sPaired ) == "single"
  9.         $input
  10.         $output
  11.         #else
  12.         $input
  13.         $output1
  14.         $singlePaired.input2
  15.         $output2
  16.         #end if
  17.     </command>
  18.    
  19.     <inputs>
  20.    
  21.     <param name="input" type="data" label="Input file" format="fastq,fastqillumina,fastqsanger,export,sam" checked="true" />
  22.    
  23.     <conditional name="singlePaired">
  24.         <param name="sPaired" type="select" label="Is this library paired?">
  25.         <option value="single">Single-end</option>
  26.         <option value="paired">Paired-end</option>
  27.         </param>
  28.         <when value="single" />
  29.         <when value="paired">
  30.         <param name="input2" type="data" label="Input file" format="fastq,fastqillumina,fastqsanger,export,sam" checked="true" />
  31.         </when> <!-- paired -->
  32.     </conditional> <!-- singlePaired -->
  33.        
  34.     <param name="size" type="select" label="The output file extension">
  35.             <option value="1000000">1,000,000</option>
  36.             <option value="100000" selected="true">100,000</option>
  37.             <option value="10000">10,000</option>
  38.     </param>
  39.    
  40.     </inputs>
  41.  
  42.     <outputs>
  43.     <data format_source="input" name="output">
  44.         <filter>(singlePaired['sPaired'] == 'single')</filter>
  45.     </data>
  46.     <data format_source="input" name="output1" label="${tool.name} on ${on_string}: Mates A">
  47.         <filter>(singlePaired['sPaired'] == 'paired')</filter>
  48.     </data>
  49.     <data format_source="input2" name="output2"  label="${tool.name} on ${on_string}: Mates B">
  50.         <filter>(singlePaired['sPaired'] == 'paired')</filter>
  51.     </data>
  52.     </outputs>
  53.     <help>
  54. .. class:: warningmark
  55.  
  56. This tool is meant only for testing purposes
  57.  
  58. It makes a random selection of lines from the input file(s) and prints them in the output file(s).
  59.  
  60.     </help>
  61. </tool>
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement