glyexp 0.12.3
Minor improvements and bug fixes
- Fix
standardize_variable()failing for many proteins due to UniProt API URL length limits. Queries are now batched to stay within limits.
glyexp 0.12.1
New features
-
standardize_variable()now uses “X” for site whenprotein_siteorpeptide_siteis NA.
glyexp 0.12.0
New features
- Add
standardize_variable()to standardize the variable names of an experiment. This function makes variable names more human-readable and meaningful.
glyexp 0.11.2
Minor improvements and bug fixes
-
filter_obs()andfilter_var()now drop unused levels for columns used for filtering. For example,filter_obs(exp, group %in% c("A", "B"))will drop all other levels from thegroupcolumn insample_info, keeping only “A” and “B”. This behavior makes downstream analysis easier. - Fix a logic error in experiment type coercion. Previously, type coercion is performed as long as
check_col_types = TRUE, even ifcoerce_col_types = FALSE. Now, type coercion is performed as long ascoerce_col_types = TRUE. - Update message of
experiment()for type coercion and checking. - Optimize the performance of
merge(). - Join functions now don’t throw an error when no samples or variables are left after joining. Instead, they return an empty experiment. This change is to align with the behavior of
dplyr::join(), which also returns an empty tibble when no rows are left after joining. - Update documentation of
select_obs()andselect_var()to explain that thesampleorvariablecolumn will always be kept.
glyexp 0.11.1
Breaking changes
-
filter_obs()andfilter_var()no longer throw an error when no samples or variables are left after filtering. Instead, they return an empty experiment. This change is to align with the behavior ofdplyr::filter(), which also returns an empty tibble when no rows are left after filtering.
glyexp 0.11.0
Breaking changes
- Remove
count_xxx()functions, as their functionality is now covered bysummarize_experiment(). -
summarize_experiment()now count both total and per-sample numbers. For example, both the number of compositions identified in total (total_composition) and the average number of compositions detected per sample (composition_per_sample) are in the returned tibble.
glyexp 0.10.4
Minor improvements and bug fixes
- Fix a bug in
summarize_experiment()that it fails when required columns are missing.
glyexp 0.10.3
New features
- Add
summarize_experiment()to summarize an experiment.
glyexp 0.10.2
Minor improvements and fixes
-
glycan_typeargument ofexperiment()andset_glycan_type()now accepts more values, including “N”, “O-GalNAc”, “O-GlcNAc”, “O-Man”, “O-Fuc”, “O-Glc”, and NULL.
glyexp 0.10.0
This version is a big update for experiment(). We have made this function more flexible, robust, and user-friendly. The breaking changes we introduced in this version have a broad impact on many glycoverse packages. So we recommend to update all packages to the latest versions.
Breaking Changes
-
experiment()now checks whether certain columns are present invar_info. For “glycomics” experiments,glycan_compositionis required. For “glycoproteomics” experiments,protein,protein_site, andglycan_compositionare required. If any required column is missing, an error will be raised.
New Features
-
experiment()now intelligently coerce common column types to improve user experience. For example, it will convertcharactertofactorfor the “group” column insample_info. This behavior can be controlled by thecoerce_col_typesargument. -
experiment()now checks the column types for some important columns, such asprotein,protein_site,glycan_composition, etc. The checking is performed after column coercion (ifcoerce_col_typesisTRUE), and only a message is printed if some column type conventions are violated. This behavior can be controlled by thecheck_col_typesargument. - Add a new type of experiment: “others”. This type is for other omics experiments that are not glycoproteomics or glycomics. In this case,
glycan_typecan beNULL. Also, type coercion and checking are skipped for this type. - Now the minimum required input for
experiment()is only an expression matrix. If not provided,sample_infoandvar_infowill be automatically generated based on the column and row names of the expression matrix.exp_typewill be set to “others” andglycan_typewill be set toNULL. This gives users more flexibility to createexperiment()objects. - “traitomics” and “traitproteomics” are valid values for
exp_typeofexperiment()now.
Minor Improvements and Bug Fixes
-
toy_experimentnow hasexp_type“others”. -
real_experimentandreal_experiment2now have factors for the “group” column insample_info. - Update the “Creating Experiments” vignette to reflect the new changes.
-
set_meta_data(),set_exp_type(), andset_glycan_type()now check the meta data. -
get_meta_data()now returns all meta data fields ifxisNULL.
glyexp 0.9.2
Minor improvements and bug fixes
- Printing the
experiment()object now includes the experiment type in the title. - Add a vignette to explain four experiment types.
- Add a vignette of creating an
experiment()object from scratch.
glyexp 0.9.0
New features
- Add
real_experiment2, a glycomics example experiment. - Add
from_se()andas_se()to convertexperiment()to and fromSummarizedExperiment()objects. - Add
split()to split an experiment into a list of experiments.
Minor improvements and bug fixes
- Add
merge()andsplit()to the getting started vignette. - Add a picture to the getting started vignette to explain index columns.
- Fix a typo in
toy_experiment: “N3N2” should be “H3N2”. - Fix an error in the documentation of
select_var().
glyexp 0.8.0
Breaking changes
-
toy_experimentis no longer a function, but a data object. Instead of usingtoy_experiment()to get the example experiment, usetoy_experimentdirectly.
New features
- Add
left_join_obs(),left_join_var(),inner_join_obs(),inner_join_var(),semi_join_obs(),semi_join_var(),anti_join_obs(), andanti_join_var(). These functions are useful for adding new information toexperiment()from tibbles. - Add a
real_experimentdata object. This is derived from a real-world N-glycoproteome dataset.
Minor improvements and bug fixes
- Fix warnings in
merge(). - Column types in
sample_infoandvar_infoare now displayed in the console when printing theexperiment()object. -
set_exp_type()andset_glycan_type()now validate the input values.
glyexp 0.7.0
Major changes
- Add
merge()function to merge two experiments.
Minor improvements
- Update the documentation of
experiment().
glyexp 0.6.0
Major changes
- Add a series of functions to describe the experiment:
-
count_compositions(): The number of glycan compositions. -
count_structures(): The number of glycan structures. -
count_peptides(): The number of peptides. -
count_glycopeptides(): The number of unique combinations of peptides, sites, and glycans. -
count_glycoforms(): The number of unique combinations of proteins, sites, and glycans. -
count_proteins(): The number of proteins. -
count_glycosites(): The number of unique combinations of proteins and sites.
-
- Remove
add_glycan_descriptions(),add_struc_descriptions(), andadd_comp_descriptions(). These functions are moved to theglymotifpackage.
