<commit_before><tool id="bedtools_coveragebed" name="Compute both the depth and breadth of coverage" version="@WRAPPER_VERSION@.0">
    <description>of features in file A across the features in file B (coverageBed)</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="stdio" />
    <command>
        coverageBed
        #if $inputA.ext == "bam"
            -abam '$inputA'
        #else
            -a '$inputA'
        #end if
        -b '$inputB'
        $split
        $strand
        | sort -k1,1 -k2,2n
        &gt; '$output'
    </command>
    <inputs>
        <param format="bed,bam,gff,gg3,vcf" name="inputA" type="data" label="Count how many intervals in this BED/VCF/GFF/BAM file (source)">
            <validator type="unspecified_build" />
        </param>
        <param format="bed,gff,gff3,vcf" name="inputB" type="data" label="overlap the intervals in this BED file (target)">
            <validator type="unspecified_build" />
        </param>
        <param name="split" type="boolean" checked="false" truevalue="-split" falsevalue="" label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage"
            help="If set, the coverage will be calculated based the spliced intervals only. For BAM files, this inspects the CIGAR N operation to infer the blocks for computing coverage. For BED12 files, this inspects the BlockCount, BlockStarts, and BlockEnds fields (i.e., columns 10,11,12). If this option is not set, coverage will be calculated based on the interval's START/END coordinates, and would include introns in the case of RNAseq data" />
        <param name="strandedness" type="boolean" label="Force strandedness" truevalue="-s" falsevalue="" checked="false" 
            help="That is, only features in A are only counted towards coverage in B if they are the same strand."/>
    </inputs>

    <outputs>
        <data format="bed" name="output" metadata_source="inputB" label="count of overlaps in ${inputA.name} on ${inputB.name}"/>
    </outputs>
    <help>

**What it does**
<commit_msg>add -d option to the bedcoverage wrapper<commit_after><tool id="bedtools_coveragebed" name="Compute both the depth and breadth of coverage" version="@WRAPPER_VERSION@.0">
    <description>of features in file A across the features in file B (coverageBed)</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="stdio" />
    <command>
        coverageBed
        #if $inputA.ext == "bam"
            -abam '$inputA'
        #else
            -a '$inputA'
        #end if
        -b '$inputB'
        $split
        $strand
        | sort -k1,1 -k2,2n
        &gt; '$output'
    </command>
    <inputs>
        <param format="bed,bam,gff,gg3,vcf" name="inputA" type="data" label="Count how many intervals in this BED/VCF/GFF/BAM file (source)">
            <validator type="unspecified_build" />
        </param>
        <param format="bed,gff,gff3,vcf" name="inputB" type="data" label="overlap the intervals in this BED file (target)">
            <validator type="unspecified_build" />
        </param>
        <param name="split" type="boolean" checked="false" truevalue="-split" falsevalue="" label="Treat split/spliced BAM or BED12 entries as distinct BED intervals when computing coverage"
            help="If set, the coverage will be calculated based the spliced intervals only. For BAM files, this inspects the CIGAR N operation to infer the blocks for computing coverage. For BED12 files, this inspects the BlockCount, BlockStarts, and BlockEnds fields (i.e., columns 10,11,12). If this option is not set, coverage will be calculated based on the interval's START/END coordinates, and would include introns in the case of RNAseq data. (-split)" />
        <param name="strandedness" type="boolean" label="Force strandedness" truevalue="-s" falsevalue="" checked="false" 
            help="That is, only features in A are only counted towards coverage in B if they are the same strand. (-s)"/>
        <param name="d" type="boolean" checked="false" truevalue="-d" falsevalue="" label="Report the depth at each position in each B feature"
            help="Positions reported are one based.  Each position and depth follow the complete B feature. (-d)" />
    </inputs>

    <outputs>
        <data format="bed" name="output" metadata_source="inputB" label="count of overlaps in ${inputA.name} on ${inputB.name}"/>
    </outputs>
    <help>

**What it does**

{'fraction_non_alphanumeric': 0.12006112202575857, 'fraction_numerical': 0.007421960270683257, 'mean_word_length': 3.1242124212421243, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 0, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6387513', 'n_tokens_mistral': 1359, 'n_tokens_neox': 1312, 'n_words': 471}