Skip to content
Snippets Groups Projects
Commit 0f17379f authored by Anthony Bretaudeau's avatar Anthony Bretaudeau
Browse files

persicae

parent 302c7a4f
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ $orgs = array(
'phylloxera' => 'DAKVI',
'noxia' => 'DIUNO',
'cerasi' => 'MYZCE',
'G006' => 'MYZPE_CLONE_G006',
'persicae' => 'MYZPE_CLONE_O',
'padi' => 'RHOPA',
'citrus' => 'ACYPI',
......@@ -18,7 +17,12 @@ $current_org = strtolower($feature->organism_id->genus . ' ' . $feature->organis
foreach ($orgs as $needle => $url_chunk) {
if (preg_match("/.*$needle.*/", $current_org) >= 1) {
$aphidcyc_url = str_replace('__species__', $url_chunk, $aphidcyc_url);
if ($needle == 'persicae' && preg_match('/G006/', $feature->analysisfeature[0]->analysis_id->name) >= 1) {
$aphidcyc_url = str_replace('__species__', 'MYZPE_CLONE_G006', $aphidcyc_url);
}
else {
$aphidcyc_url = str_replace('__species__', $url_chunk, $aphidcyc_url);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment