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

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...
 

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()

def convert_csvfile_to_xmlfile (   csvfilename,
  xmlfilename 
)
static

Converts a .csv file into a .xml file.

◆ convert_listoflists_to_list()

def convert_listoflists_to_list (   ll)
static

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

◆ filter_dictionnary_by_data_geq()

def 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()

def 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()

def 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()

def 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()

def 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()

def 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()

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

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

◆ transpose_listoflists()

def transpose_listoflists (   ll)
static

Return the transpose of a list of lists.

The lists have to share the same length.