Commit 50fdfcee authored by Marek Szuba's avatar Marek Szuba
Browse files

AttributeAdaptor: add store_on_RNAProduct() and remove_from_RNAProduct()

parent c0c0edb4
......@@ -291,6 +291,22 @@ sub store_on_Transcript {
return;
}
sub store_on_RNAProduct {
my ($self, $object, $attributes) = @_;
my $object_id;
if (!ref($object)) {
$object_id = $object;
}
else {
$object_id = $object->dbID();
}
$self->store_on_Object($object_id, $attributes, 'rnaproduct');
return;
}
sub store_on_Translation {
my ($self, $object, $attributes) = @_;
......@@ -417,6 +433,18 @@ sub remove_from_Transcript {
}
sub remove_from_RNAProduct {
my ($self, $object, $code) = @_;
assert_ref($object, 'Bio::EnsEMBL::RNAProduct');
my $object_id = $object->dbID();
$self->remove_from_Object($object_id, 'rnaproduct', $code);
return;
}
sub remove_from_Translation {
my ($self, $object, $code) = @_;
......
Markdown is supported
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