Package biana :: Module biana_commands'
[hide private]
[frames] | no frames]

Module biana_commands'

source code

BIANA: Biologic Interactions and Network Analysis Copyright (C) 2009 Javier Garcia-Garcia, Emre Guney, Baldo Oliva

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Classes [hide private]
  administration
Functions [hide private]
 
close() source code
 
create_new_session(sessionID, dbname, dbhost, dbuser, dbpassword, unification_protocol, dbport=None)
Creates a new biana session with the specified ID.
source code
 
load_session(file_name)
Loads a saved biana session
source code
 
ping() source code
 
remove_session(sessionID)
Removes a session from memory
source code
 
save_session(sessionID, file_name)
Saves the Session in the specified file
source code
Variables [hide private]
  available_sessions = {}
Function Details [hide private]

create_new_session(sessionID, dbname, dbhost, dbuser, dbpassword, unification_protocol, dbport=None)

source code 

Creates a new biana session with the specified ID. A session must be started in a populated biana database using a specified unification protocol.

"sessionID" is the identifier for the session. It must be unique! (required)

"unification_protocol"

remove_session(sessionID)

source code 

Removes a session from memory

"sessionID" is the identifier of the session

save_session(sessionID, file_name)

source code 

Saves the Session in the specified file

"sessionID" is the identifier of the session

"fileName" is the absolute or relative path where the session must be saved