keep_psites_with_max_in_topX: Keep psites whose row maximum is top N (percentage).

View source: R/keep_psites_with_max_in_topX.R

keep_psites_with_max_in_topXR Documentation

Keep psites whose row maximum is top N (percentage).

Description

Compute row maximum each psites, sort row maximum in decreasing order and keep top N (percentage).

Usage

keep_psites_with_max_in_topX(phospho_data, percent_of_kept_sites = 3/4)

Arguments

phospho_data

A data frame of phospho-data.

percent_of_kept_sites

A numeric value representing a cutoff used for filter psites. The default is 3/4.

Value

A data frame meeting specific cutoff.

Author(s)

Dongdong Zhan and Mengsha Tong

Examples

## Not run: 
ftp_url <- "ftp://111.198.139.72:4000/pub/PhosMap_datasets/function_demo_data/keep_psites_with_max_in_topX.RData"
load_data <- load_data_with_ftp(ftp_url, 'RData')
writeBin(load_data, "keep_psites_with_max_in_topX.RData")
load("keep_psites_with_max_in_topX.RData")

phospho_data_topX <- keep_psites_with_max_in_topX(phospho_data,
  percent_of_kept_sites = 0.9
)
head(phospho_data_topX)

## End(Not run)

ecnuzdd/PhosMap documentation built on Dec. 7, 2022, 4:09 a.m.