Comments (6)
It's a little roundabout, but you can attach the gradient to a dummy attribute (e.g. "color
") and use that to directly specify hues like so:
<attributes ...>
...
<attribute>color</attribute>
</attributes>
<color attribute="color" valueStart="0" valueEnd="360" hueStart="0" hueEnd="360" default="true"></color>
...
<node ...>
...
<color><val>60</val><val>120</val></color>
</node>
from krona.
Makes sense, thanks very much.
Is there any way to place the category labels into the gradient legend?
Best regards
from krona.
Not at the moment, but this would be useful.
from krona.
This query intention to get clarification on coloring part. I need to give some custom color to the application. May I know the best way of doing it and my color hue in like hueStopHsl = ['rgb(255,204,204)','rgb(255,153,153)', 'rgb(179,0,0)'];
from krona.
It's a little roundabout, but you can attach the gradient to a dummy attribute (e.g. "color") and use that to directly specify hues like.......
Unfortunately, I can't do it. Could you explain where I have to put it? I will be very grateful.
Best regards!
from krona.
The 2011 Ondov et al. BMC Bioinformatics paper says, For categorical variables, users may define the color of every node in the XML, but it's not clear how to express that in the xml file.
The Krona 2.0 XML Specification describes color gradients but there's no mention of discrete colors for categorical attributes.
Thanks very much for any info.
Hello, I was wondering if this has been fixed.
Currently I have a text file (see below) that gives me a nice figure, but I want to add coloring based on categorical variables (ie phenotypes, in this case gram+ gram-).
Does anyone have tips how to convert this text file to the xml format? I can do python and R, but am new to xml parsing.
Gram+ cellular organisms Bacteria PVC group Planctomycetes Planctomycetia Planctomycetales Planctomycetaceae Rubinisphaera Rubinisphaera brasiliensis
Gram- cellular organisms Bacteria Terrabacteria group Cyanobacteria/Melainabacteria group Cyanobacteria Synechococcales Merismopediaceae Synechocystis unclassified Synechocystis Synechocystis sp.
Gram+ cellular organisms Bacteria Terrabacteria group Actinobacteria Actinobacteria Actinopolysporales Actinopolysporaceae Actinopolyspora Actinopolyspora halophila
Gram- cellular organisms Bacteria Terrabacteria group Firmicutes Clostridia Halanaerobiales Halanaerobiaceae Halanaerobium Halanaerobium praevalens
Thanks,
Kewin
from krona.
Related Issues (20)
- Use of Krona within another project HOT 1
- ktClassifyBLAST error
- Don't display wedge for No Hits (and no matches)
- Exporting raw data from krona plot HOT 1
- ktImportKrona
- Some levels are missing HOT 1
- ploting Krona with multiple levels
- Updating dependencies HOT 1
- Installing KT in Windows HOT 3
- how is the best hit selected for each read in a BLAST tabular output?
- Snapshot opens new tab but nothing ever loads... HOT 1
- What does Other and Unclassified categories stand for in the kronagram?
- Taxonomy level skipped
- how to prepare custom taxonomy.tab
- Coloring Krona with score
- getting sequence id from supplementary file
- KrakenUniq report analysis with Krona: taxonomy ID not found in local database
- KtImportText: Can't locate KronaTools.pm HOT 1
- can't locate kronatools.pm HOT 3
- KronaTools for R Studio
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 krona.