Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
BM_Database Class Reference

Built-in Methods

 __init__ (self)
 Initialize an empty database with possibly a name.
 __len__ (self)
 Return the number of datasets recorded in the database.

Manipulating Datasets

 add_dataset (self, dataset)
 Add a dataset to this database.
 add_datasets_from_directory (self, directory, file_name_re=".*", recursion_level=0)
 Search recursively in a directory all the files matching the input regular expression, and create one dataset per directory maximally at the input recursion_level.
 get_datasets (self)
 Return all the recorded datasets.

Detailed Description

Data structure representing a set of datasets. The datasets can be added one by one, or from specification file.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self)

Initialize an empty database with possibly a name.

Member Function Documentation

◆ __len__()

__len__ ( self)

Return the number of datasets recorded in the database.

◆ add_dataset()

add_dataset ( self,
dataset )

Add a dataset to this database.

◆ add_datasets_from_directory()

add_datasets_from_directory ( self,
directory,
file_name_re = ".*",
recursion_level = 0 )

Search recursively in a directory all the files matching the input regular expression, and create one dataset per directory maximally at the input recursion_level.

◆ get_datasets()

get_datasets ( self)

Return all the recorded datasets.