Bio::ViennaNGS::AnnoC - Object-oriented interface for storing and converting biological sequence annotation formats
use Bio::ViennaNGS::AnnoC; my $obj = Bio::ViennaNGS::AnnoC->new(); # parse GFF3 file to internal data straucture $obj->parse_gff($gff3_file); # compute summary of parsed annotation $obj->featstat; # dump feature summary to file $obj->feature_summary($dest); # dump all tRNAs contained in data structure as BED12 $obj->features2bed("tRNA",$dest,$bn,$log)
This module provides an object-oriented interface for storing and converting biological sequence annotation data. Based on the
Moose object system, it maintains a central data structure which is curently designed to represent simple, non-spliced (ie single-exon) annotation data. Future versions of the module will account for more generic scenarios, including spliced isoforms.
Title : parse_gff
Function: Parses GFF3 annotation files of non-spliced genomes into
Args : The full path to a GFF3 file
Notes : The GFF3 specification is available at http://www.sequenceontology.org/resources/gff3.html. This routine has been tested with NCBI bacteria GFF3 annotation.
Title : feature_summary
Function : Generate a summary file for all features present in
Args : Full output path for summary.txt file
Title : features2bed
Function : Dumps genomic features from
$self->features hash to a BED12 file.
$gbkey can be either a string corresponding to a genbank key in
undef. If defined, only features of the speficied key will be dumped to a single BED12 file. If
undef, BED12 files will be generated for each type present in
$dest is the output directory and
$bn the basename for all output files.
$log is either be the full path to a logfile or
Michael T. Wolfinger <firstname.lastname@example.org>
Copyright (C) 2014-2017 Michael T. Wolfinger <email@example.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.