Ejemplo n.º 1
0
def database_connection():
    # create connection with mysql database
    global con
    con = create_connection_to_databases.database_connection_umls()

    global g
    g = create_connection_to_databases.database_connection_neo4j()
def database_connection():
    """
    create connection to neo4j
    :return:
    """
    global g
    g = create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 3
0
def create_connection_with_neo4j_mysql():
    global g
    g = create_connection_to_databases.database_connection_neo4j()

    # create connection with mysql database
    global con
    con = create_connection_to_databases.database_connection_umls()
Ejemplo n.º 4
0
def create_connection_with_neo4j():
    '''
    create a connection with neo4j
    '''
    # set up authentication parameters and connection
    global g
    g = create_connection_to_databases.database_connection_neo4j()
def database_connection():
    # create connection with mysql database
    # global con
    # con = mdb.connect('127.0.0.1', 'root', 'Za8p7Tf', 'umls')

    # authenticate("localhost:7474", )
    global g
    g = create_connection_to_databases.database_connection_neo4j()
def create_connection_with_neo4j():
    '''
    create a connection with neo4j
    '''
    # set up authentication parameters and connection
    # authenticate("localhost:7474", "neo4j", "test")
    global g
    g = create_connection_to_databases.database_connection_neo4j()
def create_connection_with_neo4j_mysql():
    # create connection with neo4j
    # authenticate("localhost:7474", "neo4j", "test")
    global g
    g = create_connection_to_databases.database_connection_neo4j()

    # create connection with mysql database
    global con
    con = create_connection_to_databases.database_connection_umls()
Ejemplo n.º 8
0
def create_connection_with_neo4j_mysql():
    # create connection with neo4j
    # authenticate("localhost:7474", "neo4j", "test")
    # global g
    # g = Graph("http://localhost:7474/db/data/")

    # authenticate("bimi:7475", "ckoenigs", "test")
    global g
    g = create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 9
0
def create_connection_with_neo4j_mysql():
    global g
    g = create_connection_to_databases.database_connection_neo4j()

    # create connection with mysql database
    global con
    con = create_connection_to_databases.database_connection_umls()

    # generate connection to mysql to RxNorm database
    global conRxNorm
    conRxNorm = create_connection_to_databases.database_connection_RxNorm()
Ejemplo n.º 10
0
def create_connection_with_neo4j_and_mysql():
    # set up authentication parameters and connection
    global g
    g = create_connection_to_databases.database_connection_neo4j()

    # create connection with mysql database
    global con
    con = create_connection_to_databases.database_connection_umls()

    # generate connection to mysql to RxNorm database
    global conRxNorm
    conRxNorm = create_connection_to_databases.database_connection_RxNorm()
Ejemplo n.º 11
0
import csv, datetime, sys

sys.path.append("../..")
import create_connection_to_databases

# check why 20 edges of RNA-RNA inter are not integrated

print(datetime.datetime.now(), 'load ids from neo4j')
g = create_connection_to_databases.database_connection_neo4j()

set_of_ids_in_neo4j = set()
query = 'MATCH (n:rna_RNAInter) RETURN n.Raw_ID '
results = g.run(query)
for raw_id, in results:
    set_of_ids_in_neo4j.add(raw_id)

print(datetime.datetime.now(), 'load ids from file')

file = open('data/Download_data_RR.txt', 'r', encoding='utf-8')
csv_reader = csv.DictReader(file, delimiter='\t')

set_rna_ids = set()
set_where_no_raw_id = set()


def get_the_identifier(raw_id_name, symbol, row):
    raw_id = row[raw_id_name]
    if raw_id == 'N/A':
        gene_symbol = row[symbol]
        set_where_no_raw_id.add(gene_symbol)
        raw_id = gene_symbol
Ejemplo n.º 12
0
def create_connection_with_neo4j_mysql():
    # create connection with neo4j
    global g
    g = create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 13
0
def create_connetion_with_neo4j():
    # set up authentication parameters and connection
    # authenticate("localhost:7474", )
    global g
    g = create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 14
0
def create_connection_with_neo4j_mysql():
    # create connection with neo4j
    # authenticate("localhost:7474", )
    global g
    g = create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 15
0
def create_connection_with_neo4j():
    # set up authentication parameters and connection
    # authenticate("localhost:7474", "neo4j", "test")
    return create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 16
0
def database_connection():
    # authenticate("localhost:7474", )
    global g
    g = create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 17
0
def database_connection():
    '''
    create connection to neo4j
    '''
    global g
    g = create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 18
0
def create_connection_with_neo4j():
    global g
    g = create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 19
0
def create_connection_with_neo4j_and_mysql():
    # set up authentication parameters and connection
    global g
    g = create_connection_to_databases.database_connection_neo4j()
Ejemplo n.º 20
0
def create_connection_with_neo4j():
    '''
    create a connection with neo4j
    '''
    global g
    g = create_connection_to_databases.database_connection_neo4j()
def create_connection_with_neo4j():
    # set up authentication parameters and connection
    global graph_database
    graph_database = create_connection_to_databases.database_connection_neo4j()
def database_connection():
    # create connection with neo4j database

    global g
    g = create_connection_to_databases.database_connection_neo4j()