View source: R/select_indices.R
select_indices | R Documentation |
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.
select_indices(df, start = NA, end = NA, length = NA, times = NA, states = NA)
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 |
Row indices of the peptides that are fulfilling the conditions required.
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,]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.