From dbcbad4fadb58d3a35b38a65d85364fc426f134b Mon Sep 17 00:00:00 2001 From: Tiago Grego <tgrego@ebi.ac.uk> Date: Mon, 26 Feb 2018 16:53:04 +0000 Subject: [PATCH] minor documentation update --- modules/Bio/EnsEMBL/DBSQL/BiotypeAdaptor.pm | 8 ++++---- modules/t/biotype.t | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/Bio/EnsEMBL/DBSQL/BiotypeAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/BiotypeAdaptor.pm index 86d69c5cef..66693733fd 100644 --- a/modules/Bio/EnsEMBL/DBSQL/BiotypeAdaptor.pm +++ b/modules/Bio/EnsEMBL/DBSQL/BiotypeAdaptor.pm @@ -65,7 +65,7 @@ use parent qw(Bio::EnsEMBL::DBSQL::BaseAdaptor); Arg [1] : none Description: PROTECTED implementation of superclass abstract method. Returns the names, aliases of the tables to use for queries. - Returntype : list of listrefs of strings + Returntype : list of arrays of strings Exceptions : none =cut @@ -99,7 +99,7 @@ sub _columns { Example : none Description: PROTECTED implementation of abstract superclass method. responsible for the creation of ProteinFeatures - Returntype : listref of Bio::EnsEMBL::Biotype objects + Returntype : arrayref of Bio::EnsEMBL::Biotype objects Exceptions : none =cut @@ -174,8 +174,8 @@ sub fetch_by_name_object_type { The object_type of the biotypes to retrieve (gene or transcript). Example : $biotypes = $biotype_adaptor->fetch_all_by_object_type('gene'); Description: Retrieves an array reference of biotype objects from the database. - Returntype : arrayref of Bio::EnsEMBL::Biotype objects or empty array - Warning : If empty array is to be returned + Returntype : arrayref of Bio::EnsEMBL::Biotype objects or empty arrayref + Warning : If empty arrayref is to be returned Exceptions : none =cut diff --git a/modules/t/biotype.t b/modules/t/biotype.t index 4530596551..2de5367999 100644 --- a/modules/t/biotype.t +++ b/modules/t/biotype.t @@ -52,8 +52,8 @@ is($biotype1->object_type, 'gene', 'Biotype is from Gene object'); is($biotype1->name, 'protein_coding', 'Biotype name is protein_coding'); is($biotype1->biotype_group, 'coding', 'Biotype group is coding'); is($biotype1->so_acc, 'SO:0001217', 'Biotype protein_coding refers to SO:0001217'); -throws_ok { $biotype1->so_acc('test') } qr/so_acc must be a Sequence Ontology accession/, 'so_acc() requires a SO acc like string'; -throws_ok { $biotype1->object_type('test') } qr/object_type must be gene or transcript/, 'object_type() must be gene or transcript'; +throws_ok { $biotype1->so_acc('test') } qr/so_acc must be a Sequence Ontology accession/, 'so_acc() requires a SO acc like string'; +throws_ok { $biotype1->object_type('test') } qr/object_type must be gene or transcript/, 'object_type() must be gene or transcript'; # test transcript biotype object my $transcript = $gene->canonical_transcript; -- GitLab