Skip to content

Commit

Permalink
reduce example times and update vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
lgatto committed Oct 13, 2023
1 parent 3ca56de commit 85015d6
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 15 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: CTexploreR
Title: Explores Cancer Testis Genes
Version: 0.99.3
Version: 0.99.4
Authors@R:
c(person(given = "Axelle",
family = "Loriot",
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CTexploreR 0.99

## CTexploreR 0.99.4

- Don't run some examples to save time. These functions are
illustrated in the vignette.

## CTexploreR 0.99.3

- Reduce check time
Expand Down
6 changes: 4 additions & 2 deletions R/CCLE_expression.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
#' @import CTdata
#'
#' @examples
#' \dontrun{
#' CCLE_expression(
#' genes = c("MAGEA1", "MAGEA3", "MAGEA4", "MAGEA6", "MAGEA10"),
#' type = c("Skin", "Lung"), units = "log_TPM")
#' }
CCLE_expression <- function(genes = NULL, type = NULL, units = "TPM",
return = FALSE) {
suppressMessages({
Expand Down Expand Up @@ -82,7 +84,7 @@ CCLE_expression <- function(genes = NULL, type = NULL, units = "TPM",
col = list(type = CCLE_colors))

fontsize <- set_fontsize(mat)

if (length(type) <= 5) label_fontsize <- 6
if (length(type) > 5 & length(type) < 10) label_fontsize <- 4
if (length(type) >= 10 | is.null(type)) label_fontsize <- 0
Expand All @@ -107,4 +109,4 @@ CCLE_expression <- function(genes = NULL, type = NULL, units = "TPM",
return(mat)
}
return(h)
}
}
2 changes: 2 additions & 0 deletions R/CT_correlated_genes.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
#' @importFrom rlang .data
#'
#' @examples
#' \dontrun{
#' CT_correlated_genes(gene = "MAGEA3")
#' }
CT_correlated_genes <- function(gene, corr_thr = 0.5,
return = FALSE) {
suppressMessages({
Expand Down
2 changes: 2 additions & 0 deletions R/TCGA_expression.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
#' @importFrom circlize colorRamp2
#'
#' @examples
#' \dontrun{
#' TCGA_expression(
#' tumor = "LUAD", genes = c("MAGEA1", "MAGEA3"),
#' units = "log_TPM")
#' }
TCGA_expression <- function(tumor = "all", genes = NULL,
units = "TPM", return = FALSE) {
suppressMessages({
Expand Down
2 changes: 2 additions & 0 deletions R/TCGA_methylation_expression_correlation.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
#' @importFrom rlang .data
#'
#' @examples
#' \dontrun{
#' TCGA_methylation_expression_correlation("LUAD", gene = "TDRD1")
#' }
TCGA_methylation_expression_correlation <- function(
tumor = "all",
gene = NULL,
Expand Down
3 changes: 2 additions & 1 deletion R/testis_expression.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
#' @importFrom Biobase rowMax
#'
#' @examples
#'
#' \dontrun{
#' testis_expression(cells = "germ_cells",
#' genes = c("MAGEA1", "MAGEA3", "MAGEA4"))
#' }
testis_expression <- function(cells = "all", genes = NULL,
scale_lims = NULL, return = FALSE) {
suppressMessages({
Expand Down
2 changes: 2 additions & 0 deletions man/CCLE_expression.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/CT_correlated_genes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/TCGA_expression.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/TCGA_methylation_expression_correlation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/testis_expression.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 13 additions & 10 deletions vignettes/CTexploreR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ section). The table also summarises their main characteristics.

```{r CT_genes}
library(CTexploreR)
CT_genes
head(CT_genes, 10)
```

`CTdata` is the companion Package for `CTexploreR` and provides the omics
Expand Down Expand Up @@ -190,11 +190,13 @@ focused on true promoter regions.

Genes flagged as `TRUE` in `regulated_by_methylation` column correspond to

* Genes that are significantly induced by a demethylating agent (RNAseq analysis
of cell lines reated with DAC (5-Aza-2′-Deoxycytidine)).
* Genes that are significantly induced by a demethylating agent
(RNAseq analysis of cell lines reated with DAC
(5-Aza-2′-Deoxycytidine)).

* Genes that have a highly methylated promoter in normal somatic tissues but
less methylated in germ cells (WGBS analysis of a set of normal tissues).
* Genes that have a highly methylated promoter in normal somatic
tissues but less methylated in germ cells (WGBS analysis of a set of
normal tissues).

For some genes showing a strong activation in cells treated with
5-Aza-2′-Deoxycytidine, methylation analysis was not possible due to
Expand Down Expand Up @@ -318,8 +320,9 @@ Allows to visualise gene expression in different histological types of CCLE
cancer cell lines. We can thus compare genes that are or not activated in
tumoral cell lines.

* Applied to CT genes frequently activated in CCLE cell lines, more than 5% of
CCLE cell_lines are expressing each gene. A string signal is visible.
* Applied to CT genes frequently activated in CCLE cell lines, more
than 5% of CCLE cell_lines are expressing each gene. A string signal
is visible.

```{r}
frequently_activated <- dplyr::filter(
Expand All @@ -339,9 +342,9 @@ CCLE_expression(



* Applied to CT genes not frequently activated in CCLE cell lines, more than
95% of cell lines are not expressing each genes. The lack of expression is very
clear.
* Applied to CT genes not frequently activated in CCLE cell lines,
more than 95% of cell lines are not expressing each genes. The lack
of expression is very clear.

```{r}
not_frequently_activated <- dplyr::filter(
Expand Down

0 comments on commit 85015d6

Please sign in to comment.