Learn R Programming

HDXBoxeR (version 0.0.2)

select_indices: Allows for selecting some peptide from input data

Description

Function allows for picking indices from the inputs based on: peptide start or end residue, length, state or timepoint. If parameters set to NA, condition is skipped.

Usage

select_indices(df, start = NA, end = NA, length = NA, times = NA, states = NA)

Value

Row indices of the peptides that are fulfilling the conditions required.

Arguments

df

input file (output of output_tc or output_tp)

start

provide number for the staring residue, default NA

end

provide number for the end residue, default NA

length

provide max length of the peptide

times

timepoints, only for the output_tp functions

states

states, only for the output_tc functions

Examples

Run this code
file_nm<-system.file("extdata", "All_results_table.csv", package = "HDXBoxeR")
a<- output_tp(file_nm)
indb<-select_indices(a,length=12, start=100, end=200)
smaller_df<-a[indb,]

Run the code above in your browser using DataLab