klebgenomics / kleborate-viz Goto Github PK
View Code? Open in Web Editor NEWVisualisation application for Klebsiella genotypes generated by Kleborate.
Home Page: https://kleborate.erc.monash.edu
Visualisation application for Klebsiella genotypes generated by Kleborate.
Home Page: https://kleborate.erc.monash.edu
Started filling in using Genptypes by ST tab as a guide. Slider shows but only seems to allow max 1 group. Not sure why this isn't working.
remove V1/V2 and add any other useful rows
Think this should be possible with similar logic as used to specify consistent colours for KpSC?
make the Kp complex species have more distinguishable colours
e.g. could we select a bar (say Klebs pneumo, res score=3) and use this to populate the plots, so that the virulence distribution plot is then just showing the vir scores of these strains? is this useful? or is it best got from the heatmaps tab... perhaps most useful if this carries over to the ST distribution plot, as we are then seeing ST distribution of subpopulation with res or vir score characteristics selected on summary page
Can we add a selector bar that allows users to select the range of years to display in the plots? Perhaps at the top of the page so that it is easy to spot?
The website is not open now. Is this site under maintenance for any reasons? Thank your work about Kleborate and Kleborate-viz. These analysis tools are very useful. Thank you!
To do:
Started filling in the code - the selectors are in place and showing the correct options but can't seem to get the reactivity to work and plot to show. Currently commented out new code so that plot is showing with previous working code.
Hi team Kleborate-viz
Im trying to upload my kleborate data into kleborate-viz, but as soon as the file uploads, i get an error stating disconnected from server. Kindly suggest what could be the reason for the error, I have tried to switch the systems but the problem persists.
Hopefully you can help me out.
Thanks in advance, anticipating for a quick response
Currently the legend title is the raw column name, but the dropdown list shows a cleaner version - can we replicate that to the legend?
The Kleborate table that can be downloaded from Pathogen Watch should include all the columns we need (num_res_genes and num_res_classes currently missing but we've asked them to update and they've agreed to do so) BUT its in csv rather than tab delim format and the genome id column is called 'Genome Name' instead of 'strain'.
Can we enable tabdelim OR csv upload via the same button?
Thinking we can add a check after upload for 'strain' in colnames() and if not present we can do mutate(strain = Genome Name
) so that the fix is propagated through all code. Is this possible?
Other option could be to add a second upload button to specifically handle PW output instead of direct Kleborate output - then we could just read in csv and immediately update the Genome Name column. In that case, either the standard Kleborate output or the PW Kleborate output would be required.
Dropdown box to select from three columns ("carbapenemase_omp_combination", "ESBL_omp_combination", "Bla_acquired_omp_combination") - I've already added the code that creates these columns.
One tricky part is that we need to specify the x-axis order because alphabetical isn't ideal, and the order changes based on the genotype that is selected.
For carbapenemases: limits=c("- wt", "- mut", "IMP wt", "IMP mut", "KPC wt", "KPC mut", "NDM wt", "NDM mut", "OXA wt", "OXA mut", "VIM wt", "VIM mut", "other wt", "other mut", "multiple wt", "multiple mut")
For ESBLs: limits=c("- wt", "- mut", "CTX-M-14 wt", "CTX-M-14 mut", " CTX-M-15 wt", "CTX-M-15 mut", "CTX-M-65 wt", "CTX-M-65 mut", "SHV wt", "SHV mut", "TEM wt", "TEM mut", "other wt", "other mut", "multiple wt", "multiple mut")
For Bla_acquired: limits=c("- wt", "- mut", "DHA wt", "DHA mut", " LAP wt", "LAP mut", "OXA wt", "OXA mut", "TEM wt", "TEM mut", "other wt", "other mut", "multiple wt", "multiple mut")
for all samples currently selected, or stratified by ST
could be barplots or heatmaps?
Looking at https://kleborate.erc.monash.edu/ - when I try to select an ST I get an error in the heatmap both selecting from the plot and using the new ST box
e.g. on ST distribution tab, would be useful to download the tabulation of ST vs current variable being displayed
Need to check for column names in the metadata file to populate the drop down list and edit the calls to prop.table in cumulative_ko_locus.R to use the selected variable instead of 'Region' - rest of code should then work.
Ideally also edit colours to a nicer palette - need to figure out how to do this when don't know the total number of groups - see also the 'Trends by sample' tab.
e.g if species columns K or O locus cols or resistance gene cols are absent - give a message to rerun Kleborate using --all option.
Currently the heatmaps of AMR/vir (on convergence tab) and K/O are populated by an ST chosen by clicking on the interactive scatter plot on the same page. But if a user wanted to see the heatmap for a given ST they would have to find it in the scatter plot which is a pain. Would be good to also allow users to simply type in a ST to populate the heatmap with (would need appropriate checks to see if it exists etc).
i.e. use the heatmap to select convergence zones to show detail of strains in that zone
Add options to colour by:
*ST category e.g. MDR, hv, other - will need to specify a list of MDR and hv STs in global
*ybt lineage
*iuc lineage
*iro lineage
*rmpADC lineage
*rmp truncations
Kelly to provide code to process data and colour palettes to match Maggie's figures.
When there are no resistance determinants in a set of genomes the virulence columns get coloured red, when they should be blue - e.g. see KASPAH data set- ST86.
e.g st distribution plot warning about removing rows with non-finite values
I like this as a heatmap, but as a data selector on this page it serves a very limited purpose since it seems to only allow one (x,y) point to be selected. It would be more useful if you could select a range. But actually this can be done easily with the slider in the left-hand controller.
It might be more useful on the 'Summary by species' tab... i.e. turn this into 'Summary' tab which would show virulence & res score barplots, and the vir vs res heatmap.
Alternatively, if it could be embedded in the left-hand controller as the selector for vir/res score range rather than the sliders that would be really cool.
MIC table upload doesn't refresh in the control bar when user uploads new kleborate output (but metadata does).
When MIC tables is uploaded the MIC plot only appears if a metadata table is also uploaded. No metadata is used in the MIC plot so I think these should be independent.
Remembered that it is possible to run Kleborate without Kaptive and so I think it would be useful to eloquently handle the case when these columns are missing.
It is also possible to run Kleborate with resistance screening turned off but these data are central to the majority of the plots so I think it is fair to say that Kleborate-viz is going to expect resistance typing to be turned on (?) Also most people are interested in resistance so likely have it turned on anyway.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.