| Next changeset 1:98704d357ede (2024-09-22) |
|
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/wigtobigwig commit ab36a3ca5954067b66e6290b988a94919c111db0 |
|
added:
readme.rst test-data/1.bedgraph test-data/1.bigwig test-data/1.wig test-data/3.bigwig test-data/dbkeys.loc.test test-data/hg17.fa test-data/hg17.len test-data/merlin.bigwig test-data/merlin.len test-data/merlin.wig tool-data/dbkeys.loc.sample tool_data_table_conf.xml.sample tool_data_table_conf.xml.test wigtobigwig.xml |
| b |
| diff -r 000000000000 -r a2f83a375bf2 readme.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/readme.rst Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,33 @@ +wigtobigwig +=========== + + +Derived from a built-in filter tool + +History +======= + +- 1.1.2 Moved to IUC + + + +Wrapper License (MIT/BSD Style) +=============================== + +Permission to use, copy, modify, and distribute this software and its +documentation with or without modifications and for any purpose and +without fee is hereby granted, provided that any copyright notices +appear in all copies and that both those copyright notices and this +permission notice appear in supporting documentation, and that the names +of the contributors or copyright holders not be used in advertising or +publicity pertaining to distribution of the software without specific +prior permission. + +THE CONTRIBUTORS AND COPYRIGHT HOLDERS OF THIS SOFTWARE DISCLAIM ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR +CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF +USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. |
| b |
| diff -r 000000000000 -r a2f83a375bf2 test-data/1.bedgraph --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/1.bedgraph Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,30 @@ +chr1 0 14361 0 +chr1 14361 14829 1 +chr1 14829 14969 0 +chr1 14969 15038 1 +chr1 15038 15795 0 +chr1 15795 15947 1 +chr1 15947 16606 0 +chr1 16606 16765 1 +chr1 16765 16857 0 +chr1 16857 17055 1 +chr1 17055 17232 0 +chr1 17232 17368 1 +chr1 17368 17605 0 +chr1 17605 17742 1 +chr1 17742 17914 0 +chr1 17914 18061 1 +chr1 18061 18267 0 +chr1 18267 18366 1 +chr1 18366 24737 0 +chr1 24737 24891 1 +chr1 24891 29320 0 +chr1 29320 29370 1 +chr1 29370 34610 0 +chr1 34610 35174 2 +chr1 35174 35276 0 +chr1 35276 35481 2 +chr1 35481 35720 0 +chr1 35720 36081 2 +chr1 36081 69090 0 +chr1 69090 69093 3 |
| b |
| diff -r 000000000000 -r a2f83a375bf2 test-data/1.bigwig |
| b |
| Binary file test-data/1.bigwig has changed |
| b |
| diff -r 000000000000 -r a2f83a375bf2 test-data/1.wig --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/1.wig Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,3 @@ +track type=wiggle_0 name="tb_knownGene" description="table browser query on knownGene" visibility=3 url= +chr7 127475 127491 1 +chr7 1274801 1294883 2 |
| b |
| diff -r 000000000000 -r a2f83a375bf2 test-data/3.bigwig |
| b |
| Binary file test-data/3.bigwig has changed |
| b |
| diff -r 000000000000 -r a2f83a375bf2 test-data/dbkeys.loc.test --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/dbkeys.loc.test Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,3 @@ +#<dbkey> <display_name> <len_file_path> +hg17 hg17 ${__HERE__}/hg17.len + |
| b |
| diff -r 000000000000 -r a2f83a375bf2 test-data/hg17.len --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/hg17.len Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,25 @@ +dummy_chr 100000000 +super_1 100000000 +chr1 100000000 +chr7 200000000 +chrX 200000000 +phiX174 100000000 +random_phiX_region_1 100000000 +random_phiX_region_2 100000000 +random_phiX_region_3 100000000 +random_phiX_region_4 100000000 +random_phiX_region_5 100000000 +random_phiX_region_6 100000000 +random_phiX_region_7 100000000 +random_phiX_region_8 100000000 +random_phiX_region_9 100000000 +random_phiX_region_10 100000000 +random_phiX_region_11 100000000 +random_phiX_region_12 100000000 +random_phiX_region_13 100000000 +random_phiX_region_14 100000000 +random_phiX_region_15 100000000 +random_phiX_region_16 100000000 +random_phiX_region_17 100000000 +random_phiX_region_18 100000000 +random_phiX_region_19 100000000 |
| b |
| diff -r 000000000000 -r a2f83a375bf2 test-data/merlin.bigwig |
| b |
| Binary file test-data/merlin.bigwig has changed |
| b |
| diff -r 000000000000 -r a2f83a375bf2 test-data/merlin.len --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/merlin.len Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,1 @@ +Merlin 172788 |
| b |
| diff -r 000000000000 -r a2f83a375bf2 test-data/merlin.wig --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/merlin.wig Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,2 @@ +Merlin 49 1452 1 +Merlin 1457 3630 1 |
| b |
| diff -r 000000000000 -r a2f83a375bf2 tool-data/dbkeys.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/dbkeys.loc.sample Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,1 @@ +#<dbkey> <display_name> <len_file_path> \ No newline at end of file |
| b |
| diff -r 000000000000 -r a2f83a375bf2 tool_data_table_conf.xml.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_data_table_conf.xml.sample Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,7 @@ +<tables> + <!-- Locations of dbkeys and len files under genome directory --> + <table name="__dbkeys__" comment_char="#"> + <columns>value, name, len_path</columns> + <file path="tool-data/dbkeys.loc" /> + </table> +</tables> |
| b |
| diff -r 000000000000 -r a2f83a375bf2 tool_data_table_conf.xml.test --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_data_table_conf.xml.test Thu Jan 18 19:45:00 2024 +0000 |
| b |
| @@ -0,0 +1,8 @@ +<tables> + <!-- Locations of dbkeys and len files under genome directory --> + <table name="__dbkeys__" comment_char="#" allow_duplicate_entries="False"> + <columns>value, name, len_path</columns> + <file path="${__HERE__}/test-data/dbkeys.loc.test" /> + </table> +</tables> + |
| b |
| diff -r 000000000000 -r a2f83a375bf2 wigtobigwig.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wigtobigwig.xml Thu Jan 18 19:45:00 2024 +0000 |
| [ |
| b'@@ -0,0 +1,171 @@\n+<tool id="ucsc_wigtobigwig" name="wigtobigwig" version="@TOOL_VERSION@+galaxy0" profile="22.05">\n+ <description>bedGraph or Wig to bigWig converter</description>\n+ <macros>\n+ <token name="@TOOL_VERSION@">447</token>\n+ </macros>\n+ <xrefs>\n+ <xref type="bio.tools">UCSC_Genome_Browser_Utilities</xref>\n+ </xrefs>\n+ <requirements>\n+ <requirement type="package" version="@TOOL_VERSION@">ucsc-wigtobigwig</requirement>\n+ </requirements>\n+ <stdio>\n+ <!-- Anything other than zero is an error -->\n+ <regex match="needLargeMem: trying to allocate 0 bytes" description="Your input file might be empty or wrongly formatted"/>\n+ <regex match="^Error"/>\n+ </stdio>\n+ <command><![CDATA[\n+ grep -v "^track" \'$input1\' > trackless &&\n+ wigToBigWig trackless\n+ #if $hist_or_builtin.genome_type_select == "indexed":\n+ \'$hist_or_builtin.index.fields.len_path\'\n+ #else\n+ \'$chromfile\'\n+ #end if\n+ \'$out_file1\'\n+ #if $settings.settingsType == "full":\n+ -blockSize=${settings.blockSize}\n+ -itemsPerSlot=${settings.itemsPerSlot}\n+ ${settings.clip}\n+ ${settings.unc}\n+ #else:\n+ -clip\n+ #end if\n+ ]]>\n+ </command>\n+ <inputs>\n+ <conditional name="hist_or_builtin">\n+ <param name="genome_type_select" type="select" label="Reference genome source" help="Was the Wig/bedgraph input constructed using a genome from your history, or a built-in genome?">\n+ <option selected="True" value="indexed">Input data is for a built-in genome</option>\n+ <option value="history">Input data is for a genome from the current history</option>\n+ </param>\n+ <when value="indexed">\n+ <param name="input1" type="data" format="wig,bedgraph" label="Wig/Bedgraph to convert">\n+ <validator type="unspecified_build"/>\n+ </param>\n+ <param name="index" type="select" label="Source Genome Build">\n+ <options from_data_table="__dbkeys__">\n+ <filter type="data_meta" column="0" key="dbkey" ref="input1"/>\n+ </options>\n+ <validator type="no_options" message="The chosen genome build is not available."/>\n+ </param>\n+ </when>\n+ <when value="history">\n+ <param name="input1" type="data" format="wig,bedgraph" label="Wig/Bedgraph to convert"/>\n+ <param name="chromfile" type="data" format="len,txt,tabular" label="Chromosome length file" help="A file of sequence lengths for the history reference is required to make a bigwig. Compute sequence length tool can make these from fasta files"/>\n+ </when>\n+ </conditional>\n+ <conditional name="settings">\n+ <param name="settingsType" type="select" label="Converter settings to use" help="Default settings should usually be used.">\n+ <option value="preset">Default</option>\n+ <option value="full">Full parameter list</option>\n+ </param>\n+ <when value="preset"/>\n+ <when value="full">\n+ <param argument="-blockSize" type="integer" value="256" label="Items to bundle in r-tree" />\n+ <param argument="-itemsPerSlot" type="integer" value="1024" label="Data points bundled at lowest level"/>\n+ <param argument="-clip" type="boolean" truevalue="-clip" falsevalue="" checked="True" label="Clip chromosome positions" help="Issue warning messages rather than dying if wig file contains items off end of chromosome."/>\n+ <param argument="-unc" type="boolean" truevalue="-unc" falsevalue="" checked="False" label="Do not use compression"/>\n+ </when>\n+ </conditional>\n+ </inputs>\n+ <outputs>\n+ <data name="out_f'..b'Type" value="full"/>\n+ <param name="blockSize" value="256"/>\n+ <param name="itemsPerSlot" value="1024"/>\n+ <param name="clip" value="True"/>\n+ <param name="unc" value="False"/>\n+ </conditional>\n+ <output name="out_file1" file="1.bigwig" compare="sim_size"/>\n+ </test>\n+ <!-- location file test -->\n+ <test expect_num_outputs="1">\n+ <conditional name="hist_or_builtin">\n+ <param name="genome_type_select" value="indexed"/>\n+ <param name="input1" value="1.wig" dbkey="hg17" />\n+ <param name="index" value="hg17" />\n+ </conditional>\n+ <conditional name="settings">\n+ <param name="settingsType" value="preset"/>\n+ </conditional>\n+ <output name="out_file1" file="1.bigwig" compare="sim_size"/>\n+ </test>\n+ <test expect_num_outputs="1">\n+ <conditional name="hist_or_builtin">\n+ <param name="input1" value="1.wig"/>\n+ <param name="genome_type_select" value="history"/>\n+ <param name="chromfile" value="hg17.len" ftype="len"/>\n+ </conditional>\n+ <conditional name="settings">\n+ <param name="settingsType" value="preset"/>\n+ </conditional>\n+ <output name="out_file1" file="1.bigwig" compare="sim_size"/>\n+ </test>\n+ <test expect_num_outputs="1">\n+ <conditional name="hist_or_builtin">\n+ <param name="input1" value="1.bedgraph" ftype="bedgraph"/>\n+ <param name="genome_type_select" value="history"/>\n+ <param name="chromfile" value="hg17.len" ftype="len"/>\n+ </conditional>\n+ <conditional name="settings">\n+ <param name="settingsType" value="preset"/>\n+ </conditional>\n+ <output name="out_file1" file="3.bigwig" compare="sim_size"/>\n+ </test>\n+ <test expect_num_outputs="1">\n+ <conditional name="hist_or_builtin">\n+ <param name="input1" value="merlin.wig" ftype="bedgraph"/>\n+ <param name="genome_type_select" value="history"/>\n+ <param name="chromfile" value="merlin.len" ftype="len"/>\n+ </conditional>\n+ <conditional name="settings">\n+ <param name="settingsType" value="preset"/>\n+ </conditional>\n+ <output name="out_file1" file="merlin.bigwig" compare="sim_size"/>\n+ </test>\n+ </tests>\n+ <help>\n+**Purpose**\n+\n+This tool converts bedgraph or wiggle data into bigWig data for visualisation in browsers. The JBrowse tool can display these with other interesting tracks.\n+\n+**Technical format details**\n+\n+- **Wiggle format**: The .wig format is line-oriented. Wiggle data is preceded by a UCSC track definition line. Following the track definition line is the track data, which can be entered in three different formats described below.\n+\n+ - **BED format** with no declaration line and four columns of data::\n+\n+ chromA chromStartA chromEndA dataValueA\n+ chromB chromStartB chromEndB dataValueB\n+\n+ - **variableStep** two column data; started by a declaration line and followed with chromosome positions and data values::\n+\n+ variableStep chrom=chrN [span=windowSize]\n+ chromStartA dataValueA\n+ chromStartB dataValueB\n+\n+ - **fixedStep** single column data; started by a declaration line and followed with data values::\n+\n+ fixedStep chrom=chrN start=position step=stepInterval [span=windowSize]\n+ dataValue1\n+ dataValue2\n+\n+- The **BedGraph format** is described in detail at the `UCSC Bioinformatics website`_\n+\n+.. _UCSC Bioinformatics website: http://genome.ucsc.edu/goldenPath/help/bedgraph.html\n+\n+ </help>\n+ <citations>\n+ <citation type="doi">10.1093/bioinformatics/btq351</citation>\n+ </citations>\n+</tool>\n' |