ms_subsetting: ms_subsetting

Description Usage Arguments Value Examples

View source: R/ms_subsetting.R

Description

Function to parse data against a list to subset the data

Usage

1
2
3
4
5
6
7
8
ms_subsetting(
  data,
  hitidlist,
  isfile = TRUE,
  pfdatabase = FALSE,
  allisoform = TRUE,
  revsel = FALSE
)

Arguments

data

dataset to be subsetted

hitidlist

a list of hit UniprotID to parse against the dataset, which could be a vector of IDs or a txt file, see below

isfile

whether the provided hitidlist is in a txt file under column name "id", default set to TRUE

pfdatabase

whether the data is a malaria dataset, default set to FALSE

allisoform

whether to retrieve other isoforms of the same parental Uniprot ID, default set to TRUE

revsel

short for reverse selection, when set to TRUE, the output is the dataset after removing the targets, default set to FALSE

Value

a dataframe

Examples

1
2
3
4
5
## Not run: 
IITDRdata_subset <- ms_subsetting(ITDRdata_f[[1]], hitidlist="hit_list.txt", isfile=TRUE)
ITDRdata_subset <- ms_subsetting(ITDRdata_f[[1]], hitidlist=c("P00000", "P12345-6"), isfile=FALSE)

## End(Not run)

nkdailingyun/mineCETSA documentation built on Feb. 27, 2021, 8:26 p.m.