Skip to content

Commit

Permalink
Change text for outliers in the last part of the PCA report
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickaël Canouil committed Jun 10, 2020
1 parent b854aea commit 9efff58
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rain
Title: Reference-based Ancestry INference
Version: 0.4.0
Version: 0.4.1
Authors@R:
c(person(given = "Mickaël",
family = "Canouil",
Expand Down
29 changes: 19 additions & 10 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
# rain 0.4.1

## Minor text improvements

* In `R/pca_report.R`,
+ Change text for outliers in the last part of the PCA report.

# rain 0.4.0

## Minor improvements and fixes

* In `DESCRIPTION`,
+ Use `patchwork` for ethnicity plot.
+ Remove `gcta64` from system requirements.
+ Use `patchwork` for ethnicity plot.
+ Remove `gcta64` from system requirements.
* In `R/compute_pca.R`,
+ Use `R.utils` to count number of SNPs from `*.bim` file.
+ Fix number of SNPs in ggplot legend.
+ Fix a missplaced `.data` pronoun.
+ Core code rewrite.
+ Change messages prefix.
* In `/R/pca_report.R`,
+ Add packages prefix for `tidyselect`.
+ Update to `ggplot2` `v3.3.0`.
+ Use `R.utils` to count number of SNPs from `*.bim` file.
+ Fix number of SNPs in ggplot legend.
+ Fix a missplaced `.data` pronoun.
+ Core code rewrite.
+ Change messages prefix.
* In `R/pca_report.R`,
+ Add packages prefix for `tidyselect`.
+ Update to `ggplot2` `v3.3.0`.

# rain 0.3.0

Expand Down
6 changes: 3 additions & 3 deletions R/pca_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ pca_report <- function(
dist_centre = NULL,
high = NULL,
low = NULL,
bad_samples = factor(ifelse(.data[["bad_samples_bool"]], "BAD", "GOOD"), levels = c("BAD", "GOOD"))
is_outliers = factor(ifelse(.data[["bad_samples_bool"]], "Yes", "No"), levels = c("Yes", "No"))
)

ivar <- "bad_samples"
ivar <- "is_outliers"
p <- paste0("PC", 1:fig_n_comp) %>%
utils::combn(2) %>%
t() %>%
Expand All @@ -212,7 +212,7 @@ pca_report <- function(
ggplot2::geom_point(shape = 4, size = 2, na.rm = TRUE) +
ggplot2::stat_ellipse(type = "norm", na.rm = TRUE) +
ggplot2::scale_colour_viridis_d() +
ggplot2::labs(x = NULL, y = NULL) +
ggplot2::labs(x = NULL, y = NULL, colour = "Outliers") +
ggplot2::facet_grid(
rows = ggplot2::vars(!!ggplot2::sym("Y.PC")),
cols = ggplot2::vars(!!ggplot2::sym("X.PC")),
Expand Down

0 comments on commit 9efff58

Please sign in to comment.