View source: R/plot_peptide_data.R
plot_peptide_data | R Documentation |
plot peptide-level data
plot_peptide_data(
dataset,
select_all_proteins = FALSE,
select_diffdetect_candidates = NA,
select_dea_signif = FALSE,
filter_protein_ids = NA,
filter_genes = NA,
output_dir,
show_unused_datapoints = FALSE,
norm_algorithm = NA
)
dataset |
your dataset |
select_all_proteins |
plot all proteins. This will take a long time. Default: FALSE |
select_diffdetect_candidates |
if "differential detection" was enabled (it is by default in |
select_dea_signif |
plot all significant proteins from DEA?
This effectively checks the "signif" column in the |
filter_protein_ids |
a vector of protein_id values that should be plotted. For example, you can find specific protein_id values in the differential expression result table and provide only these as a parameter
(in this case, set |
filter_genes |
a vector of gene symbols to plot (alternative for filter_protein_ids) |
output_dir |
full path to the output directory |
show_unused_datapoints |
should data points be shown for peptides that were not used in the differential expression analyses? i.e. peptides that did not pass the filtering prior to DEA (found in N samples in both experimental conditions). Boolean value, default: FALSE |
norm_algorithm |
normalization algorithms. This should be exactly the same as the parameter your provided to |
## Not run:
# example 1:
# <assuming you imported a dataset and applied analysis_quickstart()>
# plot all significant proteins found by DEA
plot_peptide_data( dataset, select_dea_signif = TRUE,
# should match analysis_quickstart() parameters !
norm_algorithm = c("vwmb", "modebetween_protein"),
show_unused_datapoints = TRUE, output_dir = "C:/temp")
# example 2:
# filter the DEA results for some specific proteins, then plot these
pid = dataset$de_proteins %>%
filter(dea_algorithm == "deqms" & qvalue < 10^-4) %>%
pull(protein_id)
plot_peptide_data(
dataset, filter_protein_ids = pid,
# should match analysis_quickstart() parameters !
norm_algorithm = c("vwmb", "modebetween_protein"),
show_unused_datapoints = TRUE, output_dir = "C:/temp")
# example 3:
# plot specific proteins by providing gene symbols (not case sensitive)
plot_peptide_data(
dataset, filter_genes = c("shisa6", "gria2"),
# should match analysis_quickstart() parameters !
norm_algorithm = c("vwmb", "modebetween_protein"),
show_unused_datapoints = TRUE, output_dir = "C:/temp")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.