# HG changeset patch # User yating-l # Date 1509991981 18000 # Node ID a65e52152476199a66e7310de8297ed3753221f3 # Parent cb62314a6297fe9799e1323c1d3cace5e0cfc042 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1a81ebd0ddea950b84af3fc830e9267a4814b29f diff -r cb62314a6297 -r a65e52152476 datatypes/binary/BigBed.py --- a/datatypes/binary/BigBed.py Fri Nov 03 17:08:19 2017 -0400 +++ b/datatypes/binary/BigBed.py Mon Nov 06 13:13:01 2017 -0500 @@ -37,7 +37,7 @@ self.database_settings = DatabaseIndex(database=self.trackSettings["database"], seqType=self.seqType).setExtLink() self.extraSettings.update(self.database_settings) if "index_ix" in self.trackSettings and "index_ixx" in self.trackSettings: - self.trix_id = self.extraSettings.get("trix_id") + self.trix_id = self.trackSettings.get("trix_id") if not self.trix_id: self.logger.info("Didn't specify the ID for Trix index for BigBed file: %s. \n Will use \"name\" as default", self.trackName) self.trix_id = "name" diff -r cb62314a6297 -r a65e52152476 datatypes/binary/BigBed.pyc Binary file datatypes/binary/BigBed.pyc has changed diff -r cb62314a6297 -r a65e52152476 datatypes/interval/BigPsl.pyc Binary file datatypes/interval/BigPsl.pyc has changed diff -r cb62314a6297 -r a65e52152476 hubArchiveCreator.xml --- a/hubArchiveCreator.xml Fri Nov 03 17:08:19 2017 -0400 +++ b/hubArchiveCreator.xml Mon Nov 06 13:13:01 2017 -0500 @@ -459,7 +459,8 @@ - + + @@ -1374,9 +1375,9 @@ + value="trix_index_files/blat_out.ix" /> + value="trix_index_files/blat_out.ixx" /> @@ -1424,9 +1425,9 @@ + value="trix_index_files/blast_out.ix" /> + value="trix_index_files/blast_out.ixx" /> @@ -1444,7 +1445,7 @@ - + @@ -1464,9 +1465,9 @@ + value="trix_index_files/blat_out.ix" /> + value="trix_index_files/blat_out.ixx" /> diff -r cb62314a6297 -r a65e52152476 macros.xml --- a/macros.xml Fri Nov 03 17:08:19 2017 -0400 +++ b/macros.xml Mon Nov 06 13:13:01 2017 -0500 @@ -63,14 +63,17 @@ type="data" format="txt" multiple="true" + min="2" + max="2" label="Specify Trix index" help="Dataset collection containing ix and ixx files generated by UCSC Trix Index Generator" /> - + + \ No newline at end of file diff -r cb62314a6297 -r a65e52152476 test-data/trix_index_files/bigbed_trackhub.html --- a/test-data/trix_index_files/bigbed_trackhub.html Fri Nov 03 17:08:19 2017 -0400 +++ b/test-data/trix_index_files/bigbed_trackhub.html Mon Nov 06 13:13:01 2017 -0500 @@ -26,27 +26,14 @@
  • - trackDb.txt + description.html +
  • +
  • + trix
  • + diff -r cb62314a6297 -r a65e52152476 test-data/trix_index_files/blast_alignment_trackhub.html --- a/test-data/trix_index_files/blast_alignment_trackhub.html Fri Nov 03 17:08:19 2017 -0400 +++ b/test-data/trix_index_files/blast_alignment_trackhub.html Mon Nov 06 13:13:01 2017 -0500 @@ -12,15 +12,27 @@ diff -r cb62314a6297 -r a65e52152476 test-data/trix_index_files/blat_alignment_trackhub.html --- a/test-data/trix_index_files/blat_alignment_trackhub.html Fri Nov 03 17:08:19 2017 -0400 +++ b/test-data/trix_index_files/blat_alignment_trackhub.html Mon Nov 06 13:13:01 2017 -0500 @@ -12,15 +12,27 @@ diff -r cb62314a6297 -r a65e52152476 tests.xml --- a/tests.xml Fri Nov 03 17:08:19 2017 -0400 +++ b/tests.xml Mon Nov 06 13:13:01 2017 -0500 @@ -1,6 +1,59 @@ - - - + #if $f.formatChoice.bedChoice.bed_select == "bed_blast_alignment_option" + #set database = str($f.formatChoice.bedChoice.database) + #silent $extra_data_dict.update({"database": $database}) + #if $f.formatChoice.bedChoice.add_trix_index.add_trix_index_selector == "yes" + #for i in $f.formatChoice.bedChoice.add_trix_index.trix_index + #if $i.element_identifier.endswith("ix") + #$extra_data_dict.update({"index_ix": str($i)}) + #elif $i.element_identifier.endswith("ixx") + #$extra_data_dict.update({"index_ixx": str($i)}) + #end if + #end for + ##set ix_index = str($f.formatChoice.bedChoice.add_trix_index.trix_index.index_ix) + ##set ixx_index = str($f.formatChoice.bedChoice.add_trix_index.trix_index.index_ixx) + ##silent $extra_data_dict.update({"indexIx": $ix_index, "indexIxx": $ixx_index}) + #end if + #silent $prepare_json("BedBlastAlignments", $f.formatChoice.bedChoice.BED_blast_alignment, $index_track_final, + $extra_data_dict) + #end if + #if $f.formatChoice.bedChoice.bed_select == "bed_blat_alignment_option" + #set database = str($f.formatChoice.bedChoice.database) + #silent $extra_data_dict.update({"database": $database}) + #if $f.formatChoice.bedChoice.add_trix_index.add_trix_index_selector == "yes" + #for i in $f.formatChoice.bedChoice.add_trix_index.trix_index + #if $i.element_identifier.endswith("ix") + #$extra_data_dict.update({"index_ix": str($i)}) + #elif $i.element_identifier.endswith("ixx") + #$extra_data_dict.update({"index_ixx": str($i)}) + #end if + #end for + ##set ix_index = str($f.formatChoice.bedChoice.add_trix_index.trix_index.index_ix) + ##set ixx_index = str($f.formatChoice.bedChoice.add_trix_index.trix_index.index_ixx) + ##silent $extra_data_dict.update({"indexIx": $ix_index, "indexIxx": $ixx_index}) + #end if + #silent $prepare_json("BedBlatAlignments", $f.formatChoice.bedChoice.BED_blat_alignment, $index_track_final, + $extra_data_dict) + #end if + + #if $f.formatChoice.format_select == "bigbed" + #if $f.formatChoice.add_trix_index.add_trix_index_selector == "yes" + ##set ix_index = str($f.formatChoice.add_trix_index.trix_index.index_ix) + ##set ixx_index = str($f.formatChoice.add_trix_index.trix_index.index_ixx) + #for i in $f.formatChoice.add_trix_index.trix_index + #if $i.element_identifier.endswith("ix") + #$extra_data_dict.update({"index_ix": str($i)}) + #elif $i.element_identifier.endswith("ixx") + #$extra_data_dict.update({"index_ixx": str($i)}) + #end if + #end for + #$extra_data_dict.update({"trix_id": str($f.formatChoice.add_trix_index.trix_id)}) + ##set trix_id = str($f.formatChoice.add_trix_index.trix_id) + ##silent $extra_data_dict.update({"indexIx": $ix_index, "indexIxx": $ixx_index, "trix_id": $trix_id}) + #end if + #silent $prepare_json("BigBed", $f.formatChoice.BIGBED, $index_track_final, + $extra_data_dict) + #end if + @@ -870,149 +923,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r cb62314a6297 -r a65e52152476 util/index/TrixIndex.py --- a/util/index/TrixIndex.py Fri Nov 03 17:08:19 2017 -0400 +++ b/util/index/TrixIndex.py Mon Nov 06 13:13:01 2017 -0500 @@ -14,7 +14,7 @@ self.trackName = trackName self.mySpecieFolderPath = mySpecieFolderPath self.index_settings = collections.OrderedDict() - self.trixId = trixId + self.trixId = trixId.rstrip() def setExtLink(self): diff -r cb62314a6297 -r a65e52152476 util/index/TrixIndex.pyc Binary file util/index/TrixIndex.pyc has changed