<!--
  ~ The MIT License (MIT)
  ~
  ~ Copyright (c) 2007-2015 Broad Institute
  ~
  ~ Permission is hereby granted, free of charge, to any person obtaining a copy
  ~ of this software and associated documentation files (the "Software"), to deal
  ~ in the Software without restriction, including without limitation the rights
  ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  ~ copies of the Software, and to permit persons to whom the Software is
  ~ furnished to do so, subject to the following conditions:
  ~
  ~ The above copyright notice and this permission notice shall be included in
  ~ all copies or substantial portions of the Software.
  ~
  ~
  ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  ~ THE SOFTWARE.
  -->

<!DOCTYPE cli_plugin SYSTEM "cli_plugin.dtd">
<cli_plugin api_version="alpha" plugin_version="0.1" name="cufflinks"
            id="org.broad.igv.plugin.cufflinks">
    <tool name="cufflinks" defaultPath="cufflinks" visible="false">
        <command name="cufflinks" cmd="--quiet">
            <arg name="Output Dir" id="outdir" cmd_arg="-o" type="LONGTEXT" defaultValue="./"/>
            <arg name="Max Intron Length" cmd_arg="--max-intron-length" type="TEXT" defaultValue="300000"/>
            <arg name="Min Isoform Fraction" cmd_arg="--min-isoform-fraction" type="TEXT" defaultValue="0.00001"/>
            <arg name="Pre mRNA Fraction" cmd_arg="--pre-mrna-fraction" defaultValue="0.15" type="TEXT"/>
            <arg name="Perform Quartile Normalization" cmd_arg="--upper-quartile-norm" defaultValue="false" type="BOOL"/>
            <arg name="Use multi-read correct" cmd_arg="--multi-read-correct" defaultValue="false" type="BOOL"/>
            <arg name="Other arguments" cmd_arg="" type="LONGTEXT" defaultValue=""/>
            <arg name="Track" cmd_arg="" type="ALIGNMENT_TRACK"/>
            <output name="Transcripts Track" defaultValue="Transcripts">
                <parser source="$outdir/transcripts.gtf" decodingCodec="org.broad.igv.cli_plugin.CufflinksTranscriptDecoder"/>
            </output>
            <output name="Gene FPKM Track" type="DataSourceTrack" defaultValue="Gene FPKM">
                <parser source="$outdir/genes.fpkm_tracking" decodingCodec="org.broad.igv.data.cufflinks.FPKMTrackingSampleCodec"/>
            </output>
        </command>

    </tool>
</cli_plugin>