view g_f0.xml @ 5:0026cd452d0e draft default tip

planemo upload commit 72cee9103c0ae4acb5794afaed179bea2c729f2c-dirty
author stevecassidy
date Sat, 11 Mar 2017 21:37:57 -0500
parents 22e59a5808e8
children
line wrap: on
line source

<tool id="g_f0" name="Compute Pitch" version="0.01">
    <description>using wrassp ksvF0 pitch tracker</description>

    <requirements>
        <requirement type="package" version="0.1.4">r-wrassp</requirement>
    </requirements>

    <command interpreter="bash">
        r_wrapper.sh $__tool_directory__/g_f0.R --args ${wavfile} ${output}
        ${beginTime} ${endTime} ${windowShift} ${gender} ${maxF} ${minF} ${minAmp} ${maxZCR}
     </command>

     <stdio>
         <regex match="Linux: unexpected operator"
                source="stderr"
                level="warning"
                description="conda r-base bash bug" />
     </stdio>

    <inputs>
        <param name="wavfile" type="data" format="wav" label="Audio File" help="Audio file in WAV format"/>
        <param name="beginTime" type="integer" value="0" label="Start time for analysis (s)"/>
        <param name="endTime" type="integer" value="0" label="End Time for analysis (s) 0 means end of signal"/>
        <param name="windowShift" type="integer" value="5" label="Window Shift (ms)" help="set analysis window shift to dur ms"/>
        <param name="gender" type="select" label="Speaker Gender">
            <option value="m" selected="true">Male</option>
            <option value="f">Female</option>
            <option value="u">Unknown</option>
        </param>
        <param name="maxF" type="integer" value="500" label="Maximum F0 Frequency (Hz)"/>
        <param name="minF" type="integer" value="50" label="Minimum F0 Frequency (Hz)"/>
        <param name="minAmp" type="integer" value="100" label="Amplitude threshold for voiced samples"/>
        <param name="maxZCR" type="integer" value="3000" label="Maximum zero crossing rate in Hz (for voicing detection)"/>
    </inputs>

    <outputs>
        <data name="output" format="tabular" label="#echo $wavfile.element_identifier.replace('wav', 'f0') #" />
    </outputs>


    <tests>
        <test>
            <param name="wavfile" value="1_1119_2_22_001-ch6-speaker16.wav"/>
            <output name="output" file="1_1119_2_22_001-F0.dat"/>
        </test>
    </tests>

    <help>F0 analysis of the signal using the K. Schaefer-Vincent periodicity detection algortithm.
    </help>

    <citations>
        <citation type='bibtex'>
            @Manual{,
              title = {wrassp: an R wrapper to the ASSP Library},
              author = {Lasse Bombien and Raphael Winkelmann and Michel
                Scheffers},
              year = {2016},
              note = {R package version 0.1.4},
            }
        </citation>
    </citations>
</tool>