Mercurial > repos > artbio > mapping_quality_stats
view mapping_quality_stats.xml @ 1:7883d97fa479 draft
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/mapping_quality_stats commit 73d041253a6c8d3f1126894c547e43dda5e700c1
author | artbio |
---|---|
date | Wed, 15 Jun 2022 15:37:11 +0000 |
parents | f00479673d47 |
children | ce2d8f611a51 |
line wrap: on
line source
<tool id="mapqstatistics" name="Mapping Quality Stats" version="0.19.1+galaxy0"> <description></description> <requirements> <requirement type="package" version="1.7.1">r-optparse</requirement> <requirement type="package" version="3.3.6">r-ggplot2</requirement> <requirement type="package" version="0.19.1">pysam</requirement> </requirements> <stdio> <exit_code range="1:" level="fatal" description="Tool exception" /> </stdio> <command detect_errors="exit_code"><![CDATA[ ln -f -s $input.metadata.bam_index input.bam.bai && ln -s $input input.bam && python $__tool_directory__/mapping_quality_stats.py -bam input.bam -o $table && Rscript $__tool_directory__/mapping_quality_stats.r -i '$table' -o $plot ]]></command> <inputs> <param name="input" type="data" format="bam" label="Select a bam file to analyze"/> </inputs> <outputs> <data format="tabular" name="table" label="Distribution table" /> <data format="pdf" name="plot" label="Distribution of MAPQs" /> </outputs> <tests> <test> <param name="input" value="sample.bam" ftype="bam"/> <output file="distribution.tab" name="table" /> <output file="distribution.pdf" name="plot" /> </test> </tests> <help> **What it does** Collects the values of mapping quality (MAPQ) in a BAM files Shows the data as a table and a barplot **Inputs** A bam alignment files which must be sorted **Output** A data frame of MAPQ counts A pdf barplot generated by R and ggplot2 </help> <citations> <citation type="doi">10.1093/bioinformatics/btp352</citation> </citations> </tool>