view mut2read.xml @ 84:e46d5e377760 draft

planemo upload for repository commit ee4a8e6cf290e6c8a4d55f9cd2839d60ab3b11c8-dirty
author mheinzl
date Fri, 19 Aug 2022 11:23:37 +0000
parents fdfe9a919ff7
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<tool id="mut2read" name="DCS mutations to tags/reads:" version="3.1.0" profile="19.01">
    <description>Extracts all tags that carry a mutation in the duplex consensus sequence (DCS)</description>
    <expand macro="requirements"/>
        ln -s '$file2' bam_input.bam &&
        ln -s '${file2.metadata.bam_index}' bam_input.bam.bai &&
        python '$__tool_directory__/' 
        --mutFile '$file1'
        --bamFile bam_input.bam
        --familiesFile '$file3'
        --outputFastq '$output_fastq' 
        --outputJson '$output_json'
        <param name="file1" type="data" format="vcf" label="DCS Mutation File" optional="false" help="VCF file with DCS mutations. See the Help section below for a detailed explanation."/>
        <param name="file2" type="data" format="bam" label="DCS BAM File" optional="false" help="BAM file with aligned DCS reads."/>
        <param name="file3" type="data" format="tabular" label="Aligned Families File" optional="false" help="TABULAR file with aligned families."/>
        <param name="refalttiers" type="boolean" label="Extract tiers also for reference allele" truevalue="--refalttiers" falsevalue="" checked="False" help="Extracts tier information for the alternate and reference allele. Note that this will increase the running time of the tool. Otherwise only the tier information for the alternate allele is extracted."/>
        <data name="output_fastq" format="fastq" label="${} on ${on_string}: FASTQ"/>
        <data name="output_json" format="json" label="${} on ${on_string}: JSON"/>
            <param name="file1" value="FreeBayes_test.vcf"/>
            <param name="file2" value="DCS_test.bam"/>
            <param name="file3" value="Aligned_Families_test.tabular"/>
            <output name="output_fastq" file="Interesting_Reads_test.fastq"/>
            <output name="output_json" file="tag_count_dict_test.json"/>
    <help> <![CDATA[
**What it does**

Takes a VCF file with mutations, a BAM file of aligned DCS reads, and a 
tabular file with aligned families as input and prints all tags of reads that 
carry a mutation or have the reference allele to a user-specified output file and creates a fastq file of 
reads of tags with a mutation (and optional the reference allele).


**Dataset 1:** VCF file with duplex consensus sequence (DCS) mutations. E.g. 
generated by the `FreeBayes <>`_ or `LoFreq <>`_ variant caller.

**Dataset 2:** BAM file of aligned DCS reads. This file can be obtained by the 
tool `Map with BWA-MEM <>`_.

**Dataset 3:** Tabular file with reads as produced by the 
**Du Novo: Align families** tool of the `Du Novo Analysis Pipeline 


The output is a json file containing dictionaries of the tags of reads containing mutations 
in the DCS and a fastq file of all reads of these tags.

    <expand macro="citation" />