append_gilda_predictions
- append_gilda_predictions(prefix: str, target_prefixes: str | Iterable[str], provenance: str, *, relation: str = 'skos:exactMatch', custom_filter: Mapping[str, Mapping[str, Mapping[str, str]]] | None = None, unnamed: Iterable[str] | None = None, identifiers_are_names: bool = False, path: Path | None = None) None [source]
Add gilda predictions to the Biomappings predictions.tsv file.
- Parameters:
prefix – The source prefix
target_prefixes – The target prefix or prefixes
provenance – The provenance text. Typically generated with
biomappings.utils.get_script_url(__file__)
.relation – The relationship. Defaults to
skos:exactMatch
.custom_filter – A triple nested dictionary from source prefix to target prefix to source id to target id. Any source prefix, target prefix, source id combinations in this dictionary will be filtered.
unnamed – An optional list of prefixes whose identifiers should be considered as names (e.g., CCLE, FPLX)
identifiers_are_names – The source prefix’s identifiers should be considered as names
path – A custom path to predictions TSV file