Tentacle contains several parsers that parse input files to produce the data structures required to hold the results (coverage, counts) but also parsers for the output files from mappers (e.g. gem, razers3, or blast tabular formats).
If additional mappers are to be added to the program, suitable parsers might also be required. Have a look at how the supplied parsers are implemented and write something similar for the specific format you require. Make sure to add the parser to the tentacle.parsers.__init__py.
Tentacle parsers blast tabular output
author:: Fredrik Boulund date:: 2014-04-30
Bases: exceptions.Exception
Base class for exceptions in this module.
Bases: tentacle.parsers.blast8.Error
Raised when file is not in expected format.
Bases: tentacle.parsers.blast8.Error
Raised for parsing errors.
Tentacle parsers
author:: Fredrik Boulund date:: 2014-04-30
Bases: exceptions.Exception
Base class for exceptions in this module.
Bases: tentacle.parsers.gem.Error
Raised when file is not in expected format.
Bases: tentacle.parsers.gem.Error
Raised for parsing errors.
Tentacle parsers
author:: Fredrik Boulund date:: 2014-04-30
Bases: exceptions.Exception
Base class for exceptions in this module.
Bases: tentacle.parsers.razers3.Error
Raised when file is not in expected format.
Bases: tentacle.parsers.razers3.Error
Raised for parsing errors.
Tentacle parsers
author:: Fredrik Boulund date:: 2014-04-30
Bases: exceptions.Exception
Base class for exceptions in this module.
Bases: tentacle.parsers.sam.Error
Raised when file is not in expected format.
Bases: tentacle.parsers.sam.Error
Raised for parsing errors.
Tentacle initialize contig data structure
author:: Fredrik Boulund date:: 2014-05-06 purpose:: Creates an empty data structure for contig coverage and annotated region count information.
Bases: exceptions.Exception
Base class for exceptions in this module.
Bases: tentacle.parsers.initialize_contig_data.Error
Raised when file is not in expected format.
Bases: tentacle.parsers.initialize_contig_data.Error
Raised for parsing errors.
Initializes the second level of keys in the contig_data structure (annotations).
Reads annotation and reference (FASTA) files to create an empty data structure.
Creates the first level of keys in the contig_data dictionary from a FASTA file.
Keys in the dictionary are based on the first-space separated header string in the FASTA headers.
Each sequence is represented by a continous array of length equal to contig length+1 for later use in coverage computations.