feature;
// expand the feature object to include the featureloc records.  there are
// two foreign key relationships with featureloc and feature (srcefeature_id and
// feature_id).  This will expand both
$feature = tripal_core_expand_chado_vars($feature,'table','featureloc');
// get the featurelocs. if only one featureloc exists then we want to convert
// the object into an array, otherwise the value is an array
$ffeaturelocs = $feature->featureloc->feature_id;
if (!$ffeaturelocs) {
   $ffeaturelocs = array();
} elseif (!is_array($ffeaturelocs)) { 
   $ffeaturelocs = array($ffeaturelocs); 
}
$sfeaturelocs = $feature->featureloc->srcfeature_id;
if (!$sfeaturelocs) {
   $sfeaturelocs = array();
} elseif (!is_array($sfeaturelocs)) { 
   $sfeaturelocs = array($sfeaturelocs); 
}
?>
  Alignments
  name;?> is aligined to the following
   0){ ?>
  
    
      | Name | Type | Location | Phase | Direction | 
    srcfeature_id->name .":". ($featureloc->fmin + 1) . ".." . $featureloc->fmax;
         if($featureloc->srcfeature_id->nid){
           $location = "srcfeature_id->nid) . "\">".$featureloc->srcfeature_id->name .":".($featureloc->fmin + 1) . ".." . $featureloc->fmax ."";
         }
         ?>
         
           | feature_id->name;?> | feature_id->type_id->name ?> |  | phase ?> | strand == -1){
                 print "reverse";
              } 
              elseif($featureloc->strand == 1){
                 print "forward";
              } 
              elseif($featureloc->strand == 0){
                 print "N/A";
              } 
              else {
                 print $featureloc->strand;
              }?> | 
         
    
  
    There are no alignments
 
  
  The following are aligned to name;?>
   0){ ?>
  
    
      | Name | Type | Location | Phase | Direction | 
    srcfeature_id->name .":". ($featureloc->fmin + 1) . ".." . $featureloc->fmax;
         ?>
         
           | feature_id->nid){
                 print "feature_id->nid) . "\">".$featureloc->feature_id->name."";
              } else {
                 print $featureloc->feature_id->name;
              }?> | feature_id->type_id->name ?> |  | phase ?> | strand == -1){
                 print "reverse";
              } 
              elseif($featureloc->strand == 1){
                 print "forward";
              } 
              elseif($featureloc->strand == 0){
                 print "N/A";
              } 
              else {
                 print $featureloc->strand;
              }?> | 
         
    
  
    There are no alignments