--- title: "PscanR Quick Overview" author: - Diana Betelli - Federico Zambelli date: "`r Sys.Date()`" output: BiocStyle::html_document: toc: true toc_depth: 2 vignette: > %\VignetteIndexEntry{1. PscanR Quick Overview} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{css, echo=FALSE} table.ps-functions { border-collapse: collapse; width: 100%; } table.ps-functions th { border-bottom: 2px solid #ccc; } table.ps-functions td { border-bottom: 1px solid #ddd; } ``` # Introduction This vignette summarises the principal PscanR functions for motif enrichment analysis in promoter sequences. The package reference manual provides complete argument descriptions and examples.
| Function | Description |
|---|---|
pscan() |
Computes the best match to each motif in each promoter and tests motif enrichment against the supplied background score distributions. |
pscan_full_bg()
|
Retrieves stored motif hits for foreground identifiers from a full background and calculates enrichment without rescanning the DNA sequences. |
pscan_filtered() |
Selects promoters whose best match to a specified motif meets a threshold defined from its background distribution, then scans the selected promoters against the supplied motif collection. |
ps_select_promoters() |
Selects one promoter per mapped gene from supplied sequences and annotation, using transcript preferences or rules appropriate to the identifier scheme. Reports the scheme and the reason for each selection. |
ps_selection_summary() |
Summarises a mapping produced by ps_select_promoters(),
including
identifier schemes, selection rules, genes with multiple candidates, and
selections requiring a tie-breaking rule after ranking.
|
ps_load_select_transcripts() |
Downloads and caches human hg38 MANE Select and RefSeq Select metadata from
UCSC for use with ps_select_promoters(). Other organisms
require
an appropriate user-supplied selection table or representative selection.
|
| Function | Description |
|---|---|
ps_build_bg()
|
Scans the supplied reference sequences and computes background statistics for each motif after sequence filtering and deduplication. |
ps_retrieve_bg()
|
Retrieves a precomputed background and associates its statistics with the
matching motif matrices in a PSMatrixList.
|
ps_available_bg()
|
Displays the names of all available precomputed backgrounds, with options to filter by keywords. |
ps_retrieve_bg_from_file() |
Reads a background text file and associates the stored size, mean score, and standard deviation with the supplied motif matrices by identifier. |
ps_build_bg_from_table() |
Associates background parameters held in a data.frame with a
list of position frequency matrices and returns the result as a
PSMatrixList.
|
ps_get_bg_table() |
Extracts the background statistics (size, mean and standard deviation) from
a PSMatrixList as a data.frame, which is the
inverse of ps_build_bg_from_table().
|
ps_write_bg_to_file() |
Writes the background statistics of a PSMatrixList to a text
file, in the format ps_retrieve_bg_from_file() reads back.
|
ps_build_bg(fullBG = TRUE) |
Builds a full background containing summary statistics and the best hit's score, position, strand, and matched oligonucleotide for each retained promoter and motif. Full backgrounds require substantially more storage; the package includes small demonstration objects. |
pscan_full_bg() |
Uses foreground transcript identifiers to retrieve hits stored in a full background. Reusing these hits reduces computation for repeated analyses against the same reference set. |
ps_transcript_legend() |
Retrieves the mapping from original sequence names to representatives
retained after deduplication. This allows pscan_full_bg() to
resolve identifiers associated with identical promoter sequences.
|
| Function | Description |
|---|---|
ps_results_table()
|
Returns motif-level results ordered by increasing p-value, with decreasing z-score used to resolve ties. Motifs can be selected using a specified false discovery rate (FDR) threshold. |
ps_z_table()
|
Returns a matrix of standardised best-hit scores, with promoters as rows
and motifs as columns, from a PSMatrixList.
|
ps_zscore_heatmap()
|
Displays a heatmap of per-promoter motif z-scores after motif selection by FDR. By default, rows are scaled and both axes are clustered using correlation distances; the cells are not pairwise correlation coefficients. |
ps_hitpos_map()
|
Displays the position of each promoter's best motif match as a heatmap to compare positional patterns across motifs. |
ps_density_plot()
|
Estimates the positional density of a motif's best hits, optionally restricted by a score threshold. A supplied promoter window enables boundary correction, and optional bins show a histogram on the same density scale. |
ps_hit_score_plot() |
Plots best-hit score against position for each promoter, allowing joint assessment of match strength and positional concentration. |
ps_motif_barplot() |
Displays the highest-ranked motifs as horizontal bars, optionally coloured by a grouping such as transcription factor structural class. |
ps_motif_class() |
Extracts the transcription factor structural class associated with each
motif, for example "Basic leucine zipper factors (bZIP)", for
annotation or grouping in ps_motif_barplot().
|