changeset 86:0fae1d68347f draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit f09abc1f5ef8d261dff2d1b0063fff99a1b25f93
author fubar
date Wed, 10 Apr 2024 06:08:39 +0000
parents 3b2ff9864995
children de8fb46bc3ef
files jbrowse2.xml test-data/jbrowse2_result02.zip test-data/merlin_tab.maf
diffstat 3 files changed, 241 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/jbrowse2.xml	Tue Apr 09 00:26:49 2024 +0000
+++ b/jbrowse2.xml	Wed Apr 10 06:08:39 2024 +0000
@@ -361,7 +361,8 @@
                 name="category"
                 type="text"
                 value="Default"
-                help="Organise your tracks into Categories for a nicer end-user experience. You can use #date# and it will be replaced with the current date in 'yyyy-mm-dd' format, which is very useful for repeatedly updating a JBrowse instance when member databases / underlying tool versions are updated." optional="False"/>
+                help="Organise your tracks into Categories for a nicer end-user experience. You can use #date# and it will be replaced with the current date in 'yyyy-mm-dd' format,
+                which is very useful for repeatedly updating a JBrowse instance when member databases / underlying tool versions are updated." optional="False"/>
             <repeat name="data_tracks" title="Annotation Track">
                 <conditional name="data_format" label="Track Data Selection Options">
                     <param type="select" label="Track Type" name="data_format_select">
@@ -381,7 +382,9 @@
                         <expand macro="input_conditional" label="BlastXML Track Data" format="blastxml" />
 
                         <param label="Features used in Blast Search"
-                            help="in GFF3. This is used  so we know where to map features. E.g. where results of which CDS Protein32 match up to. The query IDs in your blast results should MATCH some feature IDs in your GFF3 file. This is an optional field and is most useful if using JBrowse to display protein blast results on a DNA genome. blastn results don't need this, blastp results on a protein sequence don't need this."
+                            help="in GFF3. This is used  so we know where to map features. E.g. where results of which CDS Protein32 match up to. The query IDs in your blast results should MATCH some feature
+                            IDs in your GFF3 file. This is an optional field and is most useful if using JBrowse to display protein blast results on a DNA genome. blastn results don't need this,
+                            blastp results on a protein sequence don't need this."
                             format="gff3"
                             name="blast_parent"
                             optional="true"
@@ -418,7 +421,8 @@
                                     name="name"
                                     type="text"
                                     value="match"
-                                    help="Match_parts have options for the parent feature type, such as cDNA_match, match, translated_nucleotide_match, etc. Please select the appropriate one here. You can leave empty to try autodetection (only works with CanvasFeatures track type)."
+                                    help="Match_parts have options for the parent feature type, such as cDNA_match, match, translated_nucleotide_match, etc.
+                                    Please select the appropriate one here. You can leave empty to try autodetection (only works with CanvasFeatures track type)."
                                     optional="True"/>
                             </when>
                             <when value="false" />
@@ -480,6 +484,191 @@
     </outputs>
     <tests>
          <test>
+            <repeat name="assemblies">
+                <conditional name="reference_genome">
+                    <param name="genome_type_select" value="history"/>
+                    <param name="genome" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/Merlin" />
+                    <param name="genome.ext" value="fasta"/>
+                </conditional>
+                <repeat name="track_groups">
+                    <param name="category" value="Assembly properties"/>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="gff"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/merlin.gff3"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="bigwig"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/merlin.bw"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="bed"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/test-6.bed"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="vcf"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/merlin.vcf"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="cram"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/merlin.cram"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="bam"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/merlin-sample.bam"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="maf"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/merlinlastz.maf"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="blastxml"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/merlin.blastxml"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                </repeat>
+            </repeat>
+            <repeat name="assemblies">
+                <conditional name="reference_genome">
+                    <param name="genome_type_select" value="history"/>
+                    <param name="genome" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/dm3.fa" />
+                    <param name="genome.ext" value="fasta"/>
+                </conditional>
+                <repeat name="track_groups">
+                    <param name="category" value="Assembly properties"/>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="cool"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/dm3test.cool"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                </repeat>
+            </repeat>
+            <repeat name="assemblies">
+                <conditional name="reference_genome">
+                    <param name="genome_type_select" value="history"/>
+                    <param name="genome" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/Ppersica1.fa" />
+                    <param name="genome.ext" value="fasta"/>
+                </conditional>
+                <repeat name="track_groups">
+                    <param name="category" value="Assembly properties"/>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="paf"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/peach-grape-map.paf"/>
+                            </conditional>
+                        </conditional>
+
+                        <conditional name="pafsuseuri">
+                            <conditional name="useuri">
+                                <param name="insource" value="history"/>
+                                <param name="annotation" location="https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/merlin/Vvinifera1.fa"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                </repeat>
+            </repeat>
+            <repeat name="assemblies">
+                <conditional name="reference_genome">
+                    <param name="genome_type_select" value="uri"/>
+                    <param name="uri" value="https://s3.amazonaws.com/jbrowse.org/genomes/GRCh38/fasta/GRCh38.fa.gz" />
+                    <param name="refname" value="hg38"/>
+                </conditional>
+                <repeat name="track_groups">
+                    <param name="category" value="Assembly properties"/>
+                    <repeat name="data_tracks">
+                        <conditional name="data_format">
+                            <param name="data_format_select" value="hic"/>
+                            <conditional name="useuri">
+                                <param name="insource" value="uri"/>
+                                <param name="annouri" value="https://s3.amazonaws.com/igv.broadinstitute.org/data/hic/intra_nofrag_30.hic"/>
+                                <param name="annoname" value="humanhic"/>
+                            </conditional>
+                        </conditional>
+                    </repeat>
+                </repeat>
+            </repeat>
+            <section name="jbgen">
+                <param name="zipOut" value="true" />
+            </section>
+            <output name="output" file="jbrowse2_result02.zip" ftype="zip" compare="sim_size">
+                <assert_contents>
+                    <has_archive_member path=".*" n="616" delta="10"/>
+                    <has_archive_member path="index.html"/>
+                    <has_archive_member path="static/media/roboto-latin-400-normal.3f2b9a42f643e62a49b7.woff"/>
+                    <has_archive_member path="manifest.json">
+                        <has_text text="favicon.ico"/>
+                        <has_text text="background_color"/>
+                    </has_archive_member>
+                    <has_archive_member path="galaxy.xml">
+                        <is_valid_xml />
+                        <xml_element path="./metadata/general/session_name" n="1">
+                            <has_text_matching expression="New session"/>
+                            <not_has_text text="Newton"/>
+                        </xml_element>
+                    </has_archive_member>
+                    <has_archive_member path="merlin.gff3_0.gff3.gz"/>
+                    <has_archive_member path="merlin.bw_1.bigwig"/>
+                    <has_archive_member path="test-6.bed_2.bed.gz"/>
+                    <has_archive_member path="merlin.vcf_3.vcf.tbi"/>
+                    <has_archive_member path="merlin.cram_4.cram"/>
+                    <has_archive_member path="merlin-sample.bam_5.bam"/>
+                    <has_archive_member path="merlinlastz.maf_6.maf.sorted.bed.gz.tbi"/>
+                    <has_archive_member path="merlin.blastxml_7.blastxml.gz"/>
+                    <has_archive_member path="dm3test.cool_8.cool.hic"/>
+                    <has_archive_member path="peach-grape-map.paf_9.paf"/>
+                    <has_archive_member path="Merlin.fa.gz.fai"/>
+                    <has_archive_member path="config.json">
+                        <has_json_property_with_text property="name" text="Merlin" />
+                    </has_archive_member>
+
+                </assert_contents>
+            </output>
+        </test>
+         <test>
              <repeat name="assemblies">
                  <conditional name="reference_genome">
                     <param name="genome_type_select" value="history"/>
@@ -834,7 +1023,6 @@
             </output>
         </test>
 
-
         <!-- TODO add a synteny test -->
         <!-- TODO add a bam and a cram test -->
         <!-- TODO add an hic test -->
@@ -898,6 +1086,18 @@
 Annotation Tracks
 -----------------
 
+MAF
+~~~
+
+For history references, the name of the reference genome dataset in your history is very important for MAF tracks,
+because it becomes the "dbkey" for that reference. So, it must be exactly the same as the genome name (dbkey) used
+when making the MAF, typically in the Lastz tool.
+
+If you used "hg38" as the reference in Lastz, that is exactly what the reference fasta should be named for any MAF track.
+Change it using the "pencil" icon on the reference data in your history. Any other name, such as "hg38.fasta"
+will cause the MAF track to show no data since there are no matches with that reference dbkey.
+
+
 GFF3/BED
 ~~~~~~~~
 
Binary file test-data/jbrowse2_result02.zip has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/merlin_tab.maf	Wed Apr 10 06:08:39 2024 +0000
@@ -0,0 +1,37 @@
+##maf	version=1	scoring=lastz.v1.04.22
+#	lastz.v1.04.22	--strand=both	--ambiguous=iupac	--traceback=160M	--format=maf	--action:target=multiple
+#
+#	hsp_threshold	=	3000
+#	gapped_threshold	=	3000
+#	x_drop	=	910
+#	y_drop	=	9400
+#	gap_open_penalty	=	400
+#	gap_extend_penalty	=	30
+#	A	C	G	T
+#	A	91	-114	-31	-123
+#	C	-114	100	-125	-31
+#	G	-31	-125	100	-114
+#	T	-123	-31	-114	91
+a	score=5703
+s	Merlin.Merlin	1320	60	+	172788	ATGTAAGCTCAGGAGCTCCACACGCAACAGGAACACAACCTGTGAACATTATCACAGTAT
+s	Merlin1.Merlin	0	60	+	60	ATGTAAGCTCAGGAGCTCCACACGCAACAGGAACACAACCTGTGAACATTATCACAGTAT
+
+a	score=5595
+s	Merlin.Merlin	4020	60	+	172788	ATGAATTTATCAGTCCAATACTTAAAATGAATACGAAGTAAATCTATGCCTAATACTAAT
+s	Merlin2.Merlin	0	60	+	60	ATGAATTTATCAGTCCAATACTTAAAATGAATACGAAGTAAATCTATGCCTAATACTAAT
+
+a	score=5667
+s	Merlin.Merlin	5220	60	+	172788	TAATCAACGTGTGATGCTTCAAGCCAAGCTTAGGAATAGAAATGGTTTTGCCATTGACTT
+s	Merlin3.Merlin	0	60	+	60	TAATCAACGTGTGATGCTTCAAGCCAAGCTTAGGAATAGAAATGGTTTTGCCATTGACTT
+
+a	score=5640
+s	Merlin.Merlin	7740	60	+	172788	AAAAGCTTATTGCTTAAGCCTACAGTTAAACTCGCTATTCCAGTTAAATGCGATAAATGT
+s	Merlin4.Merlin	0	60	+	60	AAAAGCTTATTGCTTAAGCCTACAGTTAAACTCGCTATTCCAGTTAAATGCGATAAATGT
+
+a	score=5649
+s	Merlin.Merlin	9720	60	+	172788	TTTTCTTTGCTAATTTAACACCAAGAGCTGCAATCCATTGGTTTCTTCGTTTATATCCTG
+s	Merlin5.Merlin	0	60	+	60	TTTTCTTTGCTAATTTAACACCAAGAGCTGCAATCCATTGGTTTCTTCGTTTATATCCTG
+
+a	score=5658
+s	Merlin.Merlin	10380	60	+	172788	ATACTGCATCCTTTTGATACCAATGCGGTTCAATTTGAGTGTTACCAGAGTATATCTTGA
+s	Merlin6.Merlin	0	60	+	60	ATACTGCATCCTTTTGATACCAATGCGGTTCAATTTGAGTGTTACCAGAGTATATCTTGA