bioden.exporter — Data Exporter

Author:Serrano Pereira
Release:0.4.0
Date:February 18, 2015

Module Contents

class bioden.exporter.CSVExporter(processor)[source]

Export data in CSV format.

export(output_file, data)[source]

Write CSV data data to file output_file. For better performance, ‘data’ should be an iterator object.

class bioden.exporter.Generator(processor)[source]

Super class for Generator classes.

ecotope_data_grouped(ecotope, data_type='raw')[source]

Return an iterator object which generates the CSV data of grouped data for ecotope ecotope.

ecotope_data_raw(ecotope)[source]

Return an iterator object which generates the CSV data of non-grouped data for ecotope ecotope.

export_ecotopes_grouped(data_type='raw')[source]

Return an iterator object which generates CSV data for all ecotopes. For each ecotope, the grouped data is returned. If data_type is set to “raw”, the non-normalized group values are returned. If data_type is set to “normalized”, the normalized group values are returned.

export_ecotopes_raw()[source]

Return an iterator object which generates CSV data for all ecotopes. For each ecotope, the non-grouped data is returned.

export_representatives()[source]

Return an iterator object which generates CSV data for all ecotopes. For each ecotope, only the representative group is returned.

representatives()[source]

Return an iterator object which generates the CSV data with only the representative group for each ecotope.

class bioden.exporter.XLSExporter(processor)[source]

Export data in XLS format.

export(output_file, data)[source]

Write CSV data data to file output_file. For better performance, ‘data’ should be an iterator object.