Skip to contents

Flexible function for fetching partner data across datasets

Usage

cf_partners(
  ids,
  threshold = 1L,
  partners = c("inputs", "outputs"),
  bind.rows = TRUE,
  MoreArgs = list()
)

Arguments

ids

A list of ids named by the relevant datasets (see examples) or any other input that can be processed by the keys function (including a hclust dendrogram object.)

threshold

return only edges with at least this many matches. 0 is an option since neuprint sometimes returns 0 weight edges.

partners

Whether to return inputs or outputs

bind.rows

Whether to bind data.frames for each dataset together, keeping only the common columns (default TRUE for convenience but note that some columns will be dropped).

MoreArgs

Additional arguments in the form of a hierarchical list (expert use; see details and examples).

Value

A data.frame or a named list (when bind.rows=FALSE)

Details

fancr and fafbseg functions have usually used a > relationship for the threshold, but here (as of May 2024) it is uniformly a >= relationship.

MoreArgs is structured as a list with a top layer naming datasets (using the same long names as cf_ids. The second (lower) layer names the arguments that will be passed to dataset-specific functions such as fafbseg::flywire_partner_summary2 and malevnc::manc_connection_table.

Examples