Exemplo n.º 1
0
def unify_data_in_db():
    from biana.biana_commands import administration
    list_database_id = [1,2,4,8,10,11,12,13,15,16,18,19,29,30,34,41]
    #list_unification_atom_elements = [(list_database_id,["uniprotaccession"]),(list_database_id, ["uniprotentry"]),(list_database_id,["taxid","proteinsequence"]),(list_database_id,["geneid"]),(list_database_id,["ipi"])]
    list_unification_atom_elements = [(list_database_id,["uniprotaccession"]),(list_database_id,["taxid","proteinsequence"])]
    administration.create_unification_protocol( unification_protocol_name=UNIFICATION_PROTOCOL, list_unification_atom_elements = list_unification_atom_elements, dbname=DB_NAME, dbhost = DB_HOST, dbuser = DB_USER, dbpassword = DB_PASS)
    return
Exemplo n.º 2
0
from biana.biana_commands import administration
administration.create_unification_protocol( unification_protocol_name="(p4)(noself)(noprevious)uniprot_seqtax_geneid_scoppdb", list_unification_atom_elements = [([8,11,5,21,7,17,10,12,13,1,2,3],["uniprotaccession"]),([8,11,5,21,7,17,10,12,13,1,2,3],["geneid","taxid"]),([8,11,5,7,17,10,12,13,1,2,3],["geneid"]),([8,19,11,5,21,7,17,16,14,15,10,12,13,1,2,3],["proteinsequence","taxid"]),([20,2,3],["pdb"])], dbname="test_biana", dbuser = "", dbhost = "127.0.0.1", dbpassword = "")