Metadata
Functions to modify the metadata of graphs, their edges, and their nodes.
- pybel.struct.mutation.metadata.strip_annotations(graph)[source]
Strip all the annotations from a BEL graph.
- pybel.struct.mutation.metadata.add_annotation_value(graph, annotation, value, strict=True)[source]
Add the given annotation/value pair to all qualified edges.
- pybel.struct.mutation.metadata.remove_annotation_value(graph, annotation, value)[source]
Remove the given annotation/value pair to all qualified edges.
- pybel.struct.mutation.metadata.remove_extra_citation_metadata(graph)[source]
Remove superfluous metadata associated with a citation (that isn’t the db/id).
Best practice is to add this information programmatically.
- Return type
- pybel.manager.enrich_pubmed_citations(graph, *, manager=None, group_size=None, offline=False)[source]
Overwrite all PubMed citations with values from NCBI’s eUtils lookup service.
- Parameters
- Return type
- Returns
A set of PMIDs for which the eUtils service crashed