Mercurial > repos > pavanvidem > bwtool
changeset 0:150d543a04ca draft
Uploaded
| author | pavanvidem |
|---|---|
| date | Wed, 20 May 2015 13:09:30 -0400 |
| parents | |
| children | 27f84184bbb2 |
| files | bwtool.xml tool_dependencies.xml |
| diffstat | 2 files changed, 145 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bwtool.xml Wed May 20 13:09:30 2015 -0400 @@ -0,0 +1,114 @@ +<tool id="bwtool-lift" name="bwtool-lift" version="1.0"> + <description>Project data base-by-base into a new assembly using a liftOver chain file from UCSC</description> + <requirements> + <requirement type="package">bwtool</requirement> + </requirements> + <command> +<![CDATA[ + bwtool lift $in_bw $to_dbkey $out_bw + #if $unlifted.saveregions == "yes": + -unlifted=$unlifted.unlifted_file + #end if + #if $outwig.usetype == "yes": + -wigtype=$outwig.wigtype + #end if + $wigonly + #if $regions.useregions == "yes": + -regions=$regions.regionsbed + #end if + $condense + -decimals=$decimals + #if $fill.fillmissing == "yes": + -fill=$fill.fillvalue + #end if + -pseudo=$pseudo +]]> + </command> + <inputs> + <param name="in_bw" type="data" format="bigwig" label="Convert coordinates of"> + <param name="to_dbkey" type="select" label="To"> + <options from_file="liftOver.loc"> + <column name="name" index="1"/> + <column name="value" index="2"/> + <column name="dbkey" index="0"/> + <filter type="data_meta" ref="input" key="dbkey" column="0" /> + </options> + </param> + <conditional name="outwig"> + <param name="usetype" type="select" label="use specific regions?" help=""> + <option value="no">no</option> + <option value="yes">yes</option> + </param> + <when value="no"/> + <when value="yes"> + <param name="wigtype" type="select" label="Output type"> + <option value="bg">bedGraph</option> + <option value="fix">fixedStep wig</option> + <option value="var">variableStep wig</option> + </param> + </when> + </conditional> + <param name="wigonly" type="boolean" truevalue="-wig-only" falsevalue="" checked="false" + label="wig-only" + help="for bigWig-creating programs, make a wig instead" /> + <conditional name="regions"> + <param name="useregions" type="select" label="use specific regions?" help=""> + <option value="no">no</option> + <option value="yes">yes</option> + </param> + <when value="no"/> + <when value="yes"> + <param name="regionsbed" type="data" format="bed" label="regions BED file"/> + </when> + </conditional> + <param name="regionsbed" type="data" format="bed" label="use specific regions"/> + <param name="condense" type="boolean" truevalue="-condense" falsevalue="" checked="true" + label="condense" + help="condense output, particularly bedGraphs" /> + <conditional name="fillmissing"> + <param name="fill" type="select" label="use specific regions?" help=""> + <option value="no">no</option> + <option value="yes">yes</option> + </param> + <when value="no"/> + <when value="yes"> + <param name="fillvalue" size="10" type="text" label="some programs allow filling missing parts of the bigWig with a specified value prior to using data"/> + </when> + </conditional> + <param name="fill" size="10" type="text" label="some programs allow filling missing parts of the bigWig with a specified value prior to using data"/> + <param name="pseudo" size="10" value="0" type="text" label="add a pseudo-count at every value"/> + </inputs> + <outputs> + <data format="txt" name="out_bw" label="${tool.name} result file on ${on_string}"/> + <conditional name="unlifted"> + <param name="saveregions" type="select" label="Save all the regions from the input that are not lifted?" help=""> + <option value="no">no</option> + <option value="yes">yes</option> + </param> + <when value="no"/> + <when value="yes"> + <param name="unlifted_file" label="Unlifted regions on ${on_string}"/> + </when> + </conditional> + </outputs> + <help> +<![CDATA[ + +.. class:: infomark + +**What it does** + +The lift program does quite a useful thing when one needs to use data generated for an old genome assembly and doesn't necessarily have the time or the means to go through the steps of generating the equivalent data for a newer genome assembly. Lifting data is the process of converting the coordinates where that data lies, from one assembly to another through sequence alignment data. UCSC creates special alignment files for this purpose called liftOver chains and makes them available on their download page. Lifting is not a perfect process, but if the regions lifted are relatively short, usually only a small percent are not mappable through the chain. In the case of bigWig data, each base is mapped one by one, and is only mapped to the destination genome if it maps to a new locus unambiguously. + + +**Input** + +Bigwig file + + +**References** + + +]]> + </help> +</tool>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Wed May 20 13:09:30 2015 -0400 @@ -0,0 +1,31 @@ +<?xml version="1.0"?> +<tool_dependency> + <package name="bwtool" version="1.0-gamma"> + <install version="1.0"> + <actions> + <action type="download_by_url">https://github.com/CRG-Barcelona/libbeato/archive/92073be13d6bd1f755238bb98ff753bc1f2ca012.tar.gz</action> + <action type="shell_command">configure"</action> + <action type="shell_command">make</action> + <action type="move_directory_files"> + <source_directory>lib</source_directory> + <destination_directory>$INSTALL_DIR/lib</destination_directory> + </action> + <action type="move_directory_files"> + <source_directory>include</source_directory> + <destination_directory>$INSTALL_DIR/include</destination_directory> + </action> + <action type="download_by_url">https://github.com/CRG-Barcelona/bwtool/archive/v1.0-gamma.tar.gz</action> + <action type="shell_command">configure LDFLAGS="-L$INSTALL_DIR/lib" CPPFLAGS="-I$INSTALL_DIR/include"</action> + <action type="shell_command">make</action> + <action type="shell_command">rm -r $INSTALL_DIR/lib $INSTALL_DIR/include</action> + <action type="move_directory_files"> + <source_directory>bin</source_directory> + <destination_directory>$INSTALL_DIR/bin</destination_directory> + </action> + <action type="set_environment"> + <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable> + </action> + </actions> + </install> + </package> +</tool_dependency>
