Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
35a2fd7c
Commit
35a2fd7c
authored
Nov 22, 2011
by
Kieron Taylor
😠
Browse files
Fixed use of ontology adaptor to create a BiotypeMapper.
parent
4b35c609
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/Bio/EnsEMBL/Utils/IO/GFFSerializer.pm
modules/Bio/EnsEMBL/Utils/IO/GFFSerializer.pm
+6
-5
No files found.
modules/Bio/EnsEMBL/Utils/IO/GFFSerializer.pm
View file @
35a2fd7c
...
...
@@ -54,23 +54,24 @@ my %strand_conversion = ( '1' => '+', '0' => '?', '-1' => '-');
=head2 new
Constructor
Arg [1] :
BiotypeMappe
r
Arg [1] :
Ontology Adapto
r
Arg [2] : Optional File handle
Returntype : Bio::EnsEMBL::Utils::IO::Serializer
Returntype : Bio::EnsEMBL::Utils::IO::
GFF
Serializer
=cut
sub
new
{
my
$class
=
shift
;
my
$self
=
{
mappe
r
=>
shift
,
ontology_adapto
r
=>
shift
,
filehandle
=>
shift
,
};
bless
$self
,
$class
;
if
(
ref
(
$self
->
mapper
)
ne
"
Bio::EnsEMBL::Utils::BiotypeMappe
r
"
)
{
throw
("
GFF format requires an instance of Bio::EnsEMBL::Utils::BiotypeMapper
to function
");
if
(
ref
(
$self
->
{'
ontology_adaptor
'})
ne
"
Bio::EnsEMBL::DBSQL::OntologyTermAdapto
r
"
)
{
throw
("
GFF format requires an instance of
Bio::EnsEMBL::DBSQL::OntologyTermAdaptor to function. See also
Bio::EnsEMBL::Utils::BiotypeMapper
");
}
$self
->
{'
mapper
'}
=
new
Bio::EnsEMBL::Utils::
BiotypeMapper
(
$self
->
{'
ontology_adaptor
'});
if
(
!
defined
(
$self
->
{'
filehandle
'}))
{
# no file handle, let the handle point to a copy of STDOUT instead
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment