-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request #985 from GMOD/fix_neatcf"
- Loading branch information
Showing
6 changed files
with
113 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,29 @@ | ||
# CategoryURL - JBrowse plugin | ||
CategoryURL - JBrowse plugin | ||
|
||
Add URL parameter "cat" to specify a category of tracks to display. | ||
All tracks with the given category will be displayed. | ||
If any "tracks" are specified in the URL, "cat" tracks will be appended to list. | ||
|
||
Usage: Add `&cat=myCategory` to the URL | ||
Usage: Add &cat=myCategory | ||
Result: all tracts with category "myCategory" will be displayed. | ||
Sub-categories are supported as well (i.e. `&cat=myCategory/mySubCategory`) | ||
Sub-categories are supported as well (i.e. "&cat=myCategory/mySubCategory" | ||
|
||
The cat= URL parameter allows the display of tracks with the given category | ||
defined in the track metadata that are used to group tracks in the hierarchical | ||
track selector. For example: | ||
|
||
"category" : "Miscellaneous", | ||
"category" : "Miscellaneous", | ||
|
||
Example: | ||
http://<jbrowse>/?data=sample_data/json/volvox&cat=Miscellaneous | ||
http://<jbrowse>/?data=sample_data/json/volvox&cat=Quantitative/Density | ||
|
||
http://<jbrowse>/?data=sample_data/json/volvox&cat=Miscellaneous | ||
|
||
http://<jbrowse>/?data=sample_data/json/volvox&cat=Quantitative/Density | ||
|
||
|
||
### Install / Activate: | ||
|
||
For JBrowse 1.11.6+, copy the `CategoryUrl` directory to the `JBrowse` plugins directory. | ||
Add this to appropriate `trackList.json` under the plugins section (create section, if it doesn't exist): | ||
|
||
"plugins": [ | ||
'CategoryUrl' | ||
], | ||
|
||
Install / Activate: | ||
|
||
For JBrowse 1.11.6+, copy the CategoryUrl directory to the JBrowse 'plugins' directory. | ||
Add this to appropriate trackList.json under the plugins section (create section, if it doesn't exist): | ||
|
||
"plugins": [ | ||
'CategoryUrl' | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,66 @@ | ||
# NeatHTMLFeatures - a JBrowse plugin. | ||
|
||
It applies intron hats and a gradient 'tubular' look to features and subfeatures of HTMLFeatures tracks. | ||
This is refactored from HTMLFeaturesEx.js implementation and the insertion/modification to DOM elements are done out-of-band, | ||
due to difference between HTMLFeatures and DragableHTMLFeatures feature DOMs. | ||
|
||
![](img/example.png?raw=true) | ||
|
||
### What it does: | ||
- draws intron hats and inverted hats for reverse direction features. | ||
- it applies a gradient 'tubular' look to features and subfeatures, inheriting the feature colors and properties. | ||
- modifies UTR to be a outlined box, inheriting the original color. | ||
- generally functional in stand-alone JBrowse. | ||
- special considerations have been made for the unique way Web Apollo renders it's nested subfeatures. | ||
|
||
|
||
### Install / Activate: | ||
|
||
For JBrowse 1.11.6+, copy the NeatHTMLFeatures directory to the 'plugins' directory. | ||
Add this to appropriate trackList.json under the plugins section (create one if it doesn't exist): | ||
|
||
"plugins": [ | ||
'NeatHTMLFeatures' | ||
], | ||
|
||
For Apollo 2.x, copy the NeatHTMLFeatures directory to the `web-apps/jbrowse/plugins` directory. | ||
Add this to `web-apps/jbrowse/plugins/WebApollo/json/annot.json`: | ||
|
||
"plugins" : [ | ||
{ | ||
"location" : "./plugins/WebApollo", | ||
"name" : "WebApollo" | ||
}, | ||
{ | ||
"location" : "./plugins/NeatHTMLFeatures", | ||
"name" : "NeatHTMLFeatures" | ||
} | ||
], | ||
|
||
|
||
### Config Options: | ||
Introns remain ON for all feature tracks. | ||
Neat Features are ON by default, but can be disabled. | ||
Linear Gradients are ON by default (and visible as part of neat features), but can be disabled on all tracks. | ||
|
||
NeatFeatures can be turned off globally in the config file by setting `neatFeatures = 0` in the plugin definition, for example: | ||
|
||
"plugins": [ | ||
{ | ||
"name": "NeatHTMLFeatures", | ||
"neatFeatures": 0 | ||
} | ||
], | ||
|
||
When `neatFeatures = 0` (globally off) in the plugins definition, gradient features can be enabled on per track basis with `neatFeatures = 1` in the track configuration, for example: | ||
|
||
"tracks": [ | ||
{ | ||
... | ||
"type" : "FeatureTrack", | ||
"label" : "ReadingFrame", | ||
"neatFeatures" : 1, | ||
"linearGradient": 0, | ||
... | ||
} | ||
] | ||
|
||
*note: the track-level `neatFeatures` option only applies when the plugin-level `neatFeatures=0`* | ||
#NeatHTMLFeatures - a JBrowse plugin. | ||
|
||
It applies intron hats and a gradient 'tubular' look to features and subfeatures of HTMLFeatures tracks. | ||
This is refactored from HTMLFeaturesEx.js implementation and the insertion/modification to DOM elements are done out-of-band, | ||
due to difference between HTMLFeatures and DragableHTMLFeatures feature DOMs. | ||
|
||
What it does: | ||
- draws intron hats and inverted hats for reverse direction features. | ||
- it applies a gradient 'tubular' look to features and subfeatures, inheriting the feature colors and properties. | ||
- modifies UTR to be a outlined box, inheriting the original color. | ||
- generally functional in stand-alone JBrowse. | ||
- special considerations have been made for the unique way Web Apollo renders it's nested subfeatures. | ||
|
||
|
||
##Install / Activate: | ||
|
||
For JBrowse 1.11.6+, copy the NeatHTMLFeatures directory to the 'plugins' directory. | ||
Add this to appropriate trackList.json under the plugins section (create one if it doesn't exist): | ||
|
||
"plugins": [ | ||
'NeatHTMLFeatures' | ||
], | ||
|
||
For Apollo 2.x, copy the NeatHTMLFeatures directory to the web-apps/jbrowse/plugins directory. | ||
Add this to web-apps/jbrowse/plugins/WebApollo/json/annot.json: | ||
|
||
"plugins" : [ | ||
{ | ||
"location" : "./plugins/WebApollo", | ||
"name" : "WebApollo" | ||
}, | ||
{ | ||
"location" : "./plugins/NeatHTMLFeatures", | ||
"name" : "NeatHTMLFeatures" | ||
} | ||
], | ||
|
||
|
||
#Config Options: | ||
Introns remain ON for all feature tracks. | ||
Neat Features are ON by default, but can be disabled. | ||
Linear Gradients are ON by default (and visible as part of neat features), but can be disabled on all tracks. | ||
|
||
Neat features can be turned off globally in the config file by setting neatFeatures = 0 in the plugin definition, for example: | ||
|
||
"plugins": [ | ||
{ | ||
"name": "NeatHTMLFeatures", | ||
"neatFeatures": 0 | ||
} | ||
], | ||
|
||
When neatFeatures = 0 (globally off) in the plugins definition, gradient features can be enabled on per track basis with neatFeatures = 1 in the track configuration, for example: | ||
|
||
"tracks": [ | ||
{ | ||
... | ||
"type" : "FeatureTrack", | ||
"label" : "ReadingFrame", | ||
"neatFeatures" : 1, | ||
"linearGradient": 0, | ||
... | ||
} | ||
] | ||
|
||
(note: the track-level neatFeatures option only applies when the plugin-level neatFeatures=0) |
Binary file not shown.