view extract_bcs.xml @ 58:bbbae1ee87e0 draft default tip

fix for flexbar with small data issue
author rnateam
date Tue, 16 Feb 2016 10:08:58 -0500
parents b0d5cd8e4c6b
children
line wrap: on
line source

<tool id="extract_bcs.py" name="Extract barcodes" version="1.0.0">
  <description>using pattern.</description>
  <requirements>
      <requirement type="package" version="1.66">biopython</requirement>
  </requirements>
  <macros>
    <import>macros.xml</import>
  </macros>
  <expand macro="stdio" />
  <version_command>python $__tool_directory__/extract_bcs.py --version</version_command>
  <command interpreter="python"><![CDATA[
extract_bcs.py
#if $positional_1 and $positional_1 is not None:
$positional_1
#end if

#if $positional_2 and $positional_2 is not None:
$positional_2
#end if

--bcs $extractedbcs

> $default]]></command>
  <inputs>
    <param area="false" label="Barcoded sequences." name="positional_1" type="data" format="fastq"/>
    <param area="false" label="Pattern of barcode nucleotides starting at 5'-end. X positions will be moved to the header, N positions will be kept." name="positional_2" type="text"/>
  </inputs>
  <outputs>
    <data hidden="false" name="default" format="fastq"/>
    <data name="extractedbcs" format="fastq"/>
  </outputs>
  <tests>
    <test>
      <param name="positional_1" value="reads.fastq"/>
      <param name="positional_2" value="XXXNNXXX"/>
      <output name="default" file="result_original_head.fastq"/>
      <output name="extractedbcs" file="extracted_bcs.fastq"/>
    </test>
  </tests>
  <help><![CDATA[
Exract barcodes from a FASTQ file according to a user-specified pattern.

Author: Daniel Maticzka
Copyright: 2015
License: Apache
Email: maticzkd@informatik.uni-freiburg.de
Status: Testing
]]></help>
  <expand macro="citations" />
</tool>