IMP  2.3.0
The Integrative Modeling Platform
IMP.em2d.Database Namespace Reference

Utility functions to manage SQL databases with sqlite3. More...

Detailed Description

Utility functions to manage SQL databases with sqlite3.

Classes

class  Database2
 Class to manage a SQL database built with sqlite3. More...
 

Functions

def get_sorting_indices
 Return indices that sort the list l. More...
 
def merge_databases
 Reads a table from a set of database files into a single file Makes sure to reorder all column names if neccesary before merging. More...
 
def print_data
 Prints the data recovered from a database. More...
 
def write_data
 writes data to a file. More...
 

Function Documentation

def IMP.em2d.Database.get_sorting_indices (   l)

Return indices that sort the list l.

Definition at line 355 of file Database.py.

def IMP.em2d.Database.merge_databases (   fns,
  fn_output,
  tbl 
)

Reads a table from a set of database files into a single file Makes sure to reorder all column names if neccesary before merging.

Definition at line 362 of file Database.py.

def IMP.em2d.Database.print_data (   data,
  delimiter = ' ' 
)

Prints the data recovered from a database.

Definition at line 314 of file Database.py.

def IMP.em2d.Database.write_data (   data,
  output_file,
  delimiter = ' ' 
)

writes data to a file.

The output file is expected to be a python file object

Definition at line 321 of file Database.py.