diff --git a/modules/Bio/EnsEMBL/Utils/IO/GTFSerializer.pm b/modules/Bio/EnsEMBL/Utils/IO/GTFSerializer.pm new file mode 100644 index 0000000000000000000000000000000000000000..48af01dc6775d1428cc5d814c2e54c58400a7ab2 --- /dev/null +++ b/modules/Bio/EnsEMBL/Utils/IO/GTFSerializer.pm @@ -0,0 +1,43 @@ +=pod + +=head1 LICENSE + + Copyright (c) 1999-2013 The European Bioinformatics Institute and + Genome Research Limited. All rights reserved. + + This software is distributed under a modified Apache license. + For license details, please see + + http://www.ensembl.org/info/about/code_licence.html + +=head1 NAME + +Bio::EnsEMBL::Utils::IO::GTFSerializer - Transcript to GTF converter + +=head1 SYNOPSIS + +use Bio::EnsEMBL::Utils::IO::GTFSerializer; + +my $serializer = Bio::EnsEMBL::Utils::IO::GTFSerializer->new($output_fh); + +=head1 DESCRIPTION + +Subclass of Serializer that can turn a transcript into a series of lines +for the GTF format. + +=cut + +package Bio::EnsEMBL::Utils::IO::GFFSerializer; + +use strict; +use warnings; + +use Bio::EnsEMBL::Utils::Exception; +use Bio::EnsEMBL::Utils::IO::FeatureSerializer; +use Bio::EnsEMBL::Utils::Scalar qw/assert_ref check_ref/; + +use base qw(Bio::EnsEMBL::Utils::IO::FeatureSerializer); + +my %strand_conversion = ( '1' => '+', '0' => '?', '-1' => '-'); + +1;