The goal of glyvis is to visualize everything in the glycoverse ecosystem. Visualization is an essential part of data analysis. Human beings are more sensitive to visual information than text and numbers. Plotting helps us to understand the data better. glyvis provides a unified interface for visualizing glycoverse data, including statistical results, experiments, glycan biosynthesis pathways, and more. It implements the autoplot() method for various glycoverse data structures. Just autoplot() it!
Installation
Install glycoverse
We recommend installing the meta-package glycoverse, which includes this package and other core glycoverse packages.
Install glyvis alone
If you donβt want to install all glycoverse packages, you can only install glyvis.
You can install the latest release of glyvis from r-universe (recommended):
# install.packages("pak")
pak::repo_add(glycoverse = "https://glycoverse.r-universe.dev")
pak::pkg_install("glyvis")Or from GitHub:
pak::pkg_install("glycoverse/glyvis@*release")Or install the development version (NOT recommended):
pak::pkg_install("glycoverse/glyvis")Note: Tips and troubleshooting for the meta-package glycoverse are also applicable here: Installation of glycoverse.
Role in glycoverse
The main purpose of glyvis is to provide visualization for glystats results. It implements autoplot() methods for each result class in glystats, so that the users can visualize the results directly to get a quick overview. It also provides some other visualization functions for glycoverse data structures, such as glyexp::experiment(), glyrepr::glycan_structure(), and others. This package is not intended to produce publication-quality figures, but to provide a quick exploration of the data.
Example
library(glyexp)
library(glyclean)
#>
#> θ½½ε
₯η¨εΊε
οΌ'glyclean'
#> The following object is masked from 'package:stats':
#>
#> aggregate
library(glystats)
library(glyvis)
exp <- auto_clean(real_experiment)
#>
#> ββ Normalizing data ββ
#>
#> βΉ No QC samples found. Using default normalization method based on experiment type.
#> βΉ Experiment type is "glycoproteomics". Using `normalize_median()`.
#> β Normalization completed.
#>
#> ββ Removing variables with too many missing values ββ
#>
#> βΉ No QC samples found. Using all samples.
#> βΉ Applying preset "discovery"...
#> βΉ Total removed: 24 (0.56%) variables.
#> β Variable removal completed.
#>
#> ββ Imputing missing values ββ
#>
#> βΉ No QC samples found. Using default imputation method based on sample size.
#> βΉ Sample size <= 30, using `impute_sample_min()`.
#> β Imputation completed.
#>
#> ββ Aggregating data ββ
#>
#> βΉ Aggregating to "gfs" level
#> β Aggregation completed.
#>
#> ββ Normalizing data again ββ
#>
#> βΉ No QC samples found. Using default normalization method based on experiment type.
#> βΉ Experiment type is "glycoproteomics". Using `normalize_median()`.
#> β Normalization completed.
#>
#> ββ Correcting batch effects ββ
#>
#> βΉ Batch column not found in sample_info. Skipping batch correction.
#> β Batch correction completed.
pca_res <- gly_pca(exp)
autoplot(pca_res)
