IMP logo
IMP Reference Guide  2.18.0
The Integrative Modeling Platform
IMP.EMageFit.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 ls. 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 necessary 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.EMageFit.database.get_sorting_indices (   ls)

Return indices that sort the list ls.

Note
This function is only available in Python.

Definition at line 357 of file database.py.

def IMP.EMageFit.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 necessary before merging.

Note
This function is only available in Python.

Definition at line 364 of file database.py.

def IMP.EMageFit.database.print_data (   data,
  delimiter = ' ' 
)

Prints the data recovered from a database.

Note
This function is only available in Python.

Definition at line 316 of file database.py.

def IMP.EMageFit.database.write_data (   data,
  output_file,
  delimiter = ' ' 
)

writes data to a file.

The output file is expected to be a python file object

Note
This function is only available in Python.

Definition at line 323 of file database.py.