Skip to content

Commit

Permalink
Update jbrowse2 conda to 2.12.3 (bgruening#1445)
Browse files Browse the repository at this point in the history
* adding first tested and working generated tool from https://github.com/fubar2/nftoolmaker
It actually does work. Sort of.
Hope this is useful to someone.

* fixes suggested by bgruening for the PR - all adjustments will now apply to all future generated tools :)

* add yara mapper ToolFactory - NOT from nf-core.
Allows single ended fastq or fasta to be mapped, or a pair of forward and reverse - both must be fastq

* small test files still work :)

* single quotes for $runme - disappeared mysteriously :(

* adding panaroo

* Finally fixed the '$runme' suggestion and got the sanitisers not to.

* fix profile="22.05" - need to update galaxyxml to fix this and the stdio replacement...

* cleanup master branch of fork

* update help
some prompts
add bgperpx - todo add as a parameter

* 2.12.2 update
Add wiggle track colour and other controls
Add bpPerPx in advanced section to control view scale at default open
Clarify dependence on remote URI tabix data if uri source used.

* bump to 2.12.3 jb2
still passes tests - no breakage yet.

* fix JB2VER although not currently used...

* Have the no-build plugin for bed colour above and below zero binary working!
Involved a substantial simplification of the default_session setup - just needed "configuration": displayId in the display.
Simples.

* remove copy for strings.

* Update tools/jbrowse2/jbrowse2.xml

Co-authored-by: Björn Grüning <[email protected]>

* Update tools/jbrowse2/jbrowse2.xml

Co-authored-by: Björn Grüning <[email protected]>

* fix flake errors and some suggestions

* thought I'd got this one...

* add the new plugin js

* change bed default to not use plugin

* add help explaining relationship to the Bigwig extremes to bed features tool and to the advanced control form.

---------

Co-authored-by: Björn Grüning <[email protected]>
  • Loading branch information
fubar2 and bgruening authored Jul 4, 2024
1 parent 54016bc commit 5665090
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 120 deletions.
26 changes: 26 additions & 0 deletions tools/jbrowse2/bedscoreplugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// colour bed regions according to score - must have columns and score as part of the adapter setup
;(function () {
class Plugin {
name = 'BedScorePlugin';
version = '1.0';

install(pluginManager) {
pluginManager.jexl.addFunction('customColor', feature => {
if (Number(feature.get('score')) > 0) {
return 'red';
} else {
return 'blue';
}
})
}

configure(pluginManager) {}
}

// the plugin will be included in both the main thread and web worker, so
// install plugin to either window or self (webworker global scope)
;(typeof self !== 'undefined' ? self : window).JBrowsePluginBedScorePlugin =
{
default: Plugin,
}
})()
Loading

0 comments on commit 5665090

Please sign in to comment.