Skip to content
Snippets Groups Projects
Commit 34d5fdb9 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Tests for new UnconventionalTranscriptAssociation object.

parent 7ead34ce
No related branches found
No related tags found
No related merge requests found
use strict;
use Bio::EnsEMBL::Test::TestUtils;
BEGIN { $| = 1;
use Test;
plan tests => 4;
}
use Bio::EnsEMBL::Test::MultiTestDB;
use Bio::EnsEMBL::UnconventionalTranscriptAssociation;
our $verbose = 0;
my $multi = Bio::EnsEMBL::Test::MultiTestDB->new;
# get a core DBAdaptor
#
my $db = $multi->get_DBAdaptor("core");
my $utaa = $db->get_UnconventionalTranscriptAssociationAdaptor;
my $gene = $db->get_GeneAdaptor->fetch_by_stable_id('ENSG00000355555');
my $transcript = my $ta = $db->get_TranscriptAdaptor()->fetch_by_stable_id("ENST00000217347");
#
# 1 create a new UnconventionalTranscriptAssociation
#
my $uta = new Bio::EnsEMBL::UnconventionalTranscriptAssociation($transcript, $gene, 'antisense');
ok($uta);
#
# 2-4 test the basic getter and setters
#
# 2 gene
ok(test_getter_setter($uta, 'gene', $gene));
# 3 transcript
ok(test_getter_setter($uta, 'transcript', $transcript));
# 4 type
ok(test_getter_setter($uta, 'interaction_type', 'antisense'));
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment