filter_by_count: Filter low count proteoforms

filter_by_countR Documentation

Filter low count proteoforms

Description

Counts the number of samples each proteoform occurs in and filters out any proteoforms that occur in fewer samples than the threshold.

Usage

filter_by_count(x, count_within, count, threshold)

Arguments

x

A data.table output from either augment_annotation or map_proteoform.

count_within

A character vector specifying the variables that will be grouped before counting the number of occurrences of the count variable.

count

A character string indicating the variable that will be counted.

threshold

An integer. The value that will be used to remove rows whose count falls below the threshold.

Value

A data.table where all rows containing proteoforms with counts below the threshold are filtered out.


evanamartin/TopPICR documentation built on Dec. 9, 2022, 8:05 p.m.