process_signature_with_df()— gene coverage message now reflects topN: The "Found X/Y up-regulated genes" progress message previously reported overlap against the full signature gene list. It now sorts each direction by effect size, truncates to thetopNgenes actually passed to the scoring functions, and reports overlap against that subset. The denominator and percentage therefore match the genes that scoring methods such as XSum and XCos will use. The message also appends(top N per direction)to make the basis of the calculation explicit.
-
Split-direction mode for
extract_signature_zscores()andplot_signature_direction_tile_barcode(): Both functions now accept asplit_directionargument (defaultFALSE).-
In
extract_signature_zscores(), settingsplit_direction = TRUEappliesmax_genesindependently to the up-regulated (log2FC > 0) and down-regulated (log2FC < 0) gene sets, so each direction contributes up tomax_genescolumns (up to2 * max_genestotal). Genes within each group are ordered by effect size (most-positive first for up, most-negative first for down) before truncation. -
In
plot_signature_direction_tile_barcode(), settingsplit_direction = TRUErenders the heatmap as two side-by-side panels: up-regulated genes on the left and down-regulated genes on the right. A companiongap_widthargument (default5mm) controls the gap between panels. Row clustering is performed on the full combined matrix so both panels display perturbations in the same order, enabling direct visual comparison of activation and suppression patterns within a single figure.
-
-
Reference-intersection highlighting in
plot_signature_direction_tile_barcode(): When areference_dfis supplied, the function now computes the intersection of the signature genes with genes present inreference_dfand visually distinguishes the two groups:-
Genes not found in
reference_dfare shown in a muted silver-gray colour (#CCCCCC) with dimmed column labels, making the overlap immediately apparent without removing any genes from the display. -
When
cluster_cols = FALSE(default), all genes are kept in their original signature order (down-regulated first, then up-regulated); acell_funoverlay is used to gray out non-intersecting columns without disturbing the column arrangement. -
When
cluster_cols = TRUE, the intersecting genes form a clustered panel and the non-intersecting genes are appended as a separate un-clustered panel in their original signature order (muted colour, labeled not in ref). Whensplit_direction = TRUEis also active, this logic is applied within each direction sub-panel, yielding up to four panels in total (up-in-ref | up-not-in-ref | down-in-ref | down-not-in-ref).
-
- Fixed mailing list registration
-
create_signature_from_gene_lists(): New convenience function to convert separate up-regulated and down-regulated gene lists into a signature data frame compatible with all CONCERTDR scoring functions. Up-regulated genes receive a default value of +1 and down-regulated genes receive -1. -
Data frame input for signatures:
process_signature_with_df(),extract_signature_zscores(), andplot_signature_direction_tile_barcode()now accept adata.frame(withGeneandlog2FCcolumns) for thesignature_fileargument, in addition to the existing file-path input. This allows users to pass in-memory signature objects throughout the entire workflow without writing intermediate files. -
Progress message for GCTX extraction:
extract_cmap_data_from_siginfo()now prints a prominent notice before reading the GCTX file, letting users know the step may take a long time and should not be interrupted.
- Reorganised the workflow steps in all vignettes:
- Steps 2 (Build reference matrix) and 3 (Prepare query signature) have been swapped so that users prepare their signature first.
- Steps 4 (Annotate) and 5 (Visualise) have been merged into a single step.
- Added examples for data-frame input and gene-list conversion in
introduction.Rmdandsignature_matching.Rmd.
- Added
extract_signature_zscores()for pre-computing z-score matrices without rendering a plot, enabling reuse across repeated calls. - Added
plot_signature_direction_tile_barcode()for publication-quality directional barcode heatmaps via ComplexHeatmap. - Added
annotate_drug_results()producing four analysis-ready views: wetlab drug view, wetlab gene view, full technical table, and drug context summary. - Added
subset_siginfo_beta()for interactive and non-interactive filtering of the CMap siginfo file.
- Replaced
installed.packages()in.onLoadwithrequireNamespace()to comply with CRAN/Bioconductor startup function guidelines. - Removed non-ASCII characters from R source files.
- Replaced
sapply()withvapply()throughout for type-safe output. - Replaced
1:nrow(x)idiom withseq_len(nrow(x))throughout. - Replaced
\dontrun{}with\donttest{}in all man page examples.