Skip to content

Commit

Permalink
in case there are more than one strain
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Paulini committed Nov 1, 2019
1 parent 14dbc76 commit e5cf07b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/AGR/make_agr_AGM.pl
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@

while (my $id = shift @ids){
$id =~s/WB://;
my $aceVar = $db->fetch(Variation => $id);
my $strain = $aceVar->Strain;
next unless $strain; # for the alleles without curated strain data
$strains{"$strain"}||=[];
push @{$strains{"$strain"}},"$id";
my $aceVar = $db->fetch(Variation => $id);
my @strains = $aceVar->Strain;
next unless @strains; # for the alleles without curated strain data
foreach my $strain(@strains){
$strains{"$strain"}||=[];
push @{$strains{"$strain"}},"$id";
}
}

my @annotation;
Expand Down

0 comments on commit e5cf07b

Please sign in to comment.