Package biana :: Package utilities :: Module TsvReader :: Class TsvReader
[hide private]
[frames] | no frames]

Class TsvReader

source code


Read/process TSV (tab seperated) formatted files

Instance Methods [hide private]
 
__init__(self, input_file_name)
Initialize an object of this class storing input_file_name: file name to be read/processed input_type: could be sif, tsv, fasta, etc..
source code
 
process(self, out_method, fields_to_include=None)
Read and process an input file line by line.
source code

Inherited from FormattedFileProcessor.FormattedFileProcessor: read

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from FormattedFileProcessor.FormattedFileProcessor: allowed_formats

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, input_file_name)
(Constructor)

source code 

Initialize an object of this class storing input_file_name: file name to be read/processed input_type: could be sif, tsv, fasta, etc..

Overrides: object.__init__
(inherited documentation)

process(self, out_method, fields_to_include=None)

source code 

Read and process an input file line by line. If out_method is None a dictionary storing read lines are returned. out_method: method to output columns in current line on the fly in tsv format fields_to_include: columns that would be included in the dictionary or processed with the function

Overrides: FormattedFileProcessor.FormattedFileProcessor.process