Skip to contents

Add a report to a strollur object

Usage

xdev_add_report(
  data,
  table,
  type = "metadata",
  sequence_name = "sequence_names",
  verbose = TRUE
)

Arguments

data,

a strollur object

table,

a data.frame containing your report.

type,

a string containing the type of report. Options include: "metadata" and custom report tags. Default = "metadata".

sequence_name,

a string containing the name of the column in 'table' that contains the sequence names. This is used for custom reports, metadata does not require a sequence_name column. Default column name is 'sequence_names'.

verbose,

a boolean whether or not you want progress messages. Default = TRUE.

Value

No return value, called for side effects.

Examples


# To add a custom report including your contigs assembly data

data <- new_dataset("just for fun", 2)
contigs_report <- readRDS(strollur_example("miseq_contigs_report.rds"))

xdev_add_report(data, contigs_report, "contigs_report", "Name")
#> Added a contigs_report.

# To add metadata related to your study

metadata <- readRDS(strollur_example("miseq_metadata.rds"))

xdev_add_report(data, metadata, "metadata")
#> Added metadata.