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

List Manipulations

 transpose_listoflists (ll)
 Return the transpose of a list of lists.
 convert_listoflists_to_list (ll)
 Converts a list of lists to a unique list containing all the elements.
 print_two_lists (l1, l2, name1, name2, filename)
 Writes the contents of the given two lists into a .csv file.

Dictionnary Manipulations

 make_dictionnary (key_list, data_list)
 Builds a dictionnary, using Key_list's elements as key, and data_list's element as data.
 filter_dictionnary_by_keyvalues (dic, allowed_keys)
 Creates a dictionnary from the pairs <key,data> in dic such that key is in allowed_keys.
 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.
 filter_dictionnary_by_datavalues (dic, allowed_data)
 Creates a dictionnary from the pairs <key,data> in dic such that data is in allowed_data.
 filter_dictionnary_by_data_less (dic, UB)
 Creates a dictionnary from the pairs <key,data> in dic such that data is less than UB.
 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.

CSV vs XML Manipulations

 convert_csvfile_to_xmlfile (csvfilename, xmlfilename)
 Converts a .csv file into a .xml file.

Detailed Description

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.

Member Function Documentation

◆ convert_csvfile_to_xmlfile()

convert_csvfile_to_xmlfile ( csvfilename,
xmlfilename )
static

Converts a .csv file into a .xml file.

◆ convert_listoflists_to_list()

convert_listoflists_to_list ( ll)
static

Converts a list of lists to a unique list containing all the elements.

◆ filter_dictionnary_by_data_geq()

filter_dictionnary_by_data_geq ( dic,
LB )
static

Creates a dictionnary from the pairs <key,data> in dic such that data is greater or equal to LB.

◆ filter_dictionnary_by_data_less()

filter_dictionnary_by_data_less ( dic,
UB )
static

Creates a dictionnary from the pairs <key,data> in dic such that data is less than UB.

◆ filter_dictionnary_by_datavalues()

filter_dictionnary_by_datavalues ( dic,
allowed_data )
static

Creates a dictionnary from the pairs <key,data> in dic such that data is in allowed_data.

◆ filter_dictionnary_by_keyregexp()

filter_dictionnary_by_keyregexp ( dic,
regexp_str )
static

Creates a dictionnary from the pairs <key,data> in dic such that key satisfies the regular expression regexp_str.

◆ filter_dictionnary_by_keyvalues()

filter_dictionnary_by_keyvalues ( dic,
allowed_keys )
static

Creates a dictionnary from the pairs <key,data> in dic such that key is in allowed_keys.

◆ make_dictionnary()

make_dictionnary ( key_list,
data_list )
static

Builds a dictionnary, using Key_list's elements as key, and data_list's element as data.

◆ print_two_lists()

print_two_lists ( l1,
l2,
name1,
name2,
filename )
static

Writes the contents of the given two lists into a .csv file.

◆ transpose_listoflists()

transpose_listoflists ( ll)
static

Return the transpose of a list of lists.

The lists have to share the same length.