body becomes $body. When needing to * access a field's raw values, developers/themers are strongly encouraged to * use these variables. Otherwise they will have to explicitly specify the * desired field language; for example, $node->body['en'], thus overriding any * language negotiation rule that was previously applied. * * @see template_preprocess() * @see template_preprocess_node() * @see template_process() * * @ingroup themeable */ ?> "; print_r($node); exit(); $symbol = ''; if(isset($node->field_gene_symbol['und'][0]['value'])){ $symbol = $node->field_gene_symbol['und'][0]['value']; //echo "
"; print_r($symbol); exit();
  } else {
    $symbol = "N/A";
  }
  $name = '';
  if(isset($node->field_gene_name['und'][0]['value']) && $node->field_gene_name['und'][0]['value'] != ''){
    $name = $node->field_gene_name['und'][0]['value'];
  } else {
    $name = "N/A";
  }
  $id = '';
  if(isset($node->field_gene_id['und'][0]['value'])){
    $id = $node->field_gene_id['und'][0]['value'];
  } else {
    $id = "N/A";
  }
  // return_homolog_array($node->field_gene_id['und'][0]['value'], $node->field_ref_species['und'][0]['target_id'], $node->field_synonyms);

  // echo'
';var_dump($node->field_gene_id['und'][0]['value']);exit;
  // echo'
';var_dump($node->field_ref_species['und'][0]['target_id']);exit;


?> 

Gene: | |

uid ) { echo l('Edit Gene', "node/$node->nid/edit/gene", [ 'attributes' => [ // 'class' => [ // 'edit-button' // ] ], 'query' => [ 'gene' => $node->nid, ], ]); } else { echo l('Edit Gene', "$base_path/user", [ 'attributes' => [ // 'class' => [ // 'edit-button' // ] ], // 'query' => [ // 'gene' => $node->nid, // ], ]); } ?> | [ // 'class' => [ // 'edit-button' // ] ], 'query' => [ 'gene' => $node->nid, ], ]); ?> | Add Comment

GENE SYMBOL:

field_gene_symbol['und'][0]['value'])){ echo $node->field_gene_symbol['und'][0]['value'];} else{ echo "N/A"; } ?>

GENE NAME:

field_gene_name['und'][0]['value']) && $node->field_gene_name['und'][0]['value'] != ''){ echo $node->field_gene_name['und'][0]['value'];} else { echo "N/A"; } ?>

GENE ID:

field_gene_id['und'][0]['value'])){ echo $node->field_gene_id['und'][0]['value'];} else{ echo "N/A"; } ?>

GENE TYPE:

field_gene_type['und'][0]['tid'])){ echo $node->field_gene_type['und'][0]['taxonomy_term']->name;} else{ echo "N/A"; } ?>

SPECIES:

field_ref_species['und'][0]['entity']->title)){ echo return_species_link($node); } else{ echo "N/A"; } ?>

SYNONYMS:

GENE LOCATION:

SUMMARY:

body['und'][0]['value'])){ echo $node->body['und'][0]['summary'];} else{ echo "N/A"; } ?>

DESCRIPTION:

body['und'][0]['value'])){ echo $node->body['und'][0]['value'];} else{ echo "N/A"; } ?>

PHENOTYPE:

DATA SOURCE:

field_data_source['und'][0]['value']; //echo "

"; print_r($fc_id);exit();
            $fc = field_collection_item_load($fc_id);
            //echo "
"; print_r($fc);exit();
            if(! (return_data_source_fc($node))){ 
              if($fc->field_source_name['und'][0]['tid'] == 2345){
                $ob_id = $fc->field_object_id[LANGUAGE_NONE][0]['value'];
                $node_bilio = node_load($ob_id);
                $node_view = node_view($node_bilio,'teaser');
                $rendered_node = drupal_render($node_view);
                echo $rendered_node;
              }else{
                echo return_data_source_fc($node);                
              }
            } else{ 
              echo "N/A"; 
            } ?>

"; print_r($node->field_publication); exit(); /*$Publication = 0; foreach ($node->field_publication['und'] as $value) { // echo 'keyss'; print_r($key); // echo "
"; print_r($value); 
              //print_r($node->field_publication['und'][$Publication]['entity']->nid);
              if(!empty($node->field_publication['und'][$Publication]['entity']->nid)){
                $biblio_nid = $node->field_publication['und'][$Publication]['entity']->nid;
                $node_bilio = node_load($biblio_nid);
                $node_view = node_view($node_bilio,'teaser');
                $rendered_node = drupal_render($node_view);
                echo $rendered_node;
              }else{
                 echo "N/A";          
              }
              $Publication++;
            }*/
            // if(isset($node->field_publication['und'][0]['entity']->nid)){ echo $node->field_publication['und'][0]['entity']->title; } else{ echo "N/A"; } 
            ?>
              
            
            
          

Ontology Summary

[ // 'class' => [ // 'edit-button' // ] ], 'query' => [ 'gene' => $node->nid, ], ]); ?>

Latest annotations for this gene

Paralogous Genes

  1. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  2. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  3. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  4. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  5. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  6. ...View all homologs

Orthologous Genes

  1. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  2. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  3. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  4. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  5. Gene Name | Gene Symbol

    genelinkname.com/1/234/567
  6. ...View all homologs

Annotations

nid); ?>

Publications

"; print_r($node->field_publication); exit(); $Publication = 0; foreach ($node->field_publication['und'] as $value) { // echo 'keyss'; print_r($key); // echo "
"; print_r($value); 
              //print_r($node->field_publication['und'][$Publication]['entity']->nid);
              if(!empty($node->field_publication['und'][$Publication]['entity']->nid)){
                $biblio_nid = $node->field_publication['und'][$Publication]['entity']->nid;
                $node_bilio = node_load($biblio_nid);
                $node_view = node_view($node_bilio,'teaser');
                $rendered_node = drupal_render($node_view);
                echo $rendered_node;
              }else{
                 echo "N/A";          
              }
              $Publication++;
            }
            // if(isset($node->field_publication['und'][0]['entity']->nid)){ echo $node->field_publication['und'][0]['entity']->title; } else{ echo "N/A"; } 
          ?>