-
Notifications
You must be signed in to change notification settings - Fork 0
Clean up examples and tests #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Changes from all commits
2ef4fb7
06e36f9
d77dda3
a083ae4
fe933d7
e4be8a9
2eb6943
02fdeca
1c8220d
76cd36b
6c86997
adc7ebe
a096cc1
fd404b8
570c9ac
59ee5e6
155dd15
76fb282
15b9dc8
3fc1dcc
9fa5f87
1675a6d
9a0ecb7
6c833ec
fbe0396
405f17f
1db7d1f
fc79cbc
be15585
fb4b2d1
c57500d
cb76378
17dc52e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,11 +41,11 @@ | |
| #' Aggregate replicates of the same experimental group. | ||
| #' | ||
| #' @param D \strong{SummarizedExperiment} \cr | ||
| #' SummarizedExperiment Dataset containing peptide | ||
| #' SummarizedExperiment Dataset containing peptide | ||
| #' intensities, e.g. the result of | ||
| #' [normalizePeptideIntensities]. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ne, das muss normalize sein, weil es das assay $intensities_norm erwartet, das gibt es nur nach normalizePeptideIntensities (deswegen ist no norm erlaubt, was dann nur die daten dahin schiebt)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ich bin nicht sicher ob ich die Stelle überhaupt angefasst hatte, ich ändere es aber gerne :D |
||
| #' @param group \strong{character factor} \cr | ||
| #' The groups per sample for aggregation, if not already | ||
| #' The groups per sample for aggregation, if not already | ||
| #' in SummarizedExperiment::colData(D)$group. | ||
| #' @param missing.limit \strong{numeric} \cr | ||
| #' The proportion of missing values that is allowed | ||
|
|
@@ -63,19 +63,19 @@ | |
| #' @export | ||
| #' | ||
| #' @examples | ||
| #' file <- system.file("extdata", "peptides.txt", package = "bppg") | ||
| #' D <- readMqPeptideTable(path = file, LFQ = TRUE, remove_contaminants = FALSE) | ||
| #' D_norm <- bppg::normalizePeptideIntensities(D) | ||
| #' file <- system.file("extdata", "peptides_filtered.txt", package = "bppg") | ||
| #' group <- factor(rep(1:9, each = 3)) | ||
| #' aggregateReplicates(D_norm, group = group) | ||
| #' | ||
| #' @importFrom checkmate assertCharacter assertClass assertDataFrame | ||
| #' assertFactor assertNumber | ||
| #' D <- readMqPeptideTable(path = file, group = group, LFQ = TRUE, remove_contaminants = FALSE) | ||
| #' D_norm <- bppg::normalizePeptideIntensities(D) | ||
| #' aggregateReplicates(D_norm) | ||
| #' | ||
| #' @importFrom checkmate assertCharacter assertClass assertDataFrame | ||
| #' assertFactor assertNumber | ||
| #' @importFrom SummarizedExperiment assays colData rowData SummarizedExperiment | ||
|
|
||
| aggregateReplicates <- function(D, | ||
| group = NULL, | ||
| missing.limit = 0, | ||
| group = NULL, | ||
| missing.limit = 0, | ||
| method = "mean", | ||
| seq_col = "Sequence") { | ||
| checkmate::assertClass(D, "SummarizedExperiment") | ||
|
|
@@ -130,12 +130,13 @@ aggregateReplicates <- function(D, | |
| #' @export | ||
| #' | ||
| #' @examples | ||
| #' file <- system.file("extdata", "peptides.txt", package = "bppg") | ||
| #' D <- readMqPeptideTable(path = file, LFQ = TRUE, remove_contaminants = FALSE) | ||
| #' file <- system.file("extdata", "peptides_filtered.txt", package = "bppg") | ||
| #' group <- factor(rep(1:9, each = 3)) | ||
| #' dAgg <- aggregateReplicates(D, group = group) | ||
| #' D <- readMqPeptideTable(path = file, group = group, LFQ = TRUE, remove_contaminants = FALSE) | ||
| #' D_norm <- bppg::normalizePeptideIntensities(D) | ||
| #' dAgg <- aggregateReplicates(D_norm) | ||
| #' calculatePeptideRatios(dAgg) | ||
| #' | ||
| #' | ||
| #' @importFrom checkmate assertClass assertDataFrame assertVector | ||
| #' @importFrom SummarizedExperiment assays colData rowData SummarizedExperiment | ||
|
|
||
|
|
@@ -175,10 +176,10 @@ calculatePeptideRatios <- function(D, group_levels = NULL) { | |
|
|
||
|
|
||
| #' Normalization of peptide intensities | ||
| #' | ||
| #' | ||
| #' @param D \strong{SummarizedExperiment} \cr | ||
| #' SummarizedExperiment dataset containing peptide | ||
| #' intensities, e.g. | ||
| #' SummarizedExperiment dataset containing peptide | ||
| #' intensities, e.g. | ||
| #' [readMqPeptideTable]. | ||
| #' @param method \strong{character} \cr | ||
| #' The method of normalization. Options are "nonorm" | ||
|
|
@@ -193,10 +194,10 @@ calculatePeptideRatios <- function(D, group_levels = NULL) { | |
| #' @export | ||
| #' | ||
| #' @examples | ||
| #' file <- system.file("extdata", "peptides.txt", package = "bppg") | ||
| #' file <- system.file("extdata", "peptides_filtered.txt", package = "bppg") | ||
| #' D <- readMqPeptideTable(path = file, LFQ = TRUE, remove_contaminants = FALSE) | ||
| #' D_norm <- normalizePeptideIntensities(D, method = "loess") | ||
| #' | ||
| #' | ||
| #' @importFrom SummarizedExperiment assays colData rowData SummarizedExperiment | ||
| #' @importFrom limma normalizeBetweenArrays | ||
| #' @importFrom vsn vsn2 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.