Mercurial > repos > yhoogstrate > segmentation_fold
view utils_filter-annotated-entries.xml @ 16:7e5b96d45f8d draft
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/segmentation_fold_galaxy_wrapper commit c6608bd5256e5c54cb2e01be6c184da0d2b08a7c-dirty
author | yhoogstrate |
---|---|
date | Thu, 19 May 2016 05:41:48 -0400 |
parents | 487f438da099 |
children | 3fbde4864e00 |
line wrap: on
line source
<tool id="smf_utils_filter-annotated-entries" name="filter-annotated-entries" version="@VERSION@-0"> <description>Split entries into two files based on whether they overlap annotations in a bed file</description> <macros> <import>macros.xml</import> </macros> <requirements> <requirement type="package" version="2.7.10">python</requirement> <requirement type="package" version="1.9">numpy</requirement> <requirement type="package" version="0.8.2.1">pysam</requirement> <requirement type="package" version="2.0.0">segmentation-fold-utils</requirement> </requirements> <expand macro="stdio" /> <version_command>@VERSION_COMMAND_UTILS@</version_command> <command><![CDATA[ segmentation-fold-utils filter-annotated-entries --regex '${regex.replace("'","\\'")}' '$dbn_input_file' '$bed_input_file' '$dbn_output_file_overlapping' '$dbn_output_file_non_overlapping' ]]></command> <inputs> <param name="dbn_input_file" type="data" format="dbn,txt" label="Input DBN file" help="The 'fasta'-headers should contain the genomic position being used to find overlapping reads in the BAM file"/> <param name="bed_input_file" type="data" format="bed" label="The resultes will be filtered based on overlap with annotations in this BED file"/> <param name="regex" type="text" argument="--regex" value='>.*?(chr[^:]):([0-9]+)-([0-9]+)' label="Regex to capture the targeted location in DBN file" help="Do not change this value unless you're using customized software in the pipeline - default: '>.*?(chr[^:]):([0-9]+)-([0-9]+)'" /> </inputs> <outputs> <data name="dbn_output_file_overlapping" format="dbn" label="${tool.name} on ${dbn_input_file.hid}: ${dbn_input_file.name} - overlapping entries"/> <data name="dbn_output_file_non_overlapping" format="dbn" label="${tool.name} on ${dbn_input_file.hid}: ${dbn_input_file.name} - non overlapping entries"/> </outputs> <tests> <test> <param name="dbn_input_file" value="DBNFile.test_02.in.dbn" ftype="dbn"/> <param name="bed_input_file" value="DBNFile.test_02.in.bed" ftype="bed"/> <param name="regex" value='>.*?(chr[^:]):([0-9]+)-([0-9]+)'/> <output name="dbn_output_file_overlapping"> <assert_contents> <has_line_matching expression=">chr1:0-10 x unknown-01 \(overlap in .*?: firstbase,1-2-3-4-5,6-7-8-9-10\)"/> <has_line line="AAAAAAAAAA"/> </assert_contents> </output> <output name="dbn_output_file_non_overlapping"> <assert_contents> <has_line_matching expression=">chr1:25-36 x unknown-01 \(aligned reads .*?: 1\)"/> <has_line line="AAAAAAAAAAA"/> <has_line_matching expression=">chr1:45-56 x unknown-01 \(aligned reads .*?: 2\)"/> </assert_contents> </output> </test> </tests> <help><![CDATA[ Filter based on whether the entries in the DBN file are already annotated or not ]]></help> <expand macro="citations" /> </tool>