Giter Site home page Giter Site logo

klebgenomics / kleborate-viz Goto Github PK

View Code? Open in Web Editor NEW
9.0 6.0 2.0 4.92 MB

Visualisation application for Klebsiella genotypes generated by Kleborate.

Home Page: https://kleborate.erc.monash.edu

R 99.59% JavaScript 0.41%
visualisation genotyping klebsiella

kleborate-viz's People

Contributors

casslitch avatar katholt avatar kelwyres avatar lcerdeira avatar scwatts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kleborate-viz's Issues

on summary page, select values from bar plot

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

Temporal trends - add year selector bar

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?

Web not open

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!

Work on convergence ST/heatmap tab

To do:

  • add res/vir scores to rows (strains) using RowSideColors or row_side_colors
  • add gene frequency to columns (genes) using col_side_colors
  • make sure can download data & plots with plotly controls; or add new buttons
  • consider adding ICEKp types? or perhaps just use this selection to populate another heatmap in another tab, to show full vir subtype and full resistance gene info (here we only have classes)

Add group and colour by selectors to sample trends tab

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.

Kleborate-viz not uploading the file

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
kleborate_error

Enable PathogenWatch data upload - high priority

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.

MICs by genotypes tab - add dropdown box to select AMR genotype for X-axis

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")

Cumulative K/O locus tab - add dropdown box for selecting metadata variable to group by

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.

enter specific ST to show heatmaps

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).

make res/vir heatmap clickable

i.e. use the heatmap to select convergence zones to show detail of strains in that zone

  • the result could be a ST barplot next to the heatmap (because it doesn't need much width), and a heatmap of specific vir/res genotypes below (annotated with ST ideally)
  • could optionally switch the primary res vs vir heatmap axes to be number of res/vir classes rather than scores; or total number of res genes

Add colour options for genotypes by ST and genotypes by metadata

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.

Vir vs res heatmap on 'Genotypes by ST' tab

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 data upload refresh

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.

Turn off K/O locus plots if K/O columns are not present in the output

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.