コード例 #1
0
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")
コード例 #2
0
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)
コード例 #3
0
def test_graph():
    pc2 = pathwaycommons.PathwayCommons(verbose=False)
    res = pc2.graph(source="http://identifiers.org/uniprot/P20908",
                    kind="neighborhood",
                    frmt="EXTENDED_BINARY_SIF")
コード例 #4
0
def test_top_pathways():
    pc2 = pathwaycommons.PathwayCommons(verbose=False)
    res = pc2.top_pathways()
コード例 #5
0
def test_idmapping():
    pc2 = pathwaycommons.PathwayCommons(verbose=False)
    pc2.idmapping("BRCA2")
    pc2.idmapping(["TP53", "BRCA2"])
コード例 #6
0
def test_get():
    pc2 = pathwaycommons.PathwayCommons(verbose=False)
    pc2.get("col5a1")
    pc2.get("http://identifiers.org/uniprot/Q06609")
コード例 #7
0
def test_sifgraph():

    pc2 = pathwaycommons.PathwayCommons(verbose=False)
    pc2.get_sifgraph_neighborhood("BRD4")
    res = pc2.get_sifgraph_common_stream(['BRD4', 'MYC'])