
Step: Plot QC
step_plot_qc.RdGenerate quality control plots for the experiment using glyclean plotting functions.
This step can be used before AND after step_preprocess() to generate QC plots at different stages.
Usage
step_plot_qc(
when = "post",
batch_col = "batch",
rep_col = NULL,
plot_width = 7,
plot_height = 5
)Arguments
- when
Character string indicating when this QC step is run. Use
"pre"for pre-preprocessing QC,"post"for post-preprocessing QC, or any other value for generic QC. This is appended to the step ID. Default is"post".- batch_col
Column name for batch information (for
glyclean::plot_batch_pca()).- rep_col
Column name for replicate information (for
glyclean::plot_rep_scatter()).- plot_width
Width of plots in inches. Default is 7.
- plot_height
Height of plots in inches. Default is 5.
Details
Data required:
exp: The experiment to plot QC for
Plots generated:
qc_missing_heatmap: Missing value heatmapqc_missing_samples_bar: Missing value bar plot on samplesqc_missing_variables_bar: Missing value bar plot on variablesqc_tic_bar: Total intensity count bar plotqc_rank_abundance: Rank abundance plotqc_int_boxplot: Intensity boxplotqc_rle: RLE plotqc_cv_dent: CV density plotqc_batch_pca: PCA score plot colored by batch (ifbatch_colprovided)qc_rep_scatter: Replicate scatter plots (ifrep_colprovided)
When when = "pre", plots are prefixed with qc_pre_ to distinguish from post-QC plots.
When when = "post" or NULL, plots use the standard qc_ prefix.
AI Prompt
This section is for AI in inquire_blueprint() only.
By default, include this step ONLY after
step_preprocess().You MUST provide the when parameter to specify when the QC is being run.
See also
glyclean::plot_missing_heatmap(), glyclean::plot_tic_bar(), and other glyclean plotting functions.