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

Public Attributes


Built-in Methods

def __init__ (self)
 Initialize an empty dataset. More...
def __len__ (self)
 Return the number of files recorded in the dataset. More...

Manipulating Data

def get_directory (self)
 Return the directory absolute path. More...
def load_from_directory (self, directory, file_name_re=".*", recursive=False)
 Add all file names in an input directory matching the input regular expression (default is all) with a possible recursive rule (default is False). More...
def remove_data (self, file_name_re=".*")
 Remove all the file names matching the regular expression (default is all). More...
def get_data (self, file_name_re=".*")
 Access to the list of stored file names matching the input regular expression (default is all). More...
def get_tuple_data (self, common_regex, regexs, general_regex=None)
 get_tuple_data More...

Detailed Description

Data structure representing a dataset, i.e a collection of files. The existence of each file added to the dataset is tested.