Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_get():
pc2 = pathwaycommons.PathwayCommons(verbose=False)
pc2.get("col5a1")
pc2.get("http://identifiers.org/uniprot/Q06609")
def test_idmapping():
pc2 = pathwaycommons.PathwayCommons(verbose=False)
pc2.idmapping("BRCA2")
pc2.idmapping(["TP53", "BRCA2"])
def test_graph():
pc2 = pathwaycommons.PathwayCommons(verbose=False)
res = pc2.graph(source="http://identifiers.org/uniprot/P20908",
kind="neighborhood", frmt="EXTENDED_BINARY_SIF")
def test_top_pathways():
pc2 = pathwaycommons.PathwayCommons(verbose=False)
res = pc2.top_pathways()
def test_traverse():
pc2 = pathwaycommons.PathwayCommons(verbose=False)
res = pc2.traverse(
uri=['http://identifiers.org/uniprot/P38398', 'http://identifiers.org/uniprot/Q06609'],
path="ProteinReference/organism")
#res = pc2.traverse(
def test_search_queries():
pc2 = pathwaycommons.PathwayCommons(verbose=False)
pc2.search("Q06609")
pc2.search("brca2", type="proteinreference", organism="homo sapiens",
datasource="pid")
pc2.search("name:'col5a1'", type="proteinreference", organism=9606)
pc2.search("a*", page=3)