Mercurial > repos > jvolkening > nanopore_qc
view nanopore_qc.xml @ 1:73bc3179799c draft
planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/nanopore_qc commit 10173d865618a699c4108cee35692414a73e9b3e-dirty
author | jvolkening |
---|---|
date | Sat, 02 Mar 2024 05:11:41 +0000 |
parents | e0006d8bf849 |
children | 5c7848b91964 |
line wrap: on
line source
<tool id="nanopore_qc" name="NanoporeQC" version="0.003"> <description>Quality report for nanopore data</description> <requirements> <requirement type="package">r-ggplot2</requirement> <requirement type="package">r-dplyr</requirement> <requirement type="package">r-tidyr</requirement> <requirement type="package">r-readr</requirement> <requirement type="package">r-yaml</requirement> <requirement type="package">r-scales</requirement> <requirement type="package">r-futile.logger</requirement> <requirement type="package">r-data.table</requirement> <requirement type="package">r-optparse</requirement> <requirement type="package">r-ragg</requirement> <requirement type="package">perl-yaml-libyaml</requirement> </requirements> <stdio> <exit_code range="1:" level="fatal" description="Unknown error" /> <exit_code range=":-1" level="fatal" description="Unknown error" /> </stdio> <version_command> <![CDATA[ echo '0.003' ]]> </version_command> <command> <![CDATA[ mkdir -p '${html_file.files_path}' && Rscript '${__tool_directory__}/nanopore_qc.R' -i '$input' -o '${html_file.files_path}' -q '$q_cutoff' $discard_failed && perl '${__tool_directory__}/yaml_to_html.pl' '${html_file.files_path}/summary.yaml' '${html_file.files_path}' '$html_file' ]]> </command> <inputs> <param name="input" type="data" format="tabular" label="Basecall summary file from Albacore"/> <param name="q_cutoff" type="float" value="10" min="0" label="Quality cutoff for QC calculations" /> <param name="discard_failed" type="boolean" checked="false" truevalue="--discard_failed T" falsevalue="" label="Ignore reads failing quality filter" /> </inputs> <outputs> <data format="html" name="html_file" label="NanoporeQC on ${on_string}" /> </outputs> <tests> <!-- binary image blobs can differ, which is why we use line matching instead of file matching --> <!-- quality cutoff 10 --> <test> <param name="input" value="sequencing_summary.txt.small" ftype="tabular" /> <param name="q_cutoff" value="10" /> <output name="html_file"> <assert_contents> <has_text_matching expression="<td>Total Reads</td>\s*<td>9990</td>" /> <has_text_matching expression="<td>Total Reads</td>\s*<td>7952</td>" /> </assert_contents> </output> </test> <!-- quality cutoff 6 --> <test> <param name="input" value="sequencing_summary.txt.small" ftype="tabular" /> <param name="q_cutoff" value="6" /> <output name="html_file"> <assert_contents> <has_text_matching expression="<td>Total Reads</td>\s*<td>9990</td>" /> <has_text_matching expression="<td>Total Reads</td>\s*<td>9254</td>" /> </assert_contents> </output> </test> <!-- quality cutoff 6, discard filtered --> <test> <param name="input" value="sequencing_summary.txt.small" ftype="tabular" /> <param name="q_cutoff" value="6" /> <param name="discard_failed" value="true" /> <output name="html_file"> <assert_contents> <has_text_matching expression="<td>Total Reads</td>\s*<td>9107</td>" /> <has_text_matching expression="<td>Total Reads</td>\s*<td>9107</td>" /> </assert_contents> </output> </test> <!-- Dorado output --> <test> <param name="input" value="dorado.txt.small" ftype="tabular" /> <param name="q_cutoff" value="6" /> <output name="html_file"> <assert_contents> <has_text_matching expression="<td>Total Reads</td>\s*<td>31</td>" /> <has_text_matching expression="<td>Total Reads</td>\s*<td>29</td>" /> </assert_contents> </output> </test> </tests> <help> <![CDATA[ `NanoporeQC` produces a QC report for nanopore sequencing data. It utilizes the summary table produced by Albacore, which saves time by avoiding the need to re-parse the FAST5 read data. `NanoporeQC` was originally forked from the `minion_qc` codebase (https://github.com/roblanf/minion_qc). There are only two tuneable parameters. The 'quality cutoff' sets a threshold for plotting: two summaries are produced for each table and plot -- one for all reads (with length >= 0) and one for reads with a quality value greater than the cutoff. 'Ignore reads failing quality filter' indicates whether to include or exclude failing reads from the QC plots. ]]> </help> <citations> <citation type='doi'>10.1093/bioinformatics/bty654</citation> </citations> </tool>