Skip to content

Commit 823b3ff

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent aaa14af commit 823b3ff

7 files changed

Lines changed: 0 additions & 18 deletions

R/BASE.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ base_algorithm <- function(data, reg, perm = 100, median.norm = T) {
121121
}
122122

123123

124-
125124
#' Souce code to create the compendium used kin the BASE algorithm, containing
126125
#' up- and down-regulated weight sets that specify the
127126
# specificity by which each gene is expressed by a given cell.

R/custom_deconvolution_methods.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
NULL
1616

1717

18-
1918
#' List of methods that support the use of a custom signature
2019
#'
2120
#' The available methods are
@@ -40,7 +39,6 @@ custom_deconvolution_methods <- c(
4039
###########################################################################
4140

4241

43-
4442
#' Deconvolute using CIBERSORT or CIBERSORT abs and a custom signature matrix.
4543
#'
4644
#' @param gene_expression_matrix a m x n matrix with m genes and n samples
@@ -127,8 +125,6 @@ deconvolute_epic_custom <- function(gene_expression_matrix, signature_matrix,
127125
}
128126

129127

130-
131-
132128
#' Deconvolute using ConsesnusTME and a custom signature matrix
133129
#'
134130
#' @param gene_expression_matrix a m x n matrix with m genes and n samples. Data

R/estimate.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#'
1010

1111

12-
1312
#' ESTIMATE algortihm: This function computes stromal, immune, and ESTIMATE scores
1413
#' per sample using gene expression data, through GSEA. The ESTIMATE score is used
1514
#' to compute an estimate of the tumor purity

R/immune_deconvolution_methods.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ set_cibersort_mat <- function(path) {
7373
}
7474

7575

76-
7776
###########################################################################
7877
# Deconvolution functions for consistently accessing each method
7978
#
@@ -349,7 +348,6 @@ deconvolute_consensus_tme <- function(gene_expression_matrix,
349348
}
350349

351350

352-
353351
#' Annotate unified cell_type names
354352
#'
355353
#' map the cell_types of the different methods to a common name

R/mouse_cell_type_mapping.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ reduce_mouse_cell_types <- function(deconvolution.results,
5454
}
5555

5656

57-
58-
5957
#' This function returns the list of all cell types in BASE/DCQ results,
6058
#' along with the cell type they are mapped to
6159
#' @param method the method for which we want to get the cell types

R/mouse_deconvolution_methods.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ deconvolution_methods_mouse <- c(
3434
)
3535

3636

37-
38-
3937
############################################################################
4038
# Deconvolution functions for consistently accessing each method
4139
#
@@ -45,7 +43,6 @@ deconvolution_methods_mouse <- c(
4543
############################################################################
4644

4745

48-
4946
#' Deconvolute using mMCP-counter
5047
#'
5148
#' @param gene_expression_matrix a m x n matrix with m genes and n samples. Should be TPM normalized
@@ -202,7 +199,6 @@ deconvolute_base_algorithm <- function(gene_expression_matrix, n_permutations =
202199
}
203200

204201

205-
206202
#' Perform deconvolution on a mouse RNAseq dataset
207203
#'
208204
#' @param gene_expression_matrix a m x n matrix with m genes and n samples.

tests/testthat/test_custom_matrices.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ test_mat <- read_tsv("bulk_mat.tsv") %>%
44
test_mat <- as.matrix(test_mat)
55

66

7-
87
test_that("seqimmucc works with a custom signature matrix", {
98
test_mat <- dataset_racle$expr_mat
109
sign_mat <- matrix(120 * runif(15000), ncol = 10)
@@ -22,7 +21,6 @@ test_that("seqimmucc works with a custom signature matrix", {
2221
})
2322

2423

25-
2624
test_that("EPIC works with a custom signature matrix", {
2725
sign_mat <- matrix(120 * runif(10 * nrow(test_mat)), ncol = 10)
2826
colnames(sign_mat) <- c(
@@ -72,8 +70,6 @@ test_that("EPIC works with a custom signature matrix and variances", {
7270
})
7371

7472

75-
76-
7773
test_that("ConsensusTME works with a custom signature matrix", {
7874
sign_mat <- matrix(120 * runif(1500), ncol = 10)
7975
colnames(sign_mat) <- c(

0 commit comments

Comments
 (0)