Skip to content
Snippets Groups Projects
Commit 026bf6c0 authored by Shawn Hoon's avatar Shawn Hoon
Browse files

proper use of rearrange, deref contig if arra ref

parent 721fa1c3
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ sub _initialize {
$self->SUPER::_initialize(@args);
my ($analysis, $contig) =
$self->_rearrange([qw(analysis contig)], @args);
$self->_rearrange([qw(ANALYSIS CONTIG)], @args);
if(defined($analysis) && $analysis->isa('Bio::Pipeline::Analysis')){
my $converter_for_analysis = new Bio::EnsEMBL::Utils::Converter(
......@@ -89,6 +89,7 @@ sub _initialize {
}
$self->analysis($analysis);
($contig) = ref($contig) eq 'ARRAY' ? @{$contig} : $contig;
$self->contig($contig);
}
......
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