Bio

gmod.org is OK,

GMOD.org status - 16 hours 58 min ago
Categories: Bio

gmod.org is DOWN, 1579594086

GMOD.org status - 18 hours 58 min ago
Categories: Bio

User:Scott

GMOD.org recent changes - Fri, 01/17/2020 - 15:04

← Older revision Revision as of 20:04, 17 January 2020 Line 1: Line 1:  GMOD Coordinator, software development manager at [http://oicr.on.ca/ The Ontario Institute for Cancer Research]. GMOD Coordinator, software development manager at [http://oicr.on.ca/ The Ontario Institute for Cancer Research].    −Scott graduated from The Ohio State University in 1990 with a B. S. in Chemical Engineering and continued on to the University of California in San Diego for graduate school, where he studied improvements to monoclonal antibody production in industrial processes through cell culture and cell cycle modifications.  Upon earning his Ph. D. in Chemical Engineering, he began work in the software industry, working for MSI/Accelrys, Pangea Systems/DoubleTwist, and Athersys, until finally coming to rest at Cold Spring Harbor Laboratory in [[User:Lstein|Lincoln Stein's]] lab, following Lincoln to [http://oicr.on.ca/ OICR] several years ago.  He is the coordinator and a lead developer of the [[Main_Page|GMOD project]], focusing mainly on core schema and tool development, but is also a developer for [http://wormbase.org/ WormBase] and the [http://alliancegenome.org/ Alliance for Genome Resources].  Scott is a happy husband and father of nineteen year old boy-girl twins.+Scott graduated from The Ohio State University in 1990 with a B. S. in Chemical Engineering and continued on to the University of California in San Diego for graduate school, where he studied improvements to monoclonal antibody production in industrial processes through cell culture and cell cycle modifications.  Upon earning his Ph. D. in Chemical Engineering, he began work in the software industry, working for MSI/Accelrys, Pangea Systems/DoubleTwist, and Athersys, until finally coming to rest at Cold Spring Harbor Laboratory in [[User:Lstein|Lincoln Stein's]] lab, following Lincoln to [http://oicr.on.ca/ OICR] several years ago.  He is the coordinator and a lead developer of the [[Main_Page|GMOD project]], focusing mainly on core schema and tool development, but is also a developer for [http://wormbase.org/ WormBase] and the [http://alliancegenome.org/ Alliance for Genome Resources].  Scott is a happy husband and father of twenty year old boy-girl twins who attend San Diego State University.     Scott can be reached at his email address: [http://mailhide.recaptcha.net/d?k=010I5vtKiZqC1kdmtqmWRRhg==&c=6uiWfNokHIbewa_qGkyAF8Tt0sdX6xy0-BIUTsIkwlA=  sco...]@scottcain.net or Twitter @scottjcain. Scott can be reached at his email address: [http://mailhide.recaptcha.net/d?k=010I5vtKiZqC1kdmtqmWRRhg==&c=6uiWfNokHIbewa_qGkyAF8Tt0sdX6xy0-BIUTsIkwlA=  sco...]@scottcain.net or Twitter @scottjcain. Scott
Categories: Bio

gmod.org is DOWN, 1579262886

GMOD.org status - Fri, 01/17/2020 - 07:35
Categories: Bio

JBrowse Tutorial PAG 2020

GMOD.org recent changes - Sun, 01/12/2020 - 15:11

← Older revision Revision as of 20:11, 12 January 2020 (One intermediate revision by the same user not shown)Line 1: Line 1:  This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.6. This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.6.    −This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB).+This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova JBrowse PAG 2020.ova] (about 4GB) or [https://jbrowse-tutorials.s3.amazonaws.com/PAG_2020_JBrowse.zip PAG_2020_JBrowse.zip] (about 36MB) for just the JBrowse source and data files for this tutorial.     == Prerequisites == == Prerequisites == Scott
Categories: Bio

User:Kim rutherford

GMOD.org recent changes - Sat, 01/11/2020 - 00:17

← Older revision Revision as of 05:17, 11 January 2020 (2 intermediate revisions by the same user not shown)Line 1: Line 1:     = Current work = = Current work = −I work as a programmer for [https://www.pombase.org/ PomBase] - the pombe genome database, based in Cambridge, UK.  I look after the [https://www.pombase.org PomBase website], the pombe [[Chado]] database and I work on the [[Canto]] community curation tool.+I work as a programmer for [https://www.pombase.org/ PomBase] - the pombe genome database at the [https://www.bioc.cam.ac.uk/ Department of Biochemistry], [https://en.wikipedia.org/wiki/Cambridge Cambridge].  I look after the [https://www.pombase.org PomBase website], the pombe [[Chado]] database and I work on the [[Canto]] community curation tool.     = Previous work = = Previous work = −In the past I worked on [https://www.sanger.ac.uk/resources/software/artemis/ Artemis] at the [http://www.sanger.ac.uk Sanger Institute] and [[InterMine]] at the [http://www.sysbiol.cam.ac.uk Systems Biology Centre], University of Cambridge, UK.+In the past I worked on [https://www.sanger.ac.uk/science/tools/artemis Artemis] at the [http://www.sanger.ac.uk Sanger Institute] and [[InterMine]] at the [http://www.sysbiol.cam.ac.uk Systems Biology Centre], University of Cambridge, UK.    −More recently I worked as a bioinformatics odd job man for the [http://anatomy.otago.ac.nz/ Department of Anatomy], [http://www.otago.ac.nz/ University of Otago], Dunedin, NZ.  I spent part of my time helping with the [https://www.biorxiv.org/content/10.1101/867069v1 tuatara genome project].   +More recently I worked as a bioinformatics odd job man for the [http://anatomy.otago.ac.nz/ Department of Anatomy], [http://www.otago.ac.nz/ University of Otago], [https://en.wikipedia.org/wiki/Dunedin Dunedin], [https://en.wikipedia.org/wiki/New_Zealand New Zealand].  I spent part of my time helping with the [https://www.biorxiv.org/content/10.1101/867069v1 tuatara genome project].        = Contact = = Contact = −I can be contacted at [mailto:kmr44@cam.ac.uk kmr44@cam.ac.uk] or [mailto:kmr@kmr.nz kmr@kmr.nz].+I can be contacted at [mailto:kmr44@cam.ac.uk kmr44@cam.ac.uk] or [mailto:kmr@kmr.nz kmr@kmr.nz].  I work remotely from [https://en.wikipedia.org/wiki/Dunedin Dunedin].     I occasionally [https://twitter.com/kim_rutherford/ post on Twitter] and I have a small web site for my [https://kmr.nz CV]: I occasionally [https://twitter.com/kim_rutherford/ post on Twitter] and I have a small web site for my [https://kmr.nz CV]: Kim rutherford
Categories: Bio

JBrowse Tutorial PAG 2020

GMOD.org recent changes - Fri, 01/10/2020 - 14:49

‎Using Plugins

← Older revision Revision as of 19:49, 10 January 2020 (4 intermediate revisions by the same user not shown)Line 12: Line 12:     It's probably a good idea to use a browser like Chrome or Firefox that has the ability to turn off caching while working on this tutorial.  To do this in Chrome, with the browser open to the JBrowse page you're working on, select Developer->Javascript Console from the View menu.  In the console, click the "gear" icon (settings) and check the box labeled "Disable Cache". It's probably a good idea to use a browser like Chrome or Firefox that has the ability to turn off caching while working on this tutorial.  To do this in Chrome, with the browser open to the JBrowse page you're working on, select Developer->Javascript Console from the View menu.  In the console, click the "gear" icon (settings) and check the box labeled "Disable Cache".  +  +A few basic packages were installed before JBrowse via <code>apt-get</code>:  +  +<span class="enter">  +  sudo apt-get install build-essential zlib1g-dev apache2 curl  +</span>  +  +Also, a few items were installed that aren't needed for this tutorial but would be necessary if you wanted to add plugins (git and NodeJS):  +  +<span class="enter">  +  curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -  +  sudo apt-get install -y nodejs  +  sudo apt-get install git  +</span>     == JBrowse Introduction == == JBrowse Introduction == Line 30: Line 44:     <pre class="dont"> <pre class="dont"> −  ##curl -O https://s3.amazonaws.com/jbrowse-tutorials/PAG_2020_JBrowse.zip</span> #that's a capital dash"O" not a zero/zed.+  ##curl -O https://s3.amazonaws.com/jbrowse-tutorials/PAG_2020_JBrowse.zip #that's a capital dash"O" not a zero/zed.  </pre> </pre>  +<pre class="dont">    <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file   <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file    <span class="enter">unzip PAG_2020_JBrowse.zip</span>   <span class="enter">unzip PAG_2020_JBrowse.zip</span>    <span class="enter">cd PAG_2020_JBrowse   <span class="enter">cd PAG_2020_JBrowse  +</pre>  <pre class="dont"> <pre class="dont">    unzip jbrowse-1.16.6-release.zip   unzip jbrowse-1.16.6-release.zip Line 42: Line 58:  * run <code>setup.sh</code> to configure this copy of JBrowse * run <code>setup.sh</code> to configure this copy of JBrowse    −  <span class="enter">cd ../jbrowse</span>+  <span class="enter">cd jbrowse</span>  <pre class="dont"> <pre class="dont">    ./setup.sh   ./setup.sh Line 382: Line 398:  <syntaxhighlight lang="javascript"> <syntaxhighlight lang="javascript">         {        { −         "type" : "CanvasFeatures",+         "key" : "RepeatMasker",           "trackType" : "CanvasFeatures",          "trackType" : "CanvasFeatures",  +        "storeClass" : "JBrowse/Store/SeqFeature/NCList",           "style" : {          "style" : {               "color" : "function(feature) { var name = feature.get('Name'); if (name.match('Low_complexity') ) { return 'red'; } return 'black';  }",              "color" : "function(feature) { var name = feature.get('Name'); if (name.match('Low_complexity') ) { return 'red'; } return 'black';  }", Line 397: Line 414:             "label" : "Search for {name} at Google",            "label" : "Search for {name} at Google",             "title" : "function(track,feature,div) { return 'Searching for '+feature.get('name')+' at Google'; }"            "title" : "function(track,feature,div) { return 'Searching for '+feature.get('name')+' at Google'; }" −         },+        },  +        "label" : "repeat masker",  +         "urlTemplate" : "tracks/repeat masker/{refseq}/trackData.json",           "compress" : 0,          "compress" : 0, −         "storeClass" : "JBrowse/Store/SeqFeature/NCList",+         "type" : "CanvasFeatures" −        "label" : "repeatmasker",+ −        "urlTemplate" : "tracks/repeatmasker/{refseq}/trackData.json",+ −        "key" : "RepeatMasker"+         },        },  </syntaxhighlight> </syntaxhighlight> Line 419: Line 435:     RegexSequenceSearch    RegexSequenceSearch    −and the RegexSequenceSearch plugin is already activated (look under the "Track" menu for it).  We will turn on the NeatHTMLFeatures plugin. Right now the Genes track has relatively "boring" glyphs composed of pink rectangles connected by black lines. To turn on NeatHTMLFeatures, just add+and the RegexSequenceSearch plugin is already activated (look under the "Track" menu for it).  We will turn on the HideTrackLabels plugin. Open <code>jbrowse.conf</code>:    −    "plugins": [ +<span class="enter"> −      'NeatHTMLFeatures'+  gedit jbrowse.conf −    ],+</span>    −to the top of <code>data/trackList.json</code>, just inside the first open curly brace.  Reload JBrowse and turn on the Genes track if it isn't already and see the wonder of the psuedo-3D gene glyphs.+and find (cntl-F) "plugins", which will look like this:  +   +<pre>  +## uncomment and edit the example below to enable one or more  +## JBrowse plugins  +# [ plugins.MyPlugin ]  +# location = plugins/MyPlugin  +# [ plugins.AnotherPlugin ]  +# location = ../plugin/dir/someplace/else  +</pre>  +   +Add below this a few lines to active the HideTrackLabels plugin:  +   +<pre>  +[ plugins.HideTrackLabels ]  +location = plugins/HideTrackLabels  +</pre>    −Note that not all plugins are activated this way: typically, if the plugin modifies the way tracks look, it will go here.  If it modifies the way JBrowse *works*, it will go in the <code>jbrowse.conf</code> file.+Note that not all plugins are activated this way: typically, if it modifies the way JBrowse *works*, it will go here.  If the plugin modifies the way tracks look will go in the <code>trackList.json</code> file.     == JBrowse Features == == JBrowse Features == Scott
Categories: Bio

JBrowse Tutorial PAG 2020

GMOD.org recent changes - Fri, 01/10/2020 - 14:49

‎Using Plugins

← Older revision Revision as of 19:49, 10 January 2020 (7 intermediate revisions by the same user not shown)Line 12: Line 12:     It's probably a good idea to use a browser like Chrome or Firefox that has the ability to turn off caching while working on this tutorial.  To do this in Chrome, with the browser open to the JBrowse page you're working on, select Developer->Javascript Console from the View menu.  In the console, click the "gear" icon (settings) and check the box labeled "Disable Cache". It's probably a good idea to use a browser like Chrome or Firefox that has the ability to turn off caching while working on this tutorial.  To do this in Chrome, with the browser open to the JBrowse page you're working on, select Developer->Javascript Console from the View menu.  In the console, click the "gear" icon (settings) and check the box labeled "Disable Cache".  +  +A few basic packages were installed before JBrowse via <code>apt-get</code>:  +  +<span class="enter">  +  sudo apt-get install build-essential zlib1g-dev apache2 curl  +</span>  +  +Also, a few items were installed that aren't needed for this tutorial but would be necessary if you wanted to add plugins (git and NodeJS):  +  +<span class="enter">  +  curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -  +  sudo apt-get install -y nodejs  +  sudo apt-get install git  +</span>     == JBrowse Introduction == == JBrowse Introduction == Line 30: Line 44:     <pre class="dont"> <pre class="dont"> −  ##curl -O https://s3.amazonaws.com/jbrowse-tutorials/PAG_2020_JBrowse.zip</span> #that's a capital dash"O" not a zero/zed.+  ##curl -O https://s3.amazonaws.com/jbrowse-tutorials/PAG_2020_JBrowse.zip #that's a capital dash"O" not a zero/zed.  </pre> </pre>  +<pre class="dont">    <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file   <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file    <span class="enter">unzip PAG_2020_JBrowse.zip</span>   <span class="enter">unzip PAG_2020_JBrowse.zip</span>    <span class="enter">cd PAG_2020_JBrowse   <span class="enter">cd PAG_2020_JBrowse  +</pre>  <pre class="dont"> <pre class="dont"> −  unzip jbrowse-1.16.1-release.zip+  unzip jbrowse-1.16.6-release.zip −  mv jbrowse-1.16.1-release jbrowse+  mv jbrowse-1.16.6-release ../jbrowse  </pre> </pre>    Line 382: Line 398:  <syntaxhighlight lang="javascript"> <syntaxhighlight lang="javascript">         {        { −         "type" : "CanvasFeatures",+         "key" : "RepeatMasker",           "trackType" : "CanvasFeatures",          "trackType" : "CanvasFeatures",  +        "storeClass" : "JBrowse/Store/SeqFeature/NCList",           "style" : {          "style" : {               "color" : "function(feature) { var name = feature.get('Name'); if (name.match('Low_complexity') ) { return 'red'; } return 'black';  }",              "color" : "function(feature) { var name = feature.get('Name'); if (name.match('Low_complexity') ) { return 'red'; } return 'black';  }", Line 397: Line 414:             "label" : "Search for {name} at Google",            "label" : "Search for {name} at Google",             "title" : "function(track,feature,div) { return 'Searching for '+feature.get('name')+' at Google'; }"            "title" : "function(track,feature,div) { return 'Searching for '+feature.get('name')+' at Google'; }" −         },+        },  +        "label" : "repeat masker",  +         "urlTemplate" : "tracks/repeat masker/{refseq}/trackData.json",           "compress" : 0,          "compress" : 0, −         "storeClass" : "JBrowse/Store/SeqFeature/NCList",+         "type" : "CanvasFeatures" −        "label" : "repeatmasker",+ −        "urlTemplate" : "tracks/repeatmasker/{refseq}/trackData.json",+ −        "key" : "RepeatMasker"+         },        },  </syntaxhighlight> </syntaxhighlight> Line 419: Line 435:     RegexSequenceSearch    RegexSequenceSearch    −and the RegexSequenceSearch plugin is already activated (look under the "Track" menu for it).  We will turn on the NeatHTMLFeatures plugin. Right now the Genes track has relatively "boring" glyphs composed of pink rectangles connected by black lines. To turn on NeatHTMLFeatures, just add+and the RegexSequenceSearch plugin is already activated (look under the "Track" menu for it).  We will turn on the HideTrackLabels plugin. Open <code>jbrowse.conf</code>:    −    "plugins": [ +<span class="enter"> −      'NeatHTMLFeatures'+  gedit jbrowse.conf −    ],+</span>    −to the top of <code>data/trackList.json</code>, just inside the first open curly brace.  Reload JBrowse and turn on the Genes track if it isn't already and see the wonder of the psuedo-3D gene glyphs.+and find (cntl-F) "plugins", which will look like this:  +   +<pre>  +## uncomment and edit the example below to enable one or more  +## JBrowse plugins  +# [ plugins.MyPlugin ]  +# location = plugins/MyPlugin  +# [ plugins.AnotherPlugin ]  +# location = ../plugin/dir/someplace/else  +</pre>  +   +Add below this a few lines to active the HideTrackLabels plugin:  +   +<pre>  +[ plugins.HideTrackLabels ]  +location = plugins/HideTrackLabels  +</pre>    −Note that not all plugins are activated this way: typically, if the plugin modifies the way tracks look, it will go here.  If it modifies the way JBrowse *works*, it will go in the <code>jbrowse.conf</code> file.+Note that not all plugins are activated this way: typically, if it modifies the way JBrowse *works*, it will go here.  If the plugin modifies the way tracks look will go in the <code>trackList.json</code> file.     == JBrowse Features == == JBrowse Features == Scott
Categories: Bio

JBrowse Tutorial PAG 2020

GMOD.org recent changes - Fri, 01/10/2020 - 14:49

‎Using Plugins

← Older revision Revision as of 19:49, 10 January 2020 (9 intermediate revisions by the same user not shown)Line 1: Line 1: −This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.1.+This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.6.     This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). Line 12: Line 12:     It's probably a good idea to use a browser like Chrome or Firefox that has the ability to turn off caching while working on this tutorial.  To do this in Chrome, with the browser open to the JBrowse page you're working on, select Developer->Javascript Console from the View menu.  In the console, click the "gear" icon (settings) and check the box labeled "Disable Cache". It's probably a good idea to use a browser like Chrome or Firefox that has the ability to turn off caching while working on this tutorial.  To do this in Chrome, with the browser open to the JBrowse page you're working on, select Developer->Javascript Console from the View menu.  In the console, click the "gear" icon (settings) and check the box labeled "Disable Cache".  +  +A few basic packages were installed before JBrowse via <code>apt-get</code>:  +  +<span class="enter">  +  sudo apt-get install build-essential zlib1g-dev apache2 curl  +</span>  +  +Also, a few items were installed that aren't needed for this tutorial but would be necessary if you wanted to add plugins (git and NodeJS):  +  +<span class="enter">  +  curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -  +  sudo apt-get install -y nodejs  +  sudo apt-get install git  +</span>     == JBrowse Introduction == == JBrowse Introduction == Line 30: Line 44:     <pre class="dont"> <pre class="dont"> −  ##curl -O https://s3.amazonaws.com/jbrowse-tutorials/PAG_2020_JBrowse.zip</span> #that's a capital dash"O" not a zero/zed.+  ##curl -O https://s3.amazonaws.com/jbrowse-tutorials/PAG_2020_JBrowse.zip #that's a capital dash"O" not a zero/zed.  </pre> </pre>  +<pre class="dont">    <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file   <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file    <span class="enter">unzip PAG_2020_JBrowse.zip</span>   <span class="enter">unzip PAG_2020_JBrowse.zip</span>  + <span class="enter">cd PAG_2020_JBrowse  +</pre>  <pre class="dont"> <pre class="dont"> −  unzip jbrowse-1.16.1-release.zip+  unzip jbrowse-1.16.6-release.zip −  mv jbrowse-1.16.1-release jbrowse+  mv jbrowse-1.16.6-release ../jbrowse  </pre> </pre>    Line 381: Line 398:  <syntaxhighlight lang="javascript"> <syntaxhighlight lang="javascript">         {        { −         "type" : "CanvasFeatures",+         "key" : "RepeatMasker",           "trackType" : "CanvasFeatures",          "trackType" : "CanvasFeatures",  +        "storeClass" : "JBrowse/Store/SeqFeature/NCList",           "style" : {          "style" : {               "color" : "function(feature) { var name = feature.get('Name'); if (name.match('Low_complexity') ) { return 'red'; } return 'black';  }",              "color" : "function(feature) { var name = feature.get('Name'); if (name.match('Low_complexity') ) { return 'red'; } return 'black';  }", Line 396: Line 414:             "label" : "Search for {name} at Google",            "label" : "Search for {name} at Google",             "title" : "function(track,feature,div) { return 'Searching for '+feature.get('name')+' at Google'; }"            "title" : "function(track,feature,div) { return 'Searching for '+feature.get('name')+' at Google'; }" −         },+        },  +        "label" : "repeat masker",  +         "urlTemplate" : "tracks/repeat masker/{refseq}/trackData.json",           "compress" : 0,          "compress" : 0, −         "storeClass" : "JBrowse/Store/SeqFeature/NCList",+         "type" : "CanvasFeatures" −        "label" : "repeatmasker",+ −        "urlTemplate" : "tracks/repeatmasker/{refseq}/trackData.json",+ −        "key" : "RepeatMasker"+         },        },  </syntaxhighlight> </syntaxhighlight> Line 418: Line 435:     RegexSequenceSearch    RegexSequenceSearch    −and the RegexSequenceSearch plugin is already activated (look under the "Track" menu for it).  We will turn on the NeatHTMLFeatures plugin. Right now the Genes track has relatively "boring" glyphs composed of pink rectangles connected by black lines. To turn on NeatHTMLFeatures, just add+and the RegexSequenceSearch plugin is already activated (look under the "Track" menu for it).  We will turn on the HideTrackLabels plugin. Open <code>jbrowse.conf</code>:    −    "plugins": [ +<span class="enter"> −      'NeatHTMLFeatures'+  gedit jbrowse.conf −    ],+</span>    −to the top of <code>data/trackList.json</code>, just inside the first open curly brace.  Reload JBrowse and turn on the Genes track if it isn't already and see the wonder of the psuedo-3D gene glyphs.+and find (cntl-F) "plugins", which will look like this:  +   +<pre>  +## uncomment and edit the example below to enable one or more  +## JBrowse plugins  +# [ plugins.MyPlugin ]  +# location = plugins/MyPlugin  +# [ plugins.AnotherPlugin ]  +# location = ../plugin/dir/someplace/else  +</pre>  +   +Add below this a few lines to active the HideTrackLabels plugin:  +   +<pre>  +[ plugins.HideTrackLabels ]  +location = plugins/HideTrackLabels  +</pre>    −Note that not all plugins are activated this way: typically, if the plugin modifies the way tracks look, it will go here.  If it modifies the way JBrowse *works*, it will go in the <code>jbrowse.conf</code> file.+Note that not all plugins are activated this way: typically, if it modifies the way JBrowse *works*, it will go here.  If the plugin modifies the way tracks look will go in the <code>trackList.json</code> file.     == JBrowse Features == == JBrowse Features == Scott
Categories: Bio

JBrowse Tutorial PAG 2020

GMOD.org recent changes - Fri, 01/10/2020 - 14:17

‎Prerequisites

← Older revision Revision as of 19:17, 10 January 2020 (6 intermediate revisions by the same user not shown)Line 1: Line 1: −This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.1.+This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.6.     This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). Line 12: Line 12:     It's probably a good idea to use a browser like Chrome or Firefox that has the ability to turn off caching while working on this tutorial.  To do this in Chrome, with the browser open to the JBrowse page you're working on, select Developer->Javascript Console from the View menu.  In the console, click the "gear" icon (settings) and check the box labeled "Disable Cache". It's probably a good idea to use a browser like Chrome or Firefox that has the ability to turn off caching while working on this tutorial.  To do this in Chrome, with the browser open to the JBrowse page you're working on, select Developer->Javascript Console from the View menu.  In the console, click the "gear" icon (settings) and check the box labeled "Disable Cache".  +  +A few basic packages were installed before JBrowse via <code>apt-get</code>:  +  +<span class="enter">  +  sudo apt-get install build-essential zlib1g-dev apache2 curl  +</span>  +  +Also, a few items were installed that aren't needed for this tutorial but would be necessary if you wanted to add plugins (git and NodeJS):  +  +<span class="enter">  +  curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -  +  sudo apt-get install -y nodejs  +  sudo apt-get install git  +</span>     == JBrowse Introduction == == JBrowse Introduction == Line 30: Line 44:     <pre class="dont"> <pre class="dont"> −  ##curl -O https://s3.amazonaws.com/jbrowse-tutorials/PAG_2020_JBrowse.zip</span> #that's a capital dash"O" not a zero/zed.+  ##curl -O https://s3.amazonaws.com/jbrowse-tutorials/PAG_2020_JBrowse.zip #that's a capital dash"O" not a zero/zed.  </pre> </pre>  +<pre class="dont">    <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file   <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file    <span class="enter">unzip PAG_2020_JBrowse.zip</span>   <span class="enter">unzip PAG_2020_JBrowse.zip</span>  + <span class="enter">cd PAG_2020_JBrowse  +</pre>  <pre class="dont"> <pre class="dont"> −  unzip jbrowse-1.16.1-release.zip+  unzip jbrowse-1.16.6-release.zip −  mv jbrowse-1.16.1-release jbrowse+  mv jbrowse-1.16.6-release ../jbrowse  </pre> </pre>    Scott
Categories: Bio

JBrowse Tutorial PAG 2020

GMOD.org recent changes - Thu, 01/09/2020 - 14:25

‎Getting JBrowse

← Older revision Revision as of 19:25, 9 January 2020 (4 intermediate revisions by the same user not shown)Line 1: Line 1: −This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.1.+This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.6.     This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). Line 34: Line 34:    <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file   <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file    <span class="enter">unzip PAG_2020_JBrowse.zip</span>   <span class="enter">unzip PAG_2020_JBrowse.zip</span>  + <span class="enter">cd PAG_2020_JBrowse  <pre class="dont"> <pre class="dont"> −  unzip jbrowse-1.16.1-release.zip+  unzip jbrowse-1.16.6-release.zip −  mv jbrowse-1.16.1-release jbrowse+  mv jbrowse-1.16.6-release ../jbrowse  </pre> </pre>     * run <code>setup.sh</code> to configure this copy of JBrowse * run <code>setup.sh</code> to configure this copy of JBrowse    −  <span class="enter">cd jbrowse</span>+  <span class="enter">cd ../jbrowse</span>  <pre class="dont"> <pre class="dont">    ./setup.sh   ./setup.sh Scott
Categories: Bio

JBrowse Tutorial PAG 2020

GMOD.org recent changes - Wed, 01/08/2020 - 16:00

← Older revision Revision as of 21:00, 8 January 2020 (One intermediate revision by the same user not shown)Line 1: Line 1: −This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.1.+This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.6.     This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). Line 34: Line 34:    <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file   <span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file    <span class="enter">unzip PAG_2020_JBrowse.zip</span>   <span class="enter">unzip PAG_2020_JBrowse.zip</span>  + <span class="enter">cd PAG_2020_JBrowse  <pre class="dont"> <pre class="dont">    unzip jbrowse-1.16.1-release.zip   unzip jbrowse-1.16.1-release.zip Scott
Categories: Bio

JBrowse Tutorial PAG 2020

GMOD.org recent changes - Wed, 01/08/2020 - 12:48

← Older revision Revision as of 17:48, 8 January 2020 Line 1: Line 1: −This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.1.+This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.6.     This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB). Scott
Categories: Bio

JBrowse Tutorial PAG 2020

GMOD.org recent changes - Wed, 01/08/2020 - 12:47

Created page with "This Has topic::JBrowse tutorial was presented by Scott Cain at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.1. This tu..."

New page

This [[Has topic::JBrowse]] tutorial was presented by [[User:Scott|Scott Cain]] at the [http://www.intlpag.org Plant and Animal Genomes] meeting using JBrowse 1.16.1.

This tutorial assumes a [https://www.virtualbox.org VirtualBox] Ubuntu 18.04 (LTS) instance with the tutorial bundle zip file, also available on Amazon S3: [https://s3.amazonaws.com/jbrowse-tutorials/JBrowse+PAG+2020.ova.bz2 JBrowse PAG 2020.ova.bz2] (about 4GB).

== Prerequisites ==

Prerequisites are installed by JBrowse automatically. A few things may fail to install (like legacy support for wiggle files), but that doesn't matter.

Make sure you can copy/paste from the wiki.

It's also very useful to know how to tab-complete in the shell.

It's probably a good idea to use a browser like Chrome or Firefox that has the ability to turn off caching while working on this tutorial. To do this in Chrome, with the browser open to the JBrowse page you're working on, select Developer->Javascript Console from the View menu. In the console, click the "gear" icon (settings) and check the box labeled "Disable Cache".

== JBrowse Introduction ==

How and why [[JBrowse]] is different from most other web-based genome browsers, including [[GBrowse]].

More detail: [http://genome.cshlp.org/content/19/9/1630.full paper]

[[Media:JBrowse_PAG_2017.pdf|JBrowse presentation]]

== Setting up JBrowse ==

=== Getting JBrowse ===

* download the demo bundle from Amazon and unzip it. Don't do the things in yellow; they were done ahead in the interests of time.

<span class="enter">cd html</span>

<pre class="dont">
##curl -O https://s3.amazonaws.com/jbrowse-tutorials/PAG_2020_JBrowse.zip</span> #that's a capital dash"O" not a zero/zed.
</pre>
<span class="enter">cp ~/PAG_2020_JBrowse.zip . ## if we don't need to update the zip file
<span class="enter">unzip PAG_2020_JBrowse.zip</span>
<pre class="dont">
unzip jbrowse-1.16.1-release.zip
mv jbrowse-1.16.1-release jbrowse
</pre>

* run <code>setup.sh</code> to configure this copy of JBrowse

<span class="enter">cd jbrowse</span>
<pre class="dont">
./setup.sh
</pre>

Typically, this setup step doesn't take very long, but on these virtual machines on an already slow laptop, they can take a while.

=== Starting Point ===

Visit in web browser (ie, Firefox inside the virtual machine):

http://localhost/jbrowse/index.html

You should see a "Congratulations" page.

=== Basic Steps ===

There are four basic steps to setting up an instance of JBrowse:
# Load and format reference sequences
# Format data for tracks
# Configure direct-access tracks
# Index feature names

=== A Short Detour for GFF ===

[[GFF]] (Generic Feature Format) is a very commonly used text format for describing features that exist on sequences. We'll head off to [[GFF|that page]] to talk about it a bit.

=== Features from a directory of files ===

Here, we'll use the {{CPAN|Bio::DB::SeqFeature::Store}} adaptor in "memory" mode to read a directory of files. There are adaptors available for use with many other databases, such as [[Chado]] and {{CPAN|Bio::DB::GFF}}.

Config file:
<tt>pythium-1.conf</tt>
<pre>
{
"description": "PAG 2017 P. ultima Example",
"db_adaptor": "Bio::DB::SeqFeature::Store",
"db_args" : {
"-adaptor" : "memory",
"-dir" : ".."
},
...
</pre>

==== Specify reference sequences ====

The first script to run is <tt>bin/prepare-refseqs.pl</tt>; that script is the way you tell JBrowse about what your reference sequences are. Running <tt>bin/prepare-refseqs.pl</tt> also sets up the "DNA" track.

Run this from within the <tt>jbrowse</tt> directory (you could run it elsewhere, but you'd have to explicitly specify the location of the data directory on the command line).

<span class="enter">cd ~/html/jbrowse</span>
<span class="enter">bin/prepare-refseqs.pl --gff ../PAG_2020_JBrowse/scf1117875582023.gff</span>

Refresh it in your web browser, you should new see the JBrowse UI and a sequence track, which will show you the DNA base pairs if you zoom in far enough.

==== Load Feature Data ====

Next, we'll use <tt>biodb-to-json.pl</tt> to get feature data out of the database and turn it into [[Glossary#JSON|JSON]] data that the web browser can use.

In this case, we have specified all of our track configurations in <code>pythium-1.conf</code>.

<syntaxhighlight lang="javascript">...

"TRACK DEFAULTS": {
"class": "feature"
},

"tracks": [
{
"track": "Genes",
"key": "Genes",
"feature": ["mRNA"],
"autocomplete": "all",
"class": "transcript",
"subfeature_classes" : {
"CDS" : "transcript-CDS",
"UTR" : "transcript-UTR"
}
},
...
]</syntaxhighlight>

<tt>track</tt> specifies the track identifier (a unique name for the track, for the software to use). This should be just letters and numbers and - and _ characters; using other characters makes things less convenient.

<tt>key</tt> specifies a human-friendly name for the track, which can use any characters you want.

<tt>feature</tt> gives a list of feature types to include in the track.

<tt>autocomplete</tt> including this setting makes the features in the track searchable.

<tt>urltemplate</tt> specifies a URL pattern that you can use to link genomic features to specific web pages.

<tt>class</tt> specifies the [[Glossary#CSS|CSS]] class that describes how the feature should look.

For this particular track, I've specified the <tt>transcript</tt> feature class.

Run the <tt>bin/biodb-to-json.pl</tt> script with this config file to format this track, and the others in the file:

<span class="enter">bin/biodb-to-json.pl --conf ../PAG_2020_JBrowse/pythium-1.conf</span>

Refresh JBrowse in your web browser. You should now see a bunch of annotation tracks.

==== Index feature names ====

When you generate JSON for a track, if you specify <tt>"autocomplete"</tt> then a listing of all of the feature names from that track (along with feature locations) will also be generated and used to provide feature searching and autocompletion.

The <tt>bin/generate-names.pl</tt> script collects those lists of names from all the tracks and combines them into one big tree that the client uses to search.

<span class="enter">bin/generate-names.pl -v</span>

Visit in web browser, try typing a feature name, such as '''maker-scf1117875582023-snap-gene-0.26-mRNA-1'''. Notice that JBrowse tries to auto-complete what you type.

=== Features from GFF3 or BED files ===

We're going to add a couple more tracks that come from a flat file, <tt>repeats.gff</tt>. To get feature data from flat files into JBrowse, we use <tt>flatfile-to-json.pl</tt>.

* We'll add a RepeatMasker track:

<span class="enter">bin/flatfile-to-json.pl --trackLabel "repeat masker" \
--trackType CanvasFeatures \
--type match:repeatmasker --key RepeatMasker \
--className generic_parent \
--subfeatureClasses '{"match_part" : "feature"}' --gff ../PAG_2020_JBrowse/repeats.gff</span>

* And then a RepeatRunner track:

<span class="enter">bin/flatfile-to-json.pl --trackLabel "repeat runner" \
--trackType CanvasFeatures \
--type protein_match:repeatrunner \
--key RepeatRunner --className generic_parent \
--subfeatureClasses '{"match_part" : "feature"}' --gff ../PAG_2020_JBrowse/repeats.gff</span>

Visit in web browser; you should see the two new RepeatMasker and RepeatRunner tracks.

=== BAM alignments ===

JBrowse can display alignments directly from a BAM file on your web server. Simply place the BAM file in a directory accessible to your web server, and add a snippet of configuration to JBrowse to add the track, similar to:

<syntaxhighlight lang="javascript">
{
"label" : "bam_alignments",
"key" : "BAM alignments",
"storeClass" : "JBrowse/Store/SeqFeature/BAM",
"urlTemplate" : "../../PAG_2020_JBrowse/simulated-sorted.bam",
"type" : "Alignments2"
}
</syntaxhighlight>

This can be added by either editing the <tt>data/trackList.json</tt> file with a text editor, or by running something like this at the command line to inject the track configuration:

<span class="enter">echo '{
"label" : "bam_alignments",
"key" : "BAM alignments",
"storeClass" : "JBrowse/Store/SeqFeature/BAM",
"urlTemplate" : "../../PAG_2020_JBrowse/simulated-sorted.bam",
"type" : "Alignments2"
}' | bin/add-track-json.pl data/trackList.json</span>

=== BAM coverage ===

This time we'll use a text editor and will edit the track configuration file directly. Type

<span class="enter">gedit data/trackList.json</span>

and insert the text below in the "tracks" array (the easiest thing to do is find the "[" after "tracks", paste there and then add a comma after the "}").
<syntaxhighlight lang="javascript">
{
"label" : "bam_coverage",
"key" : "BAM Coverage",
"storeClass" : "JBrowse/Store/SeqFeature/BAM",
"urlTemplate" : "../../PAG_2020_JBrowse/simulated-sorted.bam",
"type" : "SNPCoverage"
}
</syntaxhighlight>

and then press the Save button.

=== Quantitative data ===

==== BigWig ====

JBrowse can display quantitative data directly from a BigWig file on your web server. Simply place the BigWig file in a directory accessible to your web server, and add a snippet of configuration to JBrowse to add the track, similar to:

<syntaxhighlight lang="javascript">
{
"label" : "bigwig_bam_coverage",
"key" : "BigWig - BAM coverage",
"storeClass" : "BigWig",
"urlTemplate" : "../../PAG_2020_JBrowse/simulated-sorted.bam.coverage.bw",
"type" : "JBrowse/View/Track/Wiggle/XYPlot",
"variance_band" : true
}
</syntaxhighlight>

This can be added by either editing the <tt>data/trackList.json</tt> file with a text editor, or by running something like this at the command line to inject the track configuration:

<span class="enter">echo ' {
"label" : "bigwig_bam_coverage",
"key" : "BigWig - BAM coverage",
"storeClass" : "BigWig",
"urlTemplate" : "../../PAG_2020_JBrowse/simulated-sorted.bam.coverage.bw",
"type" : "JBrowse/View/Track/Wiggle/XYPlot",
"variance_band" : true
} ' | bin/add-track-json.pl data/trackList.json</span>

=== Variation Data ===

==== VCF tracks ====

JBrowse can also display VCF variation data directly from a VCF file on your web server that has been compressed with Heng Li's bgzip and tabix. Simply place the .vcf.gz and .vcf.gz.tbi files in a directory accessible to your web server, and add a snippet of configuration to JBrowse to add the track, similar to:

<syntaxhighlight lang="javascript">
{
"label" : "bam_variation",
"key" : "VCF simulated variation",
"storeClass" : "JBrowse/Store/SeqFeature/VCFTabix",
"urlTemplate" : "../../PAG_2020_JBrowse/simulated-sorted.vcf.gz",
"type" : "HTMLVariants"
}
</syntaxhighlight>

This can be added by either editing the <tt>data/trackList.json</tt> file with a text editor, or by running something like this at the command line to inject the track configuration:

<span class="enter">echo ' {
"label" : "bam_variation",
"key" : "VCF simulated variation",
"storeClass" : "JBrowse/Store/SeqFeature/VCFTabix",
"urlTemplate" : "../../PAG_2020_JBrowse/simulated-sorted.vcf.gz",
"type" : "HTMLVariants"
} ' | bin/add-track-json.pl data/trackList.json</span>

===Paired read CRAM data===

We can use a text editor again to edit track configuration file directly. So, if you don't already have gedit open, once again, type

<span class="enter">gedit data/trackList.json</span>

and insert the text below in the "tracks" array (the easiest thing to do is find the "[" after "tracks", paste there and then add a comma after the "}").
<syntaxhighlight lang="javascript">
{
"label" : "paired_cram",
"key" : "Paired CRAM",
"glyph": "JBrowse/View/FeatureGlyph/PairedAlignment",
"storeClass" : "JBrowse/Store/SeqFeature/CRAM",
"urlTemplate" : "../../PAG_2020_JBrowse/simulated.cram",
"type" : "Alignments2"
}
</syntaxhighlight>

and then press the Save button.

====Paired Read Glyph Options====

Now is also a good time to look at the plethora of options available for working with the paired read glyph. To access them, hover the mouse over the the track label (where it says "Paired CRAM") and click the down triangle to display an options menu. Feel free to play, but because this track's data are simulated, they are kind of boring. Be sure to check out the track visualization types.

=== Faceted Track Selection ===

JBrowse has a very powerful faceted track selector that can be used to search for tracks using metadata associated with them.

The track metadata is kept in a CSV-format file, with any number of columns, and with a "label" column whose contents must correspond to the track labels in the JBrowse configuration.

The demo bundle contains an example <tt>trackMetadata.csv</tt> file, which can be copied into the <tt>data</tt> directory for use with this configuration.

<span class="enter">cp ../PAG_2020_JBrowse/trackMetadata.csv data/</span>

Then a simple faceted track selection configuration might look like:

<syntaxhighlight lang="javascript">
"trackSelector": {
"type": 'Faceted',
},
"trackMetadata": {
"sources": [
{ "type": 'csv', "url": 'data/trackMetadata.csv' }
]
}
</syntaxhighlight>

Copy the section above and put it in the empty curly braces in the <tt>jbrowse_conf.json</tt> file in the <tt>jbrowse</tt> directory, save it, refresh your browser, and you should now see the faceted track selector activated.

==Changing the way tracks look==

Tracks can be modified by changing several aspects of how the images are created. While this can be done be done both with HTML and Canvas tracks, this tutorial will focus on Canvas tracks only (the repeat tracks created above).

The configuration for the RepeatMasker track looks like this:

<syntaxhighlight lang="javascript">
{
"key" : "RepeatMasker",
"trackType" : "CanvasFeatures",
"storeClass" : "JBrowse/Store/SeqFeature/NCList",
"urlTemplate" : "tracks/repeat masker/{refseq}/trackData.json",
"style" : {
"subfeatureClasses" : {
"match_part" : "feature"
},
"className" : "generic_parent"
},
"type" : "CanvasFeatures",
"compress" : 0,
"label" : "repeat masker"
}
</syntaxhighlight>

Open the <code>data/trackList.json</code> file in your favorite editor and Control-F will open a "find" window; search for "repeatmasker". A simple change we can make is to the color; in the line starting with "style", add:

<syntaxhighlight lang="javascript">
"color" : "black",
</syntaxhighlight>

save the changes and select the RepeatMasker track or reload the browser to see the change. Many attributes of the display can be modified in this way, see the [[JBrowse_Configuration_Guide#CanvasFeatures_Configuration_Options|JBrowse Configuration Guide]] for a list of options.

=== Making changes based on the data ===

Much like GBrowse's perl callbacks that can change the track display, in the JBrowse configuration file you can include JavaScript functions to change the way tracks look. For example, in the RepeatMasker track, we can change the color of the glyph depending on what kind of repeat it is (where we happen to know that the type of repeat is encoded in the name). In this example, we leave the glyph black, unless it is a low complexity repeat, where we'll color it red. A function to do that would look like this:

<syntaxhighlight lang="javascript">
"color" : "function(feature) { var name = feature.get('Name'); if (name.match('Low_complexity') ) { return 'red'; } return 'black'; }",
</syntaxhighlight>

When editing the trackList.json file directly in this way, the function has to go all on one line, but if we create an "include file" (not covered here) the function can have carriage returns in it. Replace the simple "color : black" section we just created in the configuration file with the function above, save the file and reload the browser page to see the changes (you might have to mouse around to find a low complexity repeat).

=== Making links open something else ===

The default action when you click on a glyph is to open a "floating" window that displays everything JBrowse knows about a feature. If you'd like something else to happen, you have several options ([[JBrowse_Configuration_Guide#Click_Configuration_Options|outlined here]]), including having a different floating window open or executing any JavaScript function you define. For this example, we'll create a link that will Google the repeat's name and open the result in a new window. In the RepeatMasker section of the JBrowse configuration, we'll add a section that looks like this after the style section:

<syntaxhighlight lang="javascript">
"onClick" : {
"iconClass" : "dijitIconDatabase",
"action" : "newWindow",
"url" : "http://www.google.com/search?q={name}",
"label" : "Search for {name} at Google",
"title" : "function(track,feature,div) { return 'Searching for '+feature.get('name')+' at Google'; }"
},
</syntaxhighlight>

If you're having difficulties, the RepeatMasker section of the configuration file should now look something like this:

<syntaxhighlight lang="javascript">
{
"type" : "CanvasFeatures",
"trackType" : "CanvasFeatures",
"style" : {
"color" : "function(feature) { var name = feature.get('Name'); if (name.match('Low_complexity') ) { return 'red'; } return 'black'; }",
"subfeatureClasses" : {
"match_part" : "feature"
},
"className" : "generic_parent"
},
"onClick" : {
"iconClass" : "dijitIconDatabase",
"action" : "newWindow",
"url" : "http://www.google.com/search?q={name}",
"label" : "Search for {name} at Google",
"title" : "function(track,feature,div) { return 'Searching for '+feature.get('name')+' at Google'; }"
},
"compress" : 0,
"storeClass" : "JBrowse/Store/SeqFeature/NCList",
"label" : "repeatmasker",
"urlTemplate" : "tracks/repeatmasker/{refseq}/trackData.json",
"key" : "RepeatMasker"
},
</syntaxhighlight>

==Using Plugins==

JBrowse is built with a very flexible and powerful plugin system. The JBrowse developers are working on a plugin registry website, but for the time being, you can look at the source code for what will drive the website in the [https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0ahUKEwjyssGCz7fPAhUK2IMKHfcODEkQFggeMAA&url=https%3A%2F%2Fgithub.com%2FGMOD%2Fjbrowse-registry&usg=AFQjCNEZ9oH5eRRhbZtDcN-W78HcFuAxZw&sig2=J5pff9m409Qv0eQ5Hnli8g jbrowse-registry github repo], and in particular, the file that contains the info about the available plugins, [https://github.com/GMOD/jbrowse-registry/blob/master/plugins.yaml plugins.yaml].

For this tutorial, we'll look at a plugin that is shipped with JBrowse but isn't turned on by default. JBrowse plugins are typically stored in the <code>plugins</code> directory, and in 1.12.1's plugin directory there are 6 plugins:

CategoryUrl
DebugEvents
HideTrackLabels
NeatCanvasFeatures
NeatHTMLFeatures
RegexSequenceSearch

and the RegexSequenceSearch plugin is already activated (look under the "Track" menu for it). We will turn on the NeatHTMLFeatures plugin. Right now the Genes track has relatively "boring" glyphs composed of pink rectangles connected by black lines. To turn on NeatHTMLFeatures, just add

"plugins": [
'NeatHTMLFeatures'
],

to the top of <code>data/trackList.json</code>, just inside the first open curly brace. Reload JBrowse and turn on the Genes track if it isn't already and see the wonder of the psuedo-3D gene glyphs.

Note that not all plugins are activated this way: typically, if the plugin modifies the way tracks look, it will go here. If it modifies the way JBrowse *works*, it will go in the <code>jbrowse.conf</code> file.

== JBrowse Features ==

=== Highlighting interesting things ===

To highlight a region, you can either right-click on a feature and select 'highlight this', or you can set the highlight explicitly to a certain genomic region by clicking "View -> Set highlight" in the menu bar.

Beginning in JBrowse 1.10.0 you can also highlight a region with the mouse by clicking the highlighter tool (next to the Go button) and clicking and dragging to highlight a region.

=== Opening local files ===

JBrowse can display GFF3, BAM, BigWig, and VCF+Tabix files directly from your local machine without the need to transfer any data to the server. Just use the "File -> Open" tool from the menu bar to add tracks using local files.

=== Combination tracks ===

Starting in version 1.10.0, users can define tracks that are combinations of the data in other tracks. The operations used to combine these tracks can be set operations (union, intersection, subtraction), arithmetic operations for quantitative tracks (addition, subtraction, multiplication, division), and/or masking operations to just highlight or mask some regions based on data in another track.

To add a combination track, select "File->Add combination track" from the menu bar, and drag existing tracks into the new combination track to start combining them.

== Upgrading an Existing JBrowse ==

If the old JBrowse is 1.3.0 or later, simply move the data directory from the old JBrowse directory into the new JBrowse directory after running the <code>setup.sh</code> script.

== Common Problems ==

* JSON syntax errors in configuration files (2.x series will stop this madness!)

== Other links ==

* Config file ref: [[JBrowse Configuration Guide]]
* DIV test: http://jbrowse.org/test/boatdiv/boat.html

[[Category:Tutorial]] Scott
Categories: Bio

Codefest 2020

GMOD.org recent changes - Tue, 01/07/2020 - 11:36

← Older revision Revision as of 16:36, 7 January 2020 (4 intermediate revisions by the same user not shown)Line 3: Line 3:     <center><strong> <center><strong> −[https://sd.handlery.com/ Handlery Hotel]<br />+[https://sd.handlery.com/ Handlery Hotel in the Balboa room]<br />  (down the street from the Town and Country Hotel)<br /> (down the street from the Town and Country Hotel)<br />  San Diego, California<br /> San Diego, California<br /> Line 12: Line 12:  </center> </center>    −<strong>[https://docs.google.com/forms/d/e/1FAIpQLSdJSM-iuiX0_X6WyepZWjVGxOcpNyKsMZv7SGwax-o0t8PqLw/viewform Registration Now Available]</strong>+<strong>[https://docs.google.com/spreadsheets/d/1Kp-fGI0U88PtsbryP1j-BUGA4cduYvC2ojW9Mk0jwxU/edit#gid=0 Participant list now available]</strong>       Line 34: Line 34:  {| class="wikitable" {| class="wikitable"  |- |- −|9:00-12:00+|9:00-10:00  +| Introduction and working group organization  +|-  +|10:00-12:00  | Working groups | Working groups  +|-  +|12:00-1:30  +| Lunch (on your own)  |- |-  |1:30-4:00 |1:30-4:00 Line 52: Line 58:  |- |-  |12:00-1:30 |12:00-1:30 −| Tripal steering committee meeting+| Lunch (on your own)  |- |- −|1:30-4:00+|1:30-3:00  | Working groups | Working groups  |- |- −|4:00-5:00+|3:00-3:45  | Report on progress | Report on progress  |} |}  +  +*Note: the Tripal steering committee will meet on Friday from 12:00 - 3:00 pm at the Postcard Bistro in the Handlery. Childers
Categories: Bio

User:Kim rutherford

GMOD.org recent changes - Sun, 01/05/2020 - 21:55

← Older revision Revision as of 02:55, 6 January 2020 (One intermediate revision by the same user not shown)Line 1: Line 1:     = Current work = = Current work = −I work as a programmer for [http://www.pombas.org/ PomBase] - the pombe genome database, based in Cambridge, UK.  I look after the pombe [[Chado]] database and I work on the [[Canto]] community curation tool.+I work as a programmer for [https://www.pombase.org/ PomBase] - the pombe genome database, based in Cambridge, UK.  I look after the [https://www.pombase.org PomBase website], the pombe [[Chado]] database and I work on the [[Canto]] community curation tool. − + −Also work as a bioinformatics odd job man for the [http://anatomy.otago.ac.nz/ Department of Anatomy], [http://www.otago.ac.nz/ University of Otago], Dunedin, NZ.  I spend part of my time helping with the [http://gemmell-lab.otago.ac.nz/index.php/research/current-research/37-sequencing-a-living-fossil-the-tuatara-genome-project/ tuatara genome project].+     = Previous work = = Previous work =  In the past I worked on [https://www.sanger.ac.uk/resources/software/artemis/ Artemis] at the [http://www.sanger.ac.uk Sanger Institute] and [[InterMine]] at the [http://www.sysbiol.cam.ac.uk Systems Biology Centre], University of Cambridge, UK. In the past I worked on [https://www.sanger.ac.uk/resources/software/artemis/ Artemis] at the [http://www.sanger.ac.uk Sanger Institute] and [[InterMine]] at the [http://www.sysbiol.cam.ac.uk Systems Biology Centre], University of Cambridge, UK.  +  +More recently I worked as a bioinformatics odd job man for the [http://anatomy.otago.ac.nz/ Department of Anatomy], [http://www.otago.ac.nz/ University of Otago], Dunedin, NZ.  I spent part of my time helping with the [https://www.biorxiv.org/content/10.1101/867069v1 tuatara genome project].      = Contact = = Contact = −I can be contacted at [mailto:kmr44@cam.ac.uk kmr44@cam.ac.uk].+I can be contacted at [mailto:kmr44@cam.ac.uk kmr44@cam.ac.uk] or [mailto:kmr@kmr.nz kmr@kmr.nz].    −I occasionally [https://twitter.com/kim_rutherford/ post on Twitter].+I occasionally [https://twitter.com/kim_rutherford/ post on Twitter] and I have a small web site for my [https://kmr.nz CV]: Kim rutherford
Categories: Bio

gmod.org is DOWN, 1577088482

GMOD.org status - Mon, 12/23/2019 - 03:35
Categories: Bio

gmod.org is DOWN, 1576418881

GMOD.org status - Sun, 12/15/2019 - 09:35
Categories: Bio

gmod.org is DOWN, 1576411681

GMOD.org status - Sun, 12/15/2019 - 07:35
Categories: Bio

gmod.org is DOWN, 1575187681

GMOD.org status - Sun, 12/01/2019 - 03:35
Categories: Bio

Pages