Description Usage Arguments Value Author(s)
View source: R/plot_features.r
Plot sequence features such as domains alongside distributions of case and control variant residues
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | plot_features(
genename,
pvals,
cases,
controls,
case_coverage,
control_coverage,
cov_threshold = 0.5,
features = c("Compositional-bias", "Coiled-coil", "Repeat", "Zinc-Finger", "Region",
"Motif", "Domain", "Topological domain", "Intramembrane", "Transmembrane",
"Cross-link", "Disulphide", "Glycosylation", "Lipidation", "Peptide", "Propeptide",
"Signal peptide", "Transit peptide", "Structure"),
SCALE = 1
)
|
genename |
gene to plot |
pvals |
pvals data.table from ClusterBurden WES analysis |
cases |
case data in format: data.table(aff, symbol, protein_position, ac) |
controls |
control data in format: data.table(aff, symbol, protein_position, ac) |
case_coverage |
optional coverage data for cases in format: data.table(symbol, protein_position, over_10) |
control_coverage |
optional coverage data for controls in format: data.table(symbol, protein_position, over_10) |
cov_threshold |
threshold at which to exclude a residue position from the analysis (choose 0 to keep all residues) |
features |
which sequence features to plot e.g. c("Domain", "Region", "Structure") |
SCALE |
scale of the plot |
Returns a ggplot object
Adam Waring - adam.waring@msdtc.ox.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.