Deletion

Modules supporting deletion and degradation of graphs.

pybel.struct.mutation.deletion.remove_filtered_edges(graph, edge_predicates=None)[source]

Remove edges passing the given edge predicates.

Parameters
Returns

pybel.struct.mutation.deletion.remove_filtered_nodes(graph, node_predicates=None)[source]

Remove nodes passing the given node predicates.

Parameters

graph (pybel.BELGraph) – A BEL graph

pybel.struct.mutation.deletion.remove_associations(graph)[source]

Remove all associative relationships from the graph.

Parameters

graph (pybel.BELGraph) – A BEL graph

pybel.struct.mutation.deletion.remove_pathologies(graph)[source]

Remove pathology nodes from the graph.

Parameters

graph (pybel.BELGraph) – A BEL graph

pybel.struct.mutation.deletion.remove_biological_processes(graph)[source]

Remove biological process nodes from the graph.

Parameters

graph (pybel.BELGraph) – A BEL graph

pybel.struct.mutation.deletion.remove_isolated_list_abundances(graph)[source]

Remove isolated list abundances from the graph.

Parameters

graph (pybel.BELGraph) – A BEL graph

pybel.struct.mutation.deletion.remove_non_causal_edges(graph)[source]

Remove non-causal edges from the graph.

pybel.struct.mutation.deletion.prune_protein_rna_origins(graph)[source]

Delete genes that are only connected to one node, their correspond RNA, by a translation edge.

Parameters

graph (pybel.BELGraph) – A BEL graph