BACKGROUND
modern molecular biology produces high-dimensional data en masse where the number of features is much larger than the sample size of the study or the experiment.
some typical examples are  gene and protein expression data observed with dna microarrays  <cit> , next-generation sequencing   <cit>  or proteomics techniques such as mass spectrometry  <cit>  or 2-d gel electrophoresis  <cit> .
in the case of microarray and proteomics experiments, expression data are generally continuous fluorescence or intensity values  <cit> , while ngs produces expression data as read counts  <cit>  or also as continuous quantities  <cit> .
other examples of high-dimensional data in molecular biology are methylation levels that can also be observed with microarrays  <cit>  and ngs  <cit> , or data from binding experiments such as chromatin immunoprecipitation   <cit>  in combination with microarrays or ngs, or affinity purification mass spectrometry   <cit> .
typical questions analyzed in high-dimensional data focus on the correlation of expression levels with experimental factors or with patient data.
for example gene expression data is usually analyzed to detect differentially expressed genes between two levels of an experimental factor  or between two patient groups .
moreover, high-dimensional expression data is often used to train classifier and regression models to predict therapy outcome  <cit>  or survival  <cit> .
throughout this work, the term ‘observation’ is used to specify the measured data of one experimental unit , and the term ‘sample’ means a set of experimental units.
statistical and bioinformatics analyses of the above questions are usually very sensitive to a single observation, i.e.
its addition or removal can seriously affect the results.
for example when searching for differentially expressed genes or training a classifier model, individual observations can have a strong impact on the ranking of genes or the estimates of the classifier’s performance.
therefore, quality control of the raw data often involves their inspection with respect to extreme observations.
an extreme observation in an experimental group could either be a) regular but just extreme observation, b) a mislabeled observation or c) the consequence of an incorrect measurement.
in the first case robust methods can help to decrease or downweigh the outlier’s impact .
if the last case becomes obvious, the observation can be removed from data analysis.
in the case of a mislabeled observation this can be corrected.
in either case, the identification of outliers can help to continue with a correct analysis.
the most widely used tools for outlier detection in molecular high-throughput data are hierarchical clustering  <cit>  and principal component analysis  <cit> .
in hierarchical clustering all observations are plotted in a tree, where similar observations appear at branches near to each other and unsimilar observations appear at branches farther away from each other.
principal component analysis  performs first a dimension reduction so that the high-dimensional data can be represented in a two- or three-dimensional plot while a certain proportion of variance of the original data is maintained.
in a pca plot similar observations group together and unsimilar observations appear again farther away from each other.
a useful tool for interactive 3d-visualization of principal components is given by the r-package ‘ggobi’  <cit> .
using hierarchical cluster plots and pca plots, outliers can be identified by visual inspection which is, however, a subjective decision of the researcher.
when using hierarchical clustering, the ‘single linkage’ approach usually performs best to identify outliers  <cit> .
besides visual methods, some automated approaches have been proposed, several of them were reviewed by egan and morgan  <cit>  and zimek et al.
<cit> .
methods for automated outlier detection based on robust pca were for example proposed by model et al.
<cit> , hubert et al.
<cit>  as well as filzmoser and todorov  <cit> .
these methods focus, however, only on the data of one experimental group.
because in these approaches, outlier detection and graphical representation are linked, multiple experimental groups can not be displayed in the same plot.
in order to detect outliers individually in multiple experimental groups but to display the results in the same plot we propose an approach that is also based on pca.
in particular, pca is first performed for the whole data set and bagplots are then used individually for each experimental group to identify outliers in the space of the first two principal components.
in addition, we newly present the ‘gemplot’ - the three-dimensional version of the bagplot - and propose to use this plot for automatically identification of outliers in the space of the first three principal components.
in the methods section, the basic principal of pca as well as the concepts of bagplot and gemplot are detailed, and the example data is described.
in the results section we demonstrate the usefulness of our approach on multiple data sets of artificially constructed principal components and one set of public gene expression data from a kidney cancer study.
we close this work with some conclusions.
methods
in this section, we first describe the basic idea of pca and detail next the idea of outlier detection by means of boxplots, bagplots and the new gemplot.
finally, we present the example data that we use for illustrating our approach.
principal component analysis
genomic data typically follows a high-dimensional setting where the number of molecular features d is much larger than the sample size n. in order to visualize such data, dimension reduction is usually used, for example by means of pca which has been widely used in genomics data analysis.
pca projects the data into the space of orthogonal principal components.
each component represents a certain proportion of variance of the original data.
thus, in many cases the first two components represent more than 50% of the variance of the original data and are sufficient to display the location of the single observations to each other and to detect extreme observations.
raychaudhuri et al.
<cit>  show microarray data, where the first two components present even more than 90% of the original variance, and shieh and hung  <cit>  also point out that a small number of components is usually needed to explain most of the variance in high-dimensional settings.
cangelosi and goriely  <cit>  show several data sets of gene expression data, where the first three components represent 80% of the original variance.
sharov et al.
<cit>  show gene expression data, where outliers become obvious when plotting the first three components.
more precisely, the original  data matrix x is transformed into d orthogonal components given by the columns of z=x·a  <cit> .
it can be shown that the columns of the  transformation matrix a are the eigenvectors corresponding to the eigenvalues λ
j  of s, where s is the sample covariance matrix of x. moreover, the eigenvalue λ
j is equal to the variance of the jth principal component.
hence, vj=λj/∑λj represents the proportion of variance that is explained by the jth component.
for the two- and three-dimensional representation of the original data one can than use the first two or three components, respectively, given by the first three columns of z, i.e.
z
<dig>  z
<dig> and z
<dig>
boxplot, bagplot and gemplot
the box-and-whiskers-plot, mostly just called boxplot, is one of the most frequently used graphical tools to display the quantiles of a metric feature.
it consists of a box whose lower and upper limits represent the 25- and 75%-quantile of the observed data and a bar within the box represents the median, i.e.
the 50%-quantile.
thus the box includes 50% of the data points.
in its standard version, the whiskers go from the 75%-quantile to the maximum of the data and from the 25%-quantile to the minimum of the data, respectively.
in order to detect outliers the whiskers are often limited by the so called fence, where their maximal length is only allowed to be  <dig>  times the interquartile range .
each observation that is beyond the fence is drawn as a single dot and is regarded as an outlier.
the two-dimensional extension of the boxplot, the bagplot, was first presented in  <dig> by rousseeuw et al.
<cit> .
instead of a box, a convex hull - called the bag - is contructed so that 50% of the data points in the center of the two-dimensional point cloud are included in this bag.
the bag is determined by making use of the concepts of halfspace location depths and depth regions.
for each point θ in the two-dimensional space, ldepth) is the smallest number of data points , i= <dig> …,n, contained in any closed halfplane with margins through θ. in our case, the coordinates of the data points  are given by the first two principal components.
the depth region d
k is then given by the set of all θ with l
d
e
p
t
h≥k.
if we denote the number of data points in d
k by #
d
k, we need to find that k
∗ for which #dk∗≤⌊n/2⌋<#dk∗− <dig>  the bag can than be found by interpolating between the sets dk∗ by dk∗− <dig>  as center of the data, the depth median t is given by that θ with the highest ldepth.
if there are multiple such θ, t is given by their center of gravity.
similar to the role of the whiskers in a boxplot a loop is constructed around the bag, where observations outside this loop are regarded as outliers.
in order to construct the loop, one first generated the fence by inflating the bag relative to t by a factor of  <dig>  the loop contains all data points within the fence that don’t belong to the bag.
for the detailed description of the construction of a bagplot we refer to the original work of rousseeuw et al.
<cit> .
an algorithm for the fast computation of halfspace location depths is for example given in miller et al.
<cit> .
rousseeuw et al.
already pointed out that the bagplot is, in principle, defined in any dimension.
instead of halfplanes, halfspaces are then used to determine the halfspace location depths.
since it is computationally extreme and also hard to visualize bagplots in higher dimensions, there was not yet an implementation for the three-dimensional case.
here, we present this three-dimensional version for the first time and call it ‘gemplot’ due to the similarity of its appearance as gemstones.
we also provide the software package ‘gemplot’ for the r programming environment available at https://github.com/jkruppa/gemplot.
in order to determine the sets d
k in the three-dimensional space, our implementation uses a three-dimensional array that lays a three-dimensional grid across the data points.
for each grid point θ, ldepth) is calculated.
thus, it is also possible – though time-consuming – to calculate the gemplots in more than three dimensions.
a special graphical trick to make the visualization of gemplots possible is the use of transparent colors.
thus, the depth median and the bag  are still visible when drawing the loop .
when the median is not a single point, we found that it is more appropriate not to display the center of gravity but also a further gem which is made up by another convex hull.
in our implementation, the gemplot is drawn in an interactive device so that the researcher can rotate the gemplot with the computer mouse and can also zoom in and out.
furthermore, our implementation can also determine outliers in subspaces of more than three dimensions , which is however computational very expensive.
data examples
we demonstrate the practicability of bagplots and gemplots for outlier detection in high-dimensional data on two sets of artificially generated principal components, different data sets of artificial gene expression data, as well as on a data set originating from an rna-seq experiment in a tumor study.
artificial data examples
in order to make users familiar with our approach and it’s behavior we generated two simple data sets which directly represent the values of three principal components.
in both artificial data sets, data for two study groups were generated.
in the first example the first three principal components, z
<dig>  z
<dig> and z
<dig>  were drawn from the same normal distribution within each group.
here, the order to the three components was defined arbitrarily.
for study group one the principal components were drawn from n and from n for the second study group.
the samples size for each group was n= <dig>  since outliers are more frequent in skewed distributions, some principal components in the second example data set were drawn from the exponential distribution.
in particular, z
<dig> in one study group and z
<dig> and z
<dig> in the other study group were drawn from e
x
p.
in order to introduce outliers into both examples, we changed the coordinates of arbitrarily chosen observations.
in the example with only normally distributed components, we changed the coordinates of observation  <dig> in the first study group to  and of observation  <dig> in the second group to .
in the example with non-normal components, we set the coordinates of observation  <dig> and  <dig> in the first group to  and , respectively.
thus, the outlying character of observation  <dig> manifests itself in the third component, and that of observation  <dig> in the second component.
in a further example of artificial data, we wanted to study how outliers are detected by our approach when principal components are derived from high-dimensional expression data.
therefore, we simulated in two different settings expression data from the multivariate normal distribution, nd, for d= <dig> genes and n= <dig> samples.
in both settings we used an  autoregressive covariance matrix Σ with entries σ
ij=ρ
τ·|i−j| each representing the covariance between gene i and j .
for i=j, we chose σ
ij= <dig> for all genes.
setting  <dig> included data for one experimental group, and with three outliers.
the construction of the mean vector μ for the non-outlying observations, and the mean vectors μ
<dig>  μ
<dig>  μ
<dig> for the outliers is specified in table  <dig>  the mean vectors for the outliers were constructed so that each outlier represents a different group and appears at one direction of the first three principal components.
in setting  <dig>  a second group is included also with three outlying observations.
non-outlying observations and outliers for the second group are constructed by mean vectors κ, κ
<dig>  κ
<dig>  κ
<dig>  also specified in table  <dig>  in each setting, we varied the parameter τ for the generation of the covariance matrix, as well as the parameter fc  that reflects how far away an outlier is from its group .
μ=0d
μ
1=f
c⊗j
d
f
μ
2=t⊗j
d/2
μ
3=t⊗j
d/4
μ=0d
κ=5·j
d
μ
1=f
c⊗j
d
f
μ
2=t⊗j
d/2
μ
3=t⊗j
d/4
κ
κ
2=κ+t⊗j
κ
3=κ+t⊗j
setting  <dig> represents data for one group with three outliers.
setting  <dig> represents data for two group, each with three outliers.
the last columns shows the simulation parameters that are varied.
the mean vectors in group  <dig> and group  <dig> for regular observations are given by μ and κ, and those mean vectors for outlying observations are given by μ
<dig>  μ
<dig>  μ
<dig> and κ
<dig>  κ
<dig>  κ
<dig>  in this notation, j
l denotes a vector of ones of length l and ⊗ denotes the symbol for the kronecker product
rna-seq data of kidney tumors and controls
in the above simulated principal components, no within group correlation was given.
in real data with multiple experimental groups, it may happen that principal components within a study group are correlated, although the principal components for the whole data are uncorrelated.
in the simulated data principal components were generated uncorrelated whithin each group.
we therefore considered also one example of real data from an rna-seq experiment.
as will be demonstrated in the analysis of these data, correlation between the components whithin a group can have a strong impact on the outlier detection.
the related experiment was performed as part of the cancer genome atlas project  <cit>  and involved samples from kidney renal clear cell carcinomas.
the data set contains expression data of d= <dig> genes in n= <dig> tissue samples from either non-tumor  tissue or tumor tissue.
the total sample divided into  <dig> observations from each tissue type.
the data is available in the r-package ‘simseq’.
the experiment was originally conducted to find pathways and genes which take part in development of kidney cancer, or renal cell carcinomas , which are a common group of hemotherapy-resistant cancer types and therefore of special interest for the search of gene mutations  <cit> .
RESULTS
in this section we show the results of outlier detection in the example data sets and the simulation study.
in detail, we show the different results that bagplots and gemplots produce and add a comparison with outlier detection by means of hierarchical clustering.
analysis artificial principal components
in the first example with normally distributed principal components, the outlying observations  <dig> and  <dig> were detected in the two-dimensional analysis using a bagplot for each of the two study groups .
in addition, another outlier, observation  <dig>  was detected in the first group.
when the analysis if restocked by the third principal component observation  <dig> is not charged as an outlier any more, but a new outlier in the second study group, observation  <dig>  appeared.
fig.
<dig> bagplots and gemplots under normaly distributed prinicipal components.
bagplots  and gemplots  for identifying outliers in the space of the first two or three principal components, respectively.
the plots consist of inner bags  that contain 50% of the samples and an outer loop .
sample outside the loop or gemstones are flagged as outliers.
while multiple experimental groups can be displayed in the same subspace of principal components, outlier detection can be performed separately for each group.
switching from two to three dimensions, new outliers can be found  while other sample disappear as outliers
in the second example, where some principal components were not normally distributed, the vanishing and emergence of outliers when switching to more dimensions becomes even much clearer.
in the first  study group only observation  <dig> is detected as outlier in the bagplot approach .
when turning to the gemplot representation, also observation  <dig> is be detected.
in the second study group , observations  <dig> and  <dig> are detected as outliers in the bagplot approach but they vanish when using gemplots.
fig.
<dig> bagplots and gemplots under non-normaly distributed prinicipal components.
in real data, samples are often non-normaly distributed in some principal components.
in the blue labelled group samples follow an exponential distribution on the second and third principal components.
thus, sample  <dig> becomes only an evident outlier in the three-dimensional gemplot
simulations with artificial gene expression data
each of the scenarios was simulated in  <dig> runs.
setting  <dig> represented scenarios with only one study group.
we first simulated expression data with an overall high correlation between the genes .
depending on how far away the outliers are from the regular observations , the number of detected outliers by the different approaches changes.
in general, the boxplot approach  detects more outliers than the bagplot approach  which itself detects more outliers than the gemplot approach .
when using the 1d method, boxplots for the first three principal components were inspected.
for the 2d method, bagplots for pc <dig> versus pc <dig>  pc <dig> versus pc <dig>  and pc <dig> versus pc <dig> were used.
then, the union of detected outliers was identified for each method.
the 3d method included the first three components anyway.
all three approaches only detect outliers that are sufficiently distant from the regular observations, where the 2d and the 3d method require outliers to be more distant than the 1d methods does.
i.e., the boxplot approaches appears to be more sensitive than the bagplot which is more sensitive than the gemplot.
on the other hand, boxplot and bagplot produce more false detections than the gemplot approach does, i.e.
the gemplot outperforms the other tow approaches with respect to specificity.
when the overall correlation between the genes is rather low , the sensitivity of all three approaches increases, while specificity remains nearly the same as with high correlations.
the results for scenarios in setting  <dig>  i.e.
with two study groups , are similar to those in setting  <dig>  again, the highest sensitivity is observed for the 1d approach, while the gemplot approach yields the highest specificity.
likewise, all three methods have a higher sensitivity when the correlation among genes is low and when outliers are clearly distant from the regular observations.
both factors, show no strong effect on the specificity.
all simulations show also that the specificity can be improved by the gemplot approach, even if the variance declared by the thirst principal component is less than 10%.
analysis of rna-seq data
for outlier detection we first employed the approach of hierarchical clustering using the single linkage approach .
normally, observations on branches that form individual clusters or that separate from the remaining cluster tree by an extreme height are subjectively judged as outliers by visual inspection of the cluster tree.
alternatively to visual inspection, one can transfer the heights of the branches to a boxplot representation to identify outliers in a more objective way.
with the latter approach four observations are detected in the control group of the kidney data and two in the tumor group.
fig.
<dig> hierarchical cluster trees and outlier detection rna-seq data from a kidney tumor study.
clustering was performed using the ‘single linkage’ method which is generally recommended to identify outliers.
usually, outliers are selected by subjective judgment of a researcher as samples on branches that separate locally or by conspicuous height from the remaining branches.
to select outliers in a more objective way, boxplots on the height of the branches can be used.
a disadvantage of hierarchical cluster trees is that outlier detection and arrangement of the tree depend on whether experimental groups are displayed separately or as a whole
when also using boxplots individually on the first three principal components, large number of outliers is detected .
of these, observation  <dig> and  <dig> in the control group were also detected in the clustering approach, while there was no overlap of findings in the tumor group.
here, it becomes also clear that each principal component can uncover a different set of outliers.
fig.
<dig> boxplots of the first three principal components of the kidney data.
group-specific boxplots to detect outliers on the first three principal components.
on each dimensional of the principal component space different outliers can be detected
when turning to bagplot and gemplot representations of the principal components , observation  <dig> is still an outlier in the two-dimensional approach but not in the three-dimensional one.
again, bagplots were used to inspect pc <dig> versus pc <dig>  pc <dig> versus pc <dig>  and pc <dig> versus pc <dig>  looking at the bagplot of the tumor group the role of correlation between the principal components in this group becomes clear.
observations  <dig> and  <dig> are very unlikely to be detected as outliers in boxplots on the first and second principal component.
but due to the within-group correlation between the first two components the shape of the bagplot allows for their detection as outliers.
observation  <dig> appears not as an outlier in the boxplot approach but is detected by the bagplot as well as by the gemplot.
looking at the ‘screeplot’ for the pca on these data, i.e.
the proportion of declared variance per principal component, one can see that there is a sharp bend after pc <dig> .
according to the ‘elbow method’, one would argue that the principal components behind pc <dig> don’t provide substantially more information and that they could be omitted for further analysis.
nevertheless, we run the gemplot approach with the first four components to gain 4% more by adding pc <dig>  in that analysis, no observation was flagged as an outlier.
thus, the number of detected outliers reduces in this example when increasing the number of dimensions from 2d to 3d or 4d, i.e.
when increasing the number of principal components.
the largest number of outliers was detected by boxplots and smallest number by the gemplots.
since in this example the proportion of variance represented was rather small , a final decision on outliers might be critical, here.
fig.
<dig> bagplots and gemplots for representation of the kidney data.
in the control group, observation  <dig> is detected as outlier by the bagplot appraoch but not vanishes when using gemplots.
in the tumor group, three outliers are detected using a bagplot of which only observation  <dig> remains as an outlier in the gemplot approach
in order to demonstrate the impact of outliers we performed a differential expression analysis between tumor and control samples using the r-package ‘limma’  <cit> .
the functionality of this package allows to downweigh individual observations, and is was shown that this can improve the power of detecting differentially expressed genes  <cit> .
we performed the analysis a) without downweighing outliers, b) by downweighing the four outliers detected by the bagplot approach and c) with downweighing the single outlier, observation  <dig>  identified by the gemplot approach.
figure  <dig> presents smoothed scatterplots of the log foldchanges resulting from analysis with versus analysis without downweighing outliers as well as scatterplots of fdr-adjusted p-values  of the different approaches.
the plots show that only one outlier can have a clear impact on the p-values, but only a smaller effect on the fold changes.
with four outliers, the effect is even more extreme.
fig.
<dig> fold changes and p-values with and without outlier weighting.
comparison of fold changes and fdr-adjusted p-values from a differential expression analysis between tumor and control samples of the kidney data.
axes show the result with and without weighting of outliers.
the upper plots show the effect of only one outlier, the lower plots show the effect of four outliers
discussion
in this work we present a new approach for objective and automated outlier detection in molecular high-throughput data using bagplots and gemplots.
the approach is useful for a wide range of data, e.g.
gene and protein expression data, methylation data, chip data or ap/ms data.
all these different data types can first be visualized after dimension reduction by principal component analysis, and bagplots and gemplots can than be applied separately to the observations of each experimental or study group.
our simulations of gene expression data have shown, that outlier detection with baplots and gemplots on principal components is less sensitive than using boxplots, however, it also reduces significantly the number of false detections.
although two or three components often represent a large proportion of the original variance, it is recommended that researchers explore the variance proportions by scree plots before.
a scree plot can help to select an appropriate number of components  <cit> .
in the case that the first three components do not represent a large proportion of the original variance, our approach should be applied with cautiousness.
while we observed in the example of the rna-seq data that there is a tendency to find less outliers when using more dimensions, we would though recommend to explore the data by at least three principal components with gemplots since more of the original variance is explained than by individual principal components.
in particular, our simulations have shown that even if a principal component declares less than 10% of variance, it can contribute to reduce false detections.
we observed also in other than the presented data, that gemplots detect less outliers than bagplots or boxplots but this is hard to formalize and depends very much on the shape of the total scatterplot.
thus, an outlier detected by a boxplot of an individual principal component can be fetched back to the set of data points within the fence when adding another principal component.
this effect is mainly observed when principal components show a within group correlation in a multiple group setting.
one could then argue that principal components don’t represent the correct directions of the largest variances for that group.
analyzing each group individually by pca would be more appropriate then.
on the other hand, one could argue that a simultaneous analysis of all study groups better reflects the variation of gene expression or other high-dimensional measurements in a biological system as a whole, e.g.
the variation of different subtypes in a particular cancer disease.
a multigroup pca would for example be more appropriate if outliers come from intermediate subtypes.
in any case, researchers should carefully consider whether a single group or multigroup analysis is more appropriate for their data.
basically, our r-package ‘gemplot’ can calculate outlier detection in more than three dimensions, which becomes, however, very slow for more than four components.
in contrast to other approaches that are only based on the individual judgement of the researcher, our approach is more objective and provides an automated detection of outliers.
a series of experiments can thus be analysed with the same fix criteria for outlier detection.
while some other approaches also provide an automated selection of outliers , these approaches can only cope with one study group since outlier detection and graphical representation are linked.
thus, our approach is specifically useful when multiple experimental groups are to be analyzed in the same space of principal components.
in general, the approach can also be used in other subspaces of the data obtained by dimension reduction, e.g.
subspaces derived by multidimensional scaling  <cit>  or factor analysis  <cit> .
as pointed out by lee et al.
<cit>  and by ma  <cit> , standard pca can fail to yield consistent estimators of the loading matrix a in high-dimensional settings.
therefore, their approaches for estimating the loadings should also be considered before further exploring the data by bagplots or gemplots.
we also have demonstrated the impact of a small number of outliers on the selection of differentially expressed genes.
similar effects can be assumed for other types of analyses with high-throughput expression data, such as gene set analysis , classification problems , and in consequence also for data integration methods of multi-omics data  <cit> .
the concrete handling of outliers detected by our approach depends of course on the specific methods for subsequent analysis.
in this regard, another advantage of our approach is that it can be used independently of the methods intended for further analysis.
CONCLUSIONS
we present the gemplot as the three-dimensional version of boxplot and bagplot, respectively.
we have demonstrated the usability of the gemplot for outlier detection in molecular, high-dimensional data.
in contrast to other methods, our approach allows for simultaneous outlier identification in multiple experimental groups.
the presented method is less sensitive than other methods – depending on how extreme the outlying data are – but it produces also less false positives.
additional file
additional file  <dig> supplementary figures mean numbers of correct detected outliers and incorrect detected outliers in a simulation with artificial gene expression data.
figure s <dig>  scenario with one study group.
the four plots show results when the overall correlation between most genes is high .
figure s <dig>  scenario with one study group.
the four plots show results when the overall correlation between most genes is low .
figure s <dig>  scenario with two study groups.
the four plots show results when the overall correlation between most genes is high  or low  with different fold changes .
figure s <dig>  scenario with two study groups.
continuation of figure s <dig> for scenarios where outliers are clearly distant from the regular observations .
figure s <dig>  screeplot for the principal component analysis of the kidney rnaseq data.
abbreviations
ap/msaffinity purification mass spectrometry
chipchromatin immunoprecipitation
ngsnext-generation sequencing
pcaprincipal component analysis
rccrenal cell carcinomas

 modern molecular biology produces high-dimensional data en masse where the number of features is much larger than the sample size of the study or the experiment. some typical examples are gene and protein expression data observed with dna microarrays, next-generation sequencing or proteomics techniques such as mass spectrometry or 2-d gel electrophoresis. in the case of microarray and proteomics experiments, expression data are generally continuous fluorescence or intensity values, while ngs produces expression data as read counts or also as continuous quantities. other examples of high-dimensional data in molecular biology are methylation levels that can also be observed with microarrays and ngs, or data from binding experiments such as chromatin immunoprecipitation in combination with microarrays or ngs, or affinity purification mass spectrometry. typical questions analyzed in high-dimensional data focus on the correlation of expression levels with experimental factors or with patient data. for example gene expression data is usually analyzed to detect differentially expressed genes between two levels of an experimental factor or between two patient groups. moreover, high-dimensional expression data is often used to train classifier and regression models to predict therapy outcome or survival. throughout this work, the term ‘observation’ is used to specify the measured data of one experimental unit, and the term ‘sample’ means a set of experimental units. statistical and bioinformatics analyses of the above questions are usually very sensitive to a single observation, i.e. its addition or removal can seriously affect the results. for example when searching for differentially expressed genes or training a classifier model, individual observations can have a strong impact on the ranking of genes or the estimates of the classifier’s performance. therefore, quality control of the raw data often involves their inspection with respect to extreme observations. an extreme observation in an experimental group could either be a) regular but just extreme observation, b) a mislabeled observation or c) the consequence of an incorrect measurement. in the first case robust methods can help to decrease or downweigh the outlier’s impact. if the last case becomes obvious, the observation can be removed from data analysis. in the case of a mislabeled observation this can be corrected. in either case, the identification of outliers can help to continue with a correct analysis. the most widely used tools for outlier detection in molecular high-throughput data are hierarchical clustering and principal component analysis. in hierarchical clustering all observations are plotted in a tree, where similar observations appear at branches near to each other and unsimilar observations appear at branches farther away from each other. principal component analysis performs first a dimension reduction so that the high-dimensional data can be represented in a two- or three-dimensional plot while a certain proportion of variance of the original data is maintained. in a pca plot similar observations group together and unsimilar observations appear again farther away from each other. a useful tool for interactive 3d-visualization of principal components is given by the r-package ‘ggobi’. using hierarchical cluster plots and pca plots, outliers can be identified by visual inspection which is, however, a subjective decision of the researcher. when using hierarchical clustering, the ‘single linkage’ approach usually performs best to identify outliers. besides visual methods, some automated approaches have been proposed, several of them were reviewed by egan and morgan and zimek et al.. methods for automated outlier detection based on robust pca were for example proposed by model et al., hubert et al. as well as filzmoser and todorov. these methods focus, however, only on the data of one experimental group. because in these approaches, outlier detection and graphical representation are linked, multiple experimental groups can not be displayed in the same plot. in order to detect outliers individually in multiple experimental groups but to display the results in the same plot we propose an approach that is also based on pca. in particular, pca is first performed for the whole data set and bagplots are then used individually for each experimental group to identify outliers in the space of the first two principal components. in addition, we newly present the ‘gemplot’ - the three-dimensional version of the bagplot - and propose to use this plot for automatically identification of outliers in the space of the first three principal components. in the methods section, the basic principal of pca as well as the concepts of bagplot and gemplot are detailed, and the example data is described. in the results section we demonstrate the usefulness of our approach on multiple data sets of artificially constructed principal components and one set of public gene expression data from a kidney cancer study. we close this work with some conclusions. methods in this section, we first describe the basic idea of pca and detail next the idea of outlier detection by means of boxplots, bagplots and the new gemplot. finally, we present the example data that we use for illustrating our approach. principal component analysis genomic data typically follows a high-dimensional setting where the number of molecular features d is much larger than the sample size n. in order to visualize such data, dimension reduction is usually used, for example by means of pca which has been widely used in genomics data analysis. pca projects the data into the space of orthogonal principal components. each component represents a certain proportion of variance of the original data. thus, in many cases the first two components represent more than 50% of the variance of the original data and are sufficient to display the location of the single observations to each other and to detect extreme observations. raychaudhuri et al. show microarray data, where the first two components present even more than 90% of the original variance, and shieh and hung also point out that a small number of components is usually needed to explain most of the variance in high-dimensional settings. cangelosi and goriely show several data sets of gene expression data, where the first three components represent 80% of the original variance. sharov et al. show gene expression data, where outliers become obvious when plotting the first three components. more precisely, the original data matrix x is transformed into d orthogonal components given by the columns of z=x·a. it can be shown that the columns of the transformation matrix a are the eigenvectors corresponding to the eigenvalues λ j of s, where s is the sample covariance matrix of x. moreover, the eigenvalue λ j is equal to the variance of the jth principal component. hence, vj=λj/∑λj represents the proportion of variance that is explained by the jth component. for the two- and three-dimensional representation of the original data one can than use the first two or three components, respectively, given by the first three columns of z, i.e. z z and z boxplot, bagplot and gemplot the box-and-whiskers-plot, mostly just called boxplot, is one of the most frequently used graphical tools to display the quantiles of a metric feature. it consists of a box whose lower and upper limits represent the 25- and 75%-quantile of the observed data and a bar within the box represents the median, i.e. the 50%-quantile. thus the box includes 50% of the data points. in its standard version, the whiskers go from the 75%-quantile to the maximum of the data and from the 25%-quantile to the minimum of the data, respectively. in order to detect outliers the whiskers are often limited by the so called fence, where their maximal length is only allowed to be times the interquartile range. each observation that is beyond the fence is drawn as a single dot and is regarded as an outlier. the two-dimensional extension of the boxplot, the bagplot, was first presented in by rousseeuw et al.. instead of a box, a convex hull - called the bag - is contructed so that 50% of the data points in the center of the two-dimensional point cloud are included in this bag. the bag is determined by making use of the concepts of halfspace location depths and depth regions. for each point θ in the two-dimensional space, ldepth) is the smallest number of data points, i= …,n, contained in any closed halfplane with margins through θ. in our case, the coordinates of the data points are given by the first two principal components. the depth region d k is then given by the set of all θ with l d e p t h≥k. if we denote the number of data points in d k by # d k, we need to find that k ∗ for which #dk∗≤⌊n/2⌋<#dk∗− the bag can than be found by interpolating between the sets dk∗ by dk∗− as center of the data, the depth median t is given by that θ with the highest ldepth. if there are multiple such θ, t is given by their center of gravity. similar to the role of the whiskers in a boxplot a loop is constructed around the bag, where observations outside this loop are regarded as outliers. in order to construct the loop, one first generated the fence by inflating the bag relative to t by a factor of the loop contains all data points within the fence that don’t belong to the bag. for the detailed description of the construction of a bagplot we refer to the original work of rousseeuw et al.. an algorithm for the fast computation of halfspace location depths is for example given in miller et al.. rousseeuw et al. already pointed out that the bagplot is, in principle, defined in any dimension. instead of halfplanes, halfspaces are then used to determine the halfspace location depths. since it is computationally extreme and also hard to visualize bagplots in higher dimensions, there was not yet an implementation for the three-dimensional case. here, we present this three-dimensional version for the first time and call it ‘gemplot’ due to the similarity of its appearance as gemstones. we also provide the software package ‘gemplot’ for the r programming environment available at https://github.com/jkruppa/gemplot. in order to determine the sets d k in the three-dimensional space, our implementation uses a three-dimensional array that lays a three-dimensional grid across the data points. for each grid point θ, ldepth) is calculated. thus, it is also possible – though time-consuming – to calculate the gemplots in more than three dimensions. a special graphical trick to make the visualization of gemplots possible is the use of transparent colors. thus, the depth median and the bag are still visible when drawing the loop. when the median is not a single point, we found that it is more appropriate not to display the center of gravity but also a further gem which is made up by another convex hull. in our implementation, the gemplot is drawn in an interactive device so that the researcher can rotate the gemplot with the computer mouse and can also zoom in and out. furthermore, our implementation can also determine outliers in subspaces of more than three dimensions, which is however computational very expensive. data examples we demonstrate the practicability of bagplots and gemplots for outlier detection in high-dimensional data on two sets of artificially generated principal components, different data sets of artificial gene expression data, as well as on a data set originating from an rna-seq experiment in a tumor study. artificial data examples in order to make users familiar with our approach and it’s behavior we generated two simple data sets which directly represent the values of three principal components. in both artificial data sets, data for two study groups were generated. in the first example the first three principal components, z z and z were drawn from the same normal distribution within each group. here, the order to the three components was defined arbitrarily. for study group one the principal components were drawn from n and from n for the second study group. the samples size for each group was n= since outliers are more frequent in skewed distributions, some principal components in the second example data set were drawn from the exponential distribution. in particular, z in one study group and z and z in the other study group were drawn from e x p. in order to introduce outliers into both examples, we changed the coordinates of arbitrarily chosen observations. in the example with only normally distributed components, we changed the coordinates of observation in the first study group to and of observation in the second group to. in the example with non-normal components, we set the coordinates of observation and in the first group to and, respectively. thus, the outlying character of observation manifests itself in the third component, and that of observation in the second component. in a further example of artificial data, we wanted to study how outliers are detected by our approach when principal components are derived from high-dimensional expression data. therefore, we simulated in two different settings expression data from the multivariate normal distribution, nd, for d= genes and n= samples. in both settings we used an autoregressive covariance matrix Σ with entries σ ij=ρ τ·|i−j| each representing the covariance between gene i and j. for i=j, we chose σ ij= for all genes. setting included data for one experimental group, and with three outliers. the construction of the mean vector μ for the non-outlying observations, and the mean vectors μ μ μ for the outliers is specified in table the mean vectors for the outliers were constructed so that each outlier represents a different group and appears at one direction of the first three principal components. in setting a second group is included also with three outlying observations. non-outlying observations and outliers for the second group are constructed by mean vectors κ, κ κ κ also specified in table in each setting, we varied the parameter τ for the generation of the covariance matrix, as well as the parameter fc that reflects how far away an outlier is from its group. μ=0d μ 1=f c⊗j d f μ 2=t⊗j d/2 μ 3=t⊗j d/4 μ=0d κ=5·j d μ 1=f c⊗j d f μ 2=t⊗j d/2 μ 3=t⊗j d/4 κ κ 2=κ+t⊗j κ 3=κ+t⊗j setting represents data for one group with three outliers. setting represents data for two group, each with three outliers. the last columns shows the simulation parameters that are varied. the mean vectors in group and group for regular observations are given by μ and κ, and those mean vectors for outlying observations are given by μ μ μ and κ κ κ in this notation, j l denotes a vector of ones of length l and ⊗ denotes the symbol for the kronecker product rna-seq data of kidney tumors and controls in the above simulated principal components, no within group correlation was given. in real data with multiple experimental groups, it may happen that principal components within a study group are correlated, although the principal components for the whole data are uncorrelated. in the simulated data principal components were generated uncorrelated whithin each group. we therefore considered also one example of real data from an rna-seq experiment. as will be demonstrated in the analysis of these data, correlation between the components whithin a group can have a strong impact on the outlier detection. the related experiment was performed as part of the cancer genome atlas project and involved samples from kidney renal clear cell carcinomas. the data set contains expression data of d= genes in n= tissue samples from either non-tumor tissue or tumor tissue. the total sample divided into observations from each tissue type. the data is available in the r-package ‘simseq’. the experiment was originally conducted to find pathways and genes which take part in development of kidney cancer, or renal cell carcinomas, which are a common group of hemotherapy-resistant cancer types and therefore of special interest for the search of gene mutations.  in this section we show the results of outlier detection in the example data sets and the simulation study. in detail, we show the different results that bagplots and gemplots produce and add a comparison with outlier detection by means of hierarchical clustering. analysis artificial principal components in the first example with normally distributed principal components, the outlying observations and were detected in the two-dimensional analysis using a bagplot for each of the two study groups. in addition, another outlier, observation was detected in the first group. when the analysis if restocked by the third principal component observation is not charged as an outlier any more, but a new outlier in the second study group, observation appeared. fig. bagplots and gemplots under normaly distributed prinicipal components. bagplots and gemplots for identifying outliers in the space of the first two or three principal components, respectively. the plots consist of inner bags that contain 50% of the samples and an outer loop. sample outside the loop or gemstones are flagged as outliers. while multiple experimental groups can be displayed in the same subspace of principal components, outlier detection can be performed separately for each group. switching from two to three dimensions, new outliers can be found while other sample disappear as outliers in the second example, where some principal components were not normally distributed, the vanishing and emergence of outliers when switching to more dimensions becomes even much clearer. in the first study group only observation is detected as outlier in the bagplot approach. when turning to the gemplot representation, also observation is be detected. in the second study group, observations and are detected as outliers in the bagplot approach but they vanish when using gemplots. fig. bagplots and gemplots under non-normaly distributed prinicipal components. in real data, samples are often non-normaly distributed in some principal components. in the blue labelled group samples follow an exponential distribution on the second and third principal components. thus, sample becomes only an evident outlier in the three-dimensional gemplot simulations with artificial gene expression data each of the scenarios was simulated in runs. setting represented scenarios with only one study group. we first simulated expression data with an overall high correlation between the genes. depending on how far away the outliers are from the regular observations, the number of detected outliers by the different approaches changes. in general, the boxplot approach detects more outliers than the bagplot approach which itself detects more outliers than the gemplot approach. when using the 1d method, boxplots for the first three principal components were inspected. for the 2d method, bagplots for pc versus pc pc versus pc and pc versus pc were used. then, the union of detected outliers was identified for each method. the 3d method included the first three components anyway. all three approaches only detect outliers that are sufficiently distant from the regular observations, where the 2d and the 3d method require outliers to be more distant than the 1d methods does. i.e., the boxplot approaches appears to be more sensitive than the bagplot which is more sensitive than the gemplot. on the other hand, boxplot and bagplot produce more false detections than the gemplot approach does, i.e. the gemplot outperforms the other tow approaches with respect to specificity. when the overall correlation between the genes is rather low, the sensitivity of all three approaches increases, while specificity remains nearly the same as with high correlations. the results for scenarios in setting i.e. with two study groups, are similar to those in setting again, the highest sensitivity is observed for the 1d approach, while the gemplot approach yields the highest specificity. likewise, all three methods have a higher sensitivity when the correlation among genes is low and when outliers are clearly distant from the regular observations. both factors, show no strong effect on the specificity. all simulations show also that the specificity can be improved by the gemplot approach, even if the variance declared by the thirst principal component is less than 10%. analysis of rna-seq data for outlier detection we first employed the approach of hierarchical clustering using the single linkage approach. normally, observations on branches that form individual clusters or that separate from the remaining cluster tree by an extreme height are subjectively judged as outliers by visual inspection of the cluster tree. alternatively to visual inspection, one can transfer the heights of the branches to a boxplot representation to identify outliers in a more objective way. with the latter approach four observations are detected in the control group of the kidney data and two in the tumor group. fig. hierarchical cluster trees and outlier detection rna-seq data from a kidney tumor study. clustering was performed using the ‘single linkage’ method which is generally recommended to identify outliers. usually, outliers are selected by subjective judgment of a researcher as samples on branches that separate locally or by conspicuous height from the remaining branches. to select outliers in a more objective way, boxplots on the height of the branches can be used. a disadvantage of hierarchical cluster trees is that outlier detection and arrangement of the tree depend on whether experimental groups are displayed separately or as a whole when also using boxplots individually on the first three principal components, large number of outliers is detected. of these, observation and in the control group were also detected in the clustering approach, while there was no overlap of findings in the tumor group. here, it becomes also clear that each principal component can uncover a different set of outliers. fig. boxplots of the first three principal components of the kidney data. group-specific boxplots to detect outliers on the first three principal components. on each dimensional of the principal component space different outliers can be detected when turning to bagplot and gemplot representations of the principal components, observation is still an outlier in the two-dimensional approach but not in the three-dimensional one. again, bagplots were used to inspect pc versus pc pc versus pc and pc versus pc looking at the bagplot of the tumor group the role of correlation between the principal components in this group becomes clear. observations and are very unlikely to be detected as outliers in boxplots on the first and second principal component. but due to the within-group correlation between the first two components the shape of the bagplot allows for their detection as outliers. observation appears not as an outlier in the boxplot approach but is detected by the bagplot as well as by the gemplot. looking at the ‘screeplot’ for the pca on these data, i.e. the proportion of declared variance per principal component, one can see that there is a sharp bend after pc. according to the ‘elbow method’, one would argue that the principal components behind pc don’t provide substantially more information and that they could be omitted for further analysis. nevertheless, we run the gemplot approach with the first four components to gain 4% more by adding pc in that analysis, no observation was flagged as an outlier. thus, the number of detected outliers reduces in this example when increasing the number of dimensions from 2d to 3d or 4d, i.e. when increasing the number of principal components. the largest number of outliers was detected by boxplots and smallest number by the gemplots. since in this example the proportion of variance represented was rather small, a final decision on outliers might be critical, here. fig. bagplots and gemplots for representation of the kidney data. in the control group, observation is detected as outlier by the bagplot appraoch but not vanishes when using gemplots. in the tumor group, three outliers are detected using a bagplot of which only observation remains as an outlier in the gemplot approach in order to demonstrate the impact of outliers we performed a differential expression analysis between tumor and control samples using the r-package ‘limma’. the functionality of this package allows to downweigh individual observations, and is was shown that this can improve the power of detecting differentially expressed genes. we performed the analysis a) without downweighing outliers, b) by downweighing the four outliers detected by the bagplot approach and c) with downweighing the single outlier, observation identified by the gemplot approach. figure presents smoothed scatterplots of the log foldchanges resulting from analysis with versus analysis without downweighing outliers as well as scatterplots of fdr-adjusted p-values of the different approaches. the plots show that only one outlier can have a clear impact on the p-values, but only a smaller effect on the fold changes. with four outliers, the effect is even more extreme. fig. fold changes and p-values with and without outlier weighting. comparison of fold changes and fdr-adjusted p-values from a differential expression analysis between tumor and control samples of the kidney data. axes show the result with and without weighting of outliers. the upper plots show the effect of only one outlier, the lower plots show the effect of four outliers discussion in this work we present a new approach for objective and automated outlier detection in molecular high-throughput data using bagplots and gemplots. the approach is useful for a wide range of data, e.g. gene and protein expression data, methylation data, chip data or ap/ms data. all these different data types can first be visualized after dimension reduction by principal component analysis, and bagplots and gemplots can than be applied separately to the observations of each experimental or study group. our simulations of gene expression data have shown, that outlier detection with baplots and gemplots on principal components is less sensitive than using boxplots, however, it also reduces significantly the number of false detections. although two or three components often represent a large proportion of the original variance, it is recommended that researchers explore the variance proportions by scree plots before. a scree plot can help to select an appropriate number of components. in the case that the first three components do not represent a large proportion of the original variance, our approach should be applied with cautiousness. while we observed in the example of the rna-seq data that there is a tendency to find less outliers when using more dimensions, we would though recommend to explore the data by at least three principal components with gemplots since more of the original variance is explained than by individual principal components. in particular, our simulations have shown that even if a principal component declares less than 10% of variance, it can contribute to reduce false detections. we observed also in other than the presented data, that gemplots detect less outliers than bagplots or boxplots but this is hard to formalize and depends very much on the shape of the total scatterplot. thus, an outlier detected by a boxplot of an individual principal component can be fetched back to the set of data points within the fence when adding another principal component. this effect is mainly observed when principal components show a within group correlation in a multiple group setting. one could then argue that principal components don’t represent the correct directions of the largest variances for that group. analyzing each group individually by pca would be more appropriate then. on the other hand, one could argue that a simultaneous analysis of all study groups better reflects the variation of gene expression or other high-dimensional measurements in a biological system as a whole, e.g. the variation of different subtypes in a particular cancer disease. a multigroup pca would for example be more appropriate if outliers come from intermediate subtypes. in any case, researchers should carefully consider whether a single group or multigroup analysis is more appropriate for their data. basically, our r-package ‘gemplot’ can calculate outlier detection in more than three dimensions, which becomes, however, very slow for more than four components. in contrast to other approaches that are only based on the individual judgement of the researcher, our approach is more objective and provides an automated detection of outliers. a series of experiments can thus be analysed with the same fix criteria for outlier detection. while some other approaches also provide an automated selection of outliers, these approaches can only cope with one study group since outlier detection and graphical representation are linked. thus, our approach is specifically useful when multiple experimental groups are to be analyzed in the same space of principal components. in general, the approach can also be used in other subspaces of the data obtained by dimension reduction, e.g. subspaces derived by multidimensional scaling or factor analysis. as pointed out by lee et al. and by ma, standard pca can fail to yield consistent estimators of the loading matrix a in high-dimensional settings. therefore, their approaches for estimating the loadings should also be considered before further exploring the data by bagplots or gemplots. we also have demonstrated the impact of a small number of outliers on the selection of differentially expressed genes. similar effects can be assumed for other types of analyses with high-throughput expression data, such as gene set analysis, classification problems, and in consequence also for data integration methods of multi-omics data. the concrete handling of outliers detected by our approach depends of course on the specific methods for subsequent analysis. in this regard, another advantage of our approach is that it can be used independently of the methods intended for further analysis.  we present the gemplot as the three-dimensional version of boxplot and bagplot, respectively. we have demonstrated the usability of the gemplot for outlier detection in molecular, high-dimensional data. in contrast to other methods, our approach allows for simultaneous outlier identification in multiple experimental groups. the presented method is less sensitive than other methods – depending on how extreme the outlying data are – but it produces also less false positives. additional file additional file supplementary figures mean numbers of correct detected outliers and incorrect detected outliers in a simulation with artificial gene expression data. figure s scenario with one study group. the four plots show results when the overall correlation between most genes is high. figure s scenario with one study group. the four plots show results when the overall correlation between most genes is low. figure s scenario with two study groups. the four plots show results when the overall correlation between most genes is high or low with different fold changes. figure s scenario with two study groups. continuation of figure s for scenarios where outliers are clearly distant from the regular observations. figure s screeplot for the principal component analysis of the kidney rnaseq data. abbreviations ap/msaffinity purification mass spectrometry chipchromatin immunoprecipitation ngsnext-generation sequencing pcaprincipal component analysis rccrenal cell carcinomas 
pure visual approaches depend, however, on the individual judgement of the analyst and are hard to automate. therefore, the identification of extreme observations is an important step of quality control before doing further data analysis. bagplot and gemplot surround the regular observations with convex hulls and observations outside these hulls are regarded as outliers. standard outlier detection methods for univariate data are however not applicable, since the considered data are high-dimensional, i.e. existing methods for automated outlier detection are only dedicated to data of a single experimental groups. a clear advantage over other methods is that multiple experimental groups can be displayed in the same figure although outlier detection is performed for each individual group. usually, outliers in high-dimensional data are solely detected by visual inspection of a graphical representation of the data by the analyst. typical graphical representation for high-dimensional data are hierarchical cluster tree or principal component plots. we demonstrate the usefulness of this approach on multiple sets of artificial data as well as one set of gene expression data from a next-generation sequencing experiment, and compare the new method to other common approaches. results are very sensitive to the addition or removal of a single observation. in this work we propose to use bagplots, the 2-dimensional extension of the boxplot, to automatically identify outliers in the subspace of the first two principal components of the data. analyses of molecular high-throughput data often lack in robustness, i.e. furthermore, we present for the first time the gemplot, the 3-dimensional extension of boxplot and bagplot, which can be used in the subspace of the first three principal components. the convex hulls are determined separately for the observations of each experimental group while the observations of all groups can be displayed in the same subspace of principal components. bagplots and gemplots in subspaces of principal components are useful for automated and objective outlier identification in high-dimensional data from molecular high-throughput experiments. bagplotgemplothigh-dimensional dataoutlierprincipal component analysisministry of science and culture of lower saxony, germanyn-renntissue-copyright-statement© the author 2017
 analyses of molecular high-throughput data often lack in robustness, i.e. results are very sensitive to the addition or removal of a single observation. therefore, the identification of extreme observations is an important step of quality control before doing further data analysis. standard outlier detection methods for univariate data are however not applicable, since the considered data are high-dimensional, i.e. multiple hundreds or thousands of features are observed in small samples. usually, outliers in high-dimensional data are solely detected by visual inspection of a graphical representation of the data by the analyst. typical graphical representation for high-dimensional data are hierarchical cluster tree or principal component plots. pure visual approaches depend, however, on the individual judgement of the analyst and are hard to automate. existing methods for automated outlier detection are only dedicated to data of a single experimental groups.  in this work we propose to use bagplots, the 2-dimensional extension of the boxplot, to automatically identify outliers in the subspace of the first two principal components of the data. furthermore, we present for the first time the gemplot, the 3-dimensional extension of boxplot and bagplot, which can be used in the subspace of the first three principal components. bagplot and gemplot surround the regular observations with convex hulls and observations outside these hulls are regarded as outliers. the convex hulls are determined separately for the observations of each experimental group while the observations of all groups can be displayed in the same subspace of principal components. we demonstrate the usefulness of this approach on multiple sets of artificial data as well as one set of gene expression data from a next-generation sequencing experiment, and compare the new method to other common approaches. furthermore, we provide an implementation of the gemplot in the package ‘gemplot’ for the r programming environment.  bagplots and gemplots in subspaces of principal components are useful for automated and objective outlier identification in high-dimensional data from molecular high-throughput experiments. a clear advantage over other methods is that multiple experimental groups can be displayed in the same figure although outlier detection is performed for each individual group. electronic supplementary material the online version of this article contains supplementary material, which is available to authorized users. keywords bagplotgemplothigh-dimensional dataoutlierprincipal component analysisministry of science and culture of lower saxony, germanyn-renntissue-copyright-statement© the author 2017 