Learn R Programming

peptoolkit (version 0.0.1)

select_best_vs_worst: Select Best vs Worst Peptides

Description

This function identifies the peptides from the function *appearance_to_binary* that are 1 in one group and 0 or -1 in another group, and expands the grid to all possible combinations.

Usage

select_best_vs_worst(appearance_best, appearance_worst)

Value

A data frame with combinations of 'best' peptides.

Arguments

appearance_best

A matrix with transformed counts for the 'best' group.

appearance_worst

A matrix with transformed counts for the 'worst' group.

Examples

Run this code
# Generate some mock data
appearance_best <- matrix(c(1, -1, 0, 1, -1), nrow = 5, ncol = 4)
appearance_worst <- matrix(c(-1, 1, 0, -1, 1), nrow = 5, ncol = 4)
# Call the function
select_best_vs_worst(appearance_best, appearance_worst)

Run the code above in your browser using DataLab