Provides a compact tibble-like display for a SummarizedExperiment object that preserves assay values and key covariates with a separator band when the table is truncated.

# S3 method for class 'SummarizedExperiment'
print(x, n = 10, ...)

Arguments

x

A SummarizedExperiment object to print.

n

Integer (default 10). Approximate number of rows to show in the display. When the total cells shown are fewer than n, the full table is printed and the separator row is suppressed.

...

Additional arguments passed to internal printers (currently unused).

Value

x is returned invisibly after printing.

Details

This method constructs a tibble abstraction for SummarizedExperiment data with columns: .feature, .sample, assay columns, a vertical separator "|", followed by selected colData and rowData fields. When the output is truncated, an adaptive dash-only separator row is inserted after the first half block of rows. Additional indication of colData is provided as well.

Examples

if (FALSE) { # \dontrun{
  library(tidyprint)
  print(se_airway)                         # compact tibble display
  print(se_airway, n = 20)                # with custom row count
} # }