-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
18 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(normalise_filter_counts) | ||
import(dplyr) | ||
import(ggplot2) | ||
import(tibble) | ||
import(tidyr) | ||
importFrom(magrittr,"%$%") | ||
importFrom(magrittr,"%<>%") | ||
importFrom(purrr,"%>%") | ||
importFrom(purrr,keep) | ||
importFrom(purrr,map) | ||
importFrom(purrr,map_chr) | ||
importFrom(purrr,map_dbl) | ||
importFrom(purrr,map_df) | ||
importFrom(purrr,map_int) | ||
importFrom(purrr,map_lgl) | ||
importFrom(purrr,set_names) | ||
import(Matrix) | ||
importFrom(methods,as) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
#' Normalisation | ||
#' | ||
#' @param counts The counts matrix, with features in columns | ||
#' @import Matrix | ||
#' @export | ||
normalise_filter_counts <- function( | ||
counts | ||
) { | ||
as(log2(counts + 1), "dgCMatrix") | ||
list( | ||
counts = counts, | ||
expression = as(log2(counts + 1), "dgCMatrix") | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
#' Helper functions | ||
#' Helper functions for normalisation | ||
#' | ||
#' @import dplyr | ||
#' @import tidyr | ||
#' @import tibble | ||
#' @import ggplot2 | ||
#' @importFrom purrr %>% map map_df map_chr map_lgl map_int map_dbl keep set_names | ||
#' @importFrom magrittr %<>% %$% | ||
#' Normalisation | ||
#' | ||
#' @docType package | ||
#' @name dynnormaliser | ||
#' @importFrom methods as | ||
NULL |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters