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")
def test_search_queries(): pc2 = pathwaycommons.PathwayCommons(verbose=False) pc2.search("Q06609") pc2.search("brca2", type="proteinreference", organism="h**o sapiens", datasource="pid") pc2.search("name:'col5a1'", type="proteinreference", organism=9606) pc2.search("a*", page=3)
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_idmapping(): pc2 = pathwaycommons.PathwayCommons(verbose=False) pc2.idmapping("BRCA2") pc2.idmapping(["TP53", "BRCA2"])
def test_get(): pc2 = pathwaycommons.PathwayCommons(verbose=False) pc2.get("col5a1") pc2.get("http://identifiers.org/uniprot/Q06609")
def test_sifgraph(): pc2 = pathwaycommons.PathwayCommons(verbose=False) pc2.get_sifgraph_neighborhood("BRD4") res = pc2.get_sifgraph_common_stream(['BRD4', 'MYC'])