$analysis_name .= l($a_name, "node/" . $analyses->analysis_id->nid) . "<bR>";
     }
 }
 // Source name comes under analysis
 if (isset($srcfeature[0]->analysis_id) && count($srcfeature[0]->analysis_id)) {
     $src_analysis = $srcfeature[0]->analysis_id;
     $a_name = $src_analysis->name;
     $analysis_name .= "Source: " . l($a_name, "node/" . $src_analysis->nid);
 }
 // Analysis row
 $rows[] = array(array('data' => 'Analysis', 'header' => TRUE), $analysis_name);
 //User comment - //type_id = 85 - note
 $featureprop_id = $feature->subject_id->feature_id;
 $select = array('feature_id' => $featureprop_id, 'type_id' => 85);
 $columns = array('value', 'feature_id');
 $featureprop = chado_select_record('featureprop', $columns, $select);
 $featureprop = array_reverse($featureprop);
 $user_comment = '';
 $user_i = 0;
 foreach ($featureprop as $prop_obj) {
     if (!empty($prop_obj->value)) {
         $user_i == 0 ? $user_comment .= 'Note: ' : '';
         $user_comment .= $prop_obj->value . "; ";
         $user_i++;
     }
 }
 $user_comment = rtrim($user_comment, '; ');
 // User Submitted info row
 $rows[] = array(array('data' => 'Annotator Comments', 'header' => TRUE), $user_comment);
 $table = array('header' => $headers, 'rows' => $rows, 'attributes' => array('id' => 'tripal_feature-detail-transcript', 'class' => 'tripal-data-table'), 'sticky' => FALSE, 'caption' => '', 'colgroups' => array(), 'empty' => '');
 //Details
//VIJAYA - To display the comments (Note) of all mRNA's, rRNA etc., and transcripts
$relationship = tripal_feature_get_feature_relationships($feature);
//Display transcript feature(s) count like rRNA, mRNA etc., data dynamically..
$transcript_count = '';
if (isset($relationship['object']['part of'])) {
    foreach ($relationship['object']['part of'] as $key => $relationship_obj) {
        // if(isset($relationship_obj)) {
        $transcript_count = "<div id='transcript_item'><div id='transcript_value'>This gene contains&nbsp;</div><div class='tripal_toc_list_item'><a id='transcripts' class='tripal_toc_list_item_link' href='?pane=transcripts' >" . count($relationship_obj);
        $transcript_count .= count($relationship_obj) > 1 ? " " . $key . "s</a></div></div>" : " " . $key . "</a></div></div>";
        // }
        //Comment(s)
        $comment = "None";
        //type_id = 85 means a comment. "Note" value in field "name".
        $gene_select = array('feature_id' => $feature->feature_id, 'type_id' => 85);
        $gene_columns = array('value', 'feature_id');
        $gene_featureprop = chado_select_record('featureprop', $gene_columns, $gene_select);
        if (isset($gene_featureprop) && !empty($gene_featureprop)) {
            $i = 0;
            $comment = "";
            foreach ($gene_featureprop as $key => $gene_propobj) {
                $i == 0 ? $user_comment .= 'Note: ' : '';
                $comment .= $gene_propobj->value . "; ";
                $i++;
            }
            $comment = rtrim($comment, '; ');
        }
    }
}
// if closing
//VIJAYA gene_var variable is used to differentiate the gene and mRNA pages
$gene_var = array('gene', 'pseudogene');