Skip to content
Snippets Groups Projects
Commit baaac8a2 authored by ens-carlos's avatar ens-carlos Committed by GitHub
Browse files

Fixed example

Fixed example to create and edit an AltAlleleGroup.
parent 64d8bd31
No related branches found
No related tags found
2 merge requests!149Master,!149Master
......@@ -53,14 +53,14 @@ limitations under the License.
}
# Creating and editing an AltAlleleGroup
my $type_flags = [qw(IS_MOST_COMMON_ALLELE AUTOMATICALLY_ASSIGNED)];
my %type_flags = ('IS_MOST_COMMON_ALLELE' => '1','AUTOMATICALLY_ASSIGNED' => '1');
$aag = Bio::EnsEMBL::AltAlleleGroup->new(
-MEMBERS => [ [$gene_id,$type_flags ] ],
-MEMBERS => [ [$gene_id,\%type_flags ] ],
);
$aag->remove_all_members;
$aag->add_member([$gene_id,$type_flags]);
$aag->add_member($gene_id,\%type_flags);
my $dbID = $aag_adaptor->store($aag);
......
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