|
Algorithm 1 Pseudo-code of bootstrap–bagplot algorithm for outlier detection for two study groups. |
-
1:
Initialize lists to report the samples that are randomly drawn from the original dataset D in the bootstrap runs and the outliers that are detected in each case:
-
2:
fordo
-
3:
Create a bootstrap dataset by resampling the original dataset D with replacement.
-
4:
Report the sample IDs present in , i.e., with
.
-
5:
Conduct a principal component analysis for including samples from both study groups.
-
6:
Split into the two study group subsets and .
-
7:
for do
-
8:
Detect outliers of k-th study group subset using bagplot:
-
9:
Report the samples being detected as outliers with
-
10:
end for
-
11:
Aggregate list to frequency table.
-
12:
Aggregate list to frequency table.
-
13:
Compute relative outlier frequencies and conduct binomial test with .
-
14:
end for
|