pymol_script_significant_peptide {HDXBoxeR} | R Documentation |
Writes a text files with pymol scripts to list significant peptides
Description
Function write a script that can be used in pymol to color structure. Number of colors and corresponding to them ranges can be defined by user.
Usage
pymol_script_significant_peptide(
df,
path = "",
ranges = c(-Inf, seq(-30, 30, by = 10), Inf),
pv_cutoff = 0.01,
replicates = 3,
order.pep = TRUE
)
Arguments
df |
output from functions output_tp |
path |
location where the scripts will be saved |
ranges |
ranges for coloring scheme. Default set to c(-Inf, seq(-30, 30, by=10), Inf) |
pv_cutoff |
p-value cutoff here set up to 0.01 |
replicates |
number of replicates in sample. Default set to 3. |
order.pep |
flag allowing to either order peptide acccording to the peptide length (default), or to position in the protein sequence. |
Value
pymol script with colors assigned per peptide
Examples
file_nm<-system.file("extdata", "All_results_table.csv", package = "HDXBoxeR")
a<- output_tp(file_nm)
pymol_script_significant_peptide(df=a, replicates=3, path=tempdir(), pv_cutoff=0.01,
ranges=c(-Inf,-40, -30,-20,-10, 0,10, 20,30,40, Inf), order.pep=TRUE )
pymol_script_significant_peptide(df=a, path=tempdir())
[Package HDXBoxeR version 0.0.1 Index]