Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
List Manipulations | |
def | transpose_listoflists (ll) |
Return the transpose of a list of lists. More... | |
def | convert_listoflists_to_list (ll) |
Converts a list of lists to a unique list containing all the elements. More... | |
def | print_two_lists (l1, l2, name1, name2, filename) |
Writes the contents of the given two lists into a .csv file. More... | |
Dictionnary Manipulations | |
def | make_dictionnary (key_list, data_list) |
Builds a dictionnary, using Key_list's elements as key, and data_list's element as data. More... | |
def | filter_dictionnary_by_keyvalues (dic, allowed_keys) |
Creates a dictionnary from the pairs <key,data> in dic such that key is in allowed_keys. More... | |
def | filter_dictionnary_by_keyregexp (dic, regexp_str) |
Creates a dictionnary from the pairs <key,data> in dic such that key satisfies the regular expression regexp_str. More... | |
def | filter_dictionnary_by_datavalues (dic, allowed_data) |
Creates a dictionnary from the pairs <key,data> in dic such that data is in allowed_data. More... | |
def | filter_dictionnary_by_data_less (dic, UB) |
Creates a dictionnary from the pairs <key,data> in dic such that data is less than UB. More... | |
def | filter_dictionnary_by_data_geq (dic, LB) |
Creates a dictionnary from the pairs <key,data> in dic such that data is greater or equal to LB. More... | |
CSV vs XML Manipulations | |
def | convert_csvfile_to_xmlfile (csvfilename, xmlfilename) |
Converts a .csv file into a .xml file. More... | |
A class providing functions to manipulate python3 Data Structures in general, and lists of strings / native python data types in particular. A class providing functions to manipulate (casts and operations on lists) python3 Data Structures in general, and lists of strings / native python data types in particular.
|
static |
Converts a .csv file into a .xml file.
|
static |
Converts a list of lists to a unique list containing all the elements.
|
static |
Creates a dictionnary from the pairs <key,data> in dic such that data is greater or equal to LB.
|
static |
Creates a dictionnary from the pairs <key,data> in dic such that data is less than UB.
|
static |
Creates a dictionnary from the pairs <key,data> in dic such that data is in allowed_data.
|
static |
Creates a dictionnary from the pairs <key,data> in dic such that key satisfies the regular expression regexp_str.
|
static |
Creates a dictionnary from the pairs <key,data> in dic such that key is in allowed_keys.
|
static |
Builds a dictionnary, using Key_list's elements as key, and data_list's element as data.
|
static |
Writes the contents of the given two lists into a .csv file.
|
static |
Return the transpose of a list of lists.
The lists have to share the same length.