|
@@ -294,9 +294,9 @@ function tripal_chado_bundle_fields_info_custom(&$info, $details, $entity_type,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
- // PROTEIN SEQUENCE
|
|
|
|
|
|
+ // PROTEIN & CDS SEQUENCE
|
|
if ($table_name == 'feature' and
|
|
if ($table_name == 'feature' and
|
|
- ($bundle->label == 'mRNA' or $bundle->label == 'transcript' or $bundle->label == 'gene')) {
|
|
|
|
|
|
+ ($bundle->label == 'mRNA' or $bundle->label == 'transcript')) {
|
|
$field_name = 'data__protein_sequence';
|
|
$field_name = 'data__protein_sequence';
|
|
$field_type = 'data__protein_sequence';
|
|
$field_type = 'data__protein_sequence';
|
|
$info[$field_name] = array(
|
|
$info[$field_name] = array(
|
|
@@ -308,6 +308,18 @@ function tripal_chado_bundle_fields_info_custom(&$info, $details, $entity_type,
|
|
'type' => 'field_chado_storage',
|
|
'type' => 'field_chado_storage',
|
|
),
|
|
),
|
|
);
|
|
);
|
|
|
|
+
|
|
|
|
+ $field_name = 'so__cds';
|
|
|
|
+ $field_type = 'so__cds';
|
|
|
|
+ $info[$field_name] = array(
|
|
|
|
+ 'field_name' => $field_name,
|
|
|
|
+ 'type' => $field_type,
|
|
|
|
+ 'cardinality' => 1,
|
|
|
|
+ 'locked' => FALSE,
|
|
|
|
+ 'storage' => array(
|
|
|
|
+ 'type' => 'field_chado_storage',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
}
|
|
}
|
|
|
|
|
|
// GENE TRANSCRIPTS
|
|
// GENE TRANSCRIPTS
|
|
@@ -1118,9 +1130,9 @@ function tripal_chado_bundle_instances_info_custom(&$info, $entity_type, $bundle
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
- // PROTEIN SEQUENCES.
|
|
|
|
|
|
+ // PROTEIN & CDS SEQUENCES.
|
|
if ($table_name == 'feature' and
|
|
if ($table_name == 'feature' and
|
|
- ($bundle->label == 'mRNA' or $bundle->label == 'transcript' or $bundle->label == 'gene')) {
|
|
|
|
|
|
+ ($bundle->label == 'mRNA' or $bundle->label == 'transcript')) {
|
|
$field_name = 'data__protein_sequence';
|
|
$field_name = 'data__protein_sequence';
|
|
$info[$field_name] = array(
|
|
$info[$field_name] = array(
|
|
'field_name' => $field_name,
|
|
'field_name' => $field_name,
|
|
@@ -1149,6 +1161,35 @@ function tripal_chado_bundle_instances_info_custom(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
);
|
|
|
|
+
|
|
|
|
+ $field_name = 'so__cds';
|
|
|
|
+ $info[$field_name] = array(
|
|
|
|
+ 'field_name' => $field_name,
|
|
|
|
+ 'entity_type' => $entity_type,
|
|
|
|
+ 'bundle' => $bundle->name,
|
|
|
|
+ 'label' => 'Coding Sequence',
|
|
|
|
+ 'description' => 'Coding sequences.',
|
|
|
|
+ 'required' => FALSE,
|
|
|
|
+ 'settings' => array(
|
|
|
|
+ 'auto_attach' => FALSE,
|
|
|
|
+ 'chado_table' => 'featureloc',
|
|
|
|
+ 'chado_column' => '',
|
|
|
|
+ 'base_table' => 'featureloc',
|
|
|
|
+ ),
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'type' => 'so__cds_widget',
|
|
|
|
+ 'settings' => array(
|
|
|
|
+ 'display_label' => 1,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'display' => array(
|
|
|
|
+ 'default' => array(
|
|
|
|
+ 'label' => 'above',
|
|
|
|
+ 'type' => 'so__cds_formatter',
|
|
|
|
+ 'settings' => array(),
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1345,7 +1386,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'above',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'local__contact_formatter',
|
|
'type' => 'local__contact_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1380,7 +1421,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'inline',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'sbo__database_cross_reference_formatter',
|
|
'type' => 'sbo__database_cross_reference_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1452,7 +1493,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'above',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'data__sequence_coordinates_formatter',
|
|
'type' => 'data__sequence_coordinates_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1486,7 +1527,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'above',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'ogi__location_on_map_formatter',
|
|
'type' => 'ogi__location_on_map_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1521,7 +1562,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'above',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'so__genotype_formatter',
|
|
'type' => 'so__genotype_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1556,7 +1597,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'above',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'sbo__phenotype_formatter',
|
|
'type' => 'sbo__phenotype_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1626,7 +1667,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'inline',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'chado_linker__prop_formatter',
|
|
'type' => 'chado_linker__prop_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1663,7 +1704,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'above',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'schema__publication_formatter',
|
|
'type' => 'schema__publication_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1699,7 +1740,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'above',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'sio__references_formatter',
|
|
'type' => 'sio__references_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1735,7 +1776,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'above',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'sbo__relationship_formatter',
|
|
'type' => 'sbo__relationship_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|
|
@@ -1770,7 +1811,7 @@ function tripal_chado_bundle_instances_info_linker(&$info, $entity_type, $bundle
|
|
),
|
|
),
|
|
'display' => array(
|
|
'display' => array(
|
|
'default' => array(
|
|
'default' => array(
|
|
- 'label' => 'inline',
|
|
|
|
|
|
+ 'label' => 'hidden',
|
|
'type' => 'schema__alternate_name_formatter',
|
|
'type' => 'schema__alternate_name_formatter',
|
|
'settings' => array(),
|
|
'settings' => array(),
|
|
),
|
|
),
|