Af_edge_RMSD | R Documentation |
This function calculates the RMSD between sequences over each edge in the AntibodyForest object.
Af_edge_RMSD(
AntibodyForests_object,
VDJ,
pdb.dir,
file.df,
sequence.region,
sub.sequence.column,
chain,
font.size,
point.size,
color,
output.file
)
AntibodyForests_object |
AntibodyForests-object, output from Af_build() |
VDJ |
The dataframe with V(D)J information such as the output of Platypus::VDJ_build() that was used to create the AntibodyForests-object. Must contain columns sample_id, clonotype_id, barcode. |
pdb.dir |
a directory containing PDB files. |
file.df |
a dataframe of pdb filenames (column file_name) to be used and sequence IDs (column sequence) corresponding to the the barcodes in the AntibodyForests-object |
sequence.region |
a character vector of the sequence region to be used to calculate properties. Default is "full.sequence".
|
sub.sequence.column |
a character vector of the column name in the VDJ dataframe containing the sub sequence to be used to calculate properties. Default is NULL. |
chain |
a character vector of the chain to be used to calculate properties. Default is both heavy and light chain Assuming chain "A" is heavy chain, chain "B" is light chain, and possible chain "C" is the antigen.
|
font.size |
The font size of the plot. Default is 12. |
point.size |
The size of the points in the scatterplot. Default is 1. |
color |
The color of the dots in the scatterplot. Default is "black". |
output.file |
string - specifies the path to the output file (PNG of PDF). Defaults to NULL. |
A list with the edge dataframe and a ggplot2 object
## Not run:
rmsd_df <- Af_edge_RMSD(AntibodyForests::small_af,
VDJ = AntibodyForests::small_vdj,
pdb.dir = "~/path/PDBS_superimposed/",
file.df = files,
sequence.region = "full.sequence",
chain = "HC+LC")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.