The species the config classifies, filtered to those present in the
AOI. Used by lnk_pipeline_classify() and lnk_pipeline_connect()
to pick which species to run, and exposed for callers that need to
derive the same list outside the pipeline (e.g. a custom
compare_bcfishpass_wsg() that queries bcfishpass reference tables
only for these species).
Arguments
- cfg
An
lnk_configobject fromlnk_config().- loaded
Named list of tibbles from
lnk_load_overrides(). Carriesparameters_freshandwsg_species_presence.- aoi
Character. AOI identifier — today a watershed group code (e.g.
"BULK") matched againstloaded$wsg_species_presence$watershed_group_code.
Details
The returned set is the intersection of:
cfg$species— species the rules YAML classifies (parsed atlnk_config()load time)species flagged present for
aoiinloaded$wsg_species_presence— the wide-form presence table where each species column (bt,ch,cm, ...) holds"t"for present and"f"for absent
When loaded$wsg_species_presence is not populated the function
returns cfg$species unfiltered. When the AOI is not found in the
table the function returns character(0).
Examples
cfg <- lnk_config("bcfishpass")
loaded <- lnk_load_overrides(cfg)
#> Warning: incomplete final line found by readTableHeader on '/home/runner/work/_temp/Library/link/extdata/configs/bcfishpass/overrides/cabd_blkey_xref.csv'
lnk_pipeline_species(cfg, loaded, "BULK")
#> [1] "BT" "CH" "CO" "PK" "SK" "ST"
lnk_pipeline_species(cfg, loaded, "ADMS")
#> [1] "BT" "CH" "CO" "SK"
