Comments (1)
Hi
You can set the colorscheme by adding settingsmodel.colorscheme("Scheme name")
to the web page script, e.g. to be called when the web page loads.
To get the default colorscheme name from default_setings.cfg, you need (in the web page script) to download it from the server and parse it, or let the server to extract the setting value:
- In the default_settings.cfg, add the setting, e.g.
colorscheme = Clustal
- Read the setting in server: in wasabi_server.py add
colorscheme = getconf('colorscheme')
- Make it accessbile by request: in wasabi_server.py, add to post_checkserver function:
status["colorscheme"] = colorscheme
- script.js calls the "checkserver" request on page load and reads data from the server in
function startup()
. Add there (after line 5410):if(data.colorscheme) settingsmodel.colorscheme(data.colorscheme);
Note: default_settings.cfg is only read when the Wasabi server is run for the first time. After that, the copy Wasabi data/server_settings.cfg is used instead, so edit that one. Also, restart wasabi_server.py after editing the configfile.
I should add a more general way of setting defaults for javascript-side settings from the server-side config file. Meanwhile, the above workaround hopefully helps.
from wasabi.
Related Issues (20)
- File name problem on repeated exports
- Scale bar for branch lenghts HOT 6
- Online manual/tutorial HOT 1
- Error adding ladderize action to history - undo not working
- Tree drawing error: rendering overflow HOT 3
- PAGAN; failed conversion using boost::any_cast HOT 1
- hidegaps not working when some sequences missing HOT 1
- scalebar overlaps tree when top/bottom minimised
- re-hiding gaps defective with silva alignment
- Consistently named internal nodes HOT 1
- prank -F and +F options HOT 1
- prank phylogeny tree HOT 1
- missing images in wasabiapp.org/software/prank/ HOT 1
- External javascript libraries vulnerability HOT 1
- Python 3 compatibility?
- what's the best way to open a new tab of Wasabi with an associated XML aln/tree file?
- Can't view an Ensembl alignment HOT 1
- No download button when exporting subtree HOT 3
- Data -> export does not clear buttons on next export
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasabi.