Wrapper to format heamap from defined GNPS-MZmine inputs
Install motifHeat with:
devtools::install_github("computational-chemical-biology/motifHeat")
To run motifHeat
simply do:
# Load data from GNPS
dlist <- access_gnps('fe23366fb6e34bee84ac9c1d2c17f5ba',
'7d7e7ed46a954dcbbf3b537e05c9792f')
tab <- dlist$features
meta <- dlist$metadata
# Define coloring scheme
factorColList <- list(list(colors=c("darkorchid","darkred"), factor='Extraction'),
list(colors=c("green", "darkgreen"), factor='Trimethoprim'))
# Plot heatmap
h <- format_heatmap(tab, meta, selectField='StrainName', selectValue='Burkholderia dolosa AU0645 Genomovar type VI',
factorColList=factorColList)
You should be able to generate the following image
This repository is available under the following license.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.