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

mcerasi

parent 63eec5d6
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ else if (preg_match('/pisum/', $current_org) >= 1 && preg_match('/NCBI/', $featu
}
else if ($feature->type_id->name == 'polypeptide') {
foreach ($feature->feature_relationship->subject_id as $rel) {
if ($rel->object_id->type_id->name == 'mRNA') {
if ($rel->object_id->type_id->name == 'mRNA' || $rel->object_id->type_id->name == 'transcript') {
$mrna_feat = chado_expand_var($rel->object_id, 'table', 'feature_relationship');
if (count($mrna_feat->feature_relationship->subject_id) == 0) {
......@@ -53,7 +53,7 @@ else if ($feature->type_id->name == 'polypeptide') {
}
}
}
else if ($feature->type_id->name == 'mRNA') {
else if ($feature->type_id->name == 'mRNA' || $feature->type_id->name == 'transcript') {
if (count($feature->feature_relationship->subject_id) == 0) {
// In some cases we might only have mRNA with no genes (brassica napus or transcriptomes)
$target_id = $feature->uniquename;
......
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