<commit_before><tool id="plot_coverage" name="Plot coverage" version="0.5.23">
    <description>as area plot between BAM files</description>
    <requirements>
        <requirement type="package" version="0.5.23">readtagger</requirement>
    </requirements>
    <command detect_errors="aggressive"><![CDATA[
#import re
plot_coverage
#for $r in $input_files
    #set identifier = re.sub('[^\w\-_\.\,]', '_', str( $r.input.element_identifier))
    --file '$r.input' '$identifier' $r.total_reads
#end for
output.pdf --cores \${GALAXY_SLOTS:-4} --regions '$regions'
    ]]></command>
    <inputs>
        <repeat name="input_files" title="Add input files to coverage plot" min="1">
            <param name="input" type="data" format="bam,cram" label="Select a BAM file to plot"/>
            <param name="total_reads" type="integer" value="0" min="0" label="Total number of (mapped) reads. If given plot scale will be reads per million"/>
        </repeat>
        <param name="regions" type="text" label="Select regions to plot" optional="true" help="e.g X:1200000-1250000,X1250000-1300000. If left blank will plot all contigs/chromosomes.">
            <sanitizer>
                <valid initial="string.letters,string.digits">
                    <add value="-" />
                    <add value="," />
                    <add value=":" />
                </valid>
            </sanitizer>
        </param>
    </inputs>
    <outputs>
        <data name="output" format="pdf" label="Coverage plot on $on_string" from_work_dir="output.pdf"/>
    </outputs>
    <tests>
        <test>
            <param name="input_files_0|input" value="three_cluster_out.bam" ftype="bam"/>
            <param name="input_files_1|input" value="three_cluster_out.bam" ftype="bam"/>
            <param name="input_files_0|total_reads" value="1000000" ftype="bam"/>
            <param name="input_files_1|total_reads" value="1000000" ftype="bam"/>
            <param name="regions" value="3R:13373525-13373615"/><commit_msg>Allow . in text parameter value<commit_after><tool id="plot_coverage" name="Plot coverage" version="0.5.23">
    <description>as area plot between BAM files</description>
    <requirements>
        <requirement type="package" version="0.5.23">readtagger</requirement>
    </requirements>
    <command detect_errors="aggressive"><![CDATA[
#import re
plot_coverage
#for $r in $input_files
    #set identifier = re.sub('[^\w\-_\.\,]', '_', str( $r.input.element_identifier))
    --file '$r.input' '$identifier' $r.total_reads
#end for
output.pdf --cores \${GALAXY_SLOTS:-4} --regions '$regions'
    ]]></command>
    <inputs>
        <repeat name="input_files" title="Add input files to coverage plot" min="1">
            <param name="input" type="data" format="bam,cram" label="Select a BAM file to plot"/>
            <param name="total_reads" type="integer" value="0" min="0" label="Total number of (mapped) reads. If given plot scale will be reads per million"/>
        </repeat>
        <param name="regions" type="text" label="Select regions to plot" optional="true" help="e.g X:1200000-1250000,X1250000-1300000. If left blank will plot all contigs/chromosomes.">
            <sanitizer>
                <valid initial="string.letters,string.digits">
                    <add value="-" />
                    <add value="," />
                    <add value=":" />
                    <add value="." />
                </valid>
            </sanitizer>
        </param>
    </inputs>
    <outputs>
        <data name="output" format="pdf" label="Coverage plot on $on_string" from_work_dir="output.pdf"/>
    </outputs>
    <tests>
        <test>
            <param name="input_files_0|input" value="three_cluster_out.bam" ftype="bam"/>
            <param name="input_files_1|input" value="three_cluster_out.bam" ftype="bam"/>
            <param name="input_files_0|total_reads" value="1000000" ftype="bam"/>
            <param name="input_files_1|total_reads" value="1000000" ftype="bam"/>
            <param name="regions" value="3R:13373525-13373615"/>
{'fraction_non_alphanumeric': 0.1605120630231413, 'fraction_numerical': 0.03692762186115214, 'mean_word_length': 2.862167300380228, 'pattern_counts': {'":': 2, '<': 74, '<?xml version=': 0, '>': 74, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5361599', 'n_tokens_mistral': 1377, 'n_tokens_neox': 1249, 'n_words': 291}