|
@@ -72,8 +72,18 @@ class data__sequence_features_formatter extends ChadoFieldFormatter {
|
|
$sequence = $entity->data__sequence['und'][0]['value'];
|
|
$sequence = $entity->data__sequence['und'][0]['value'];
|
|
|
|
|
|
if (!$sequence) {
|
|
if (!$sequence) {
|
|
- // We can't draw without a sequence unfortunately.
|
|
|
|
- return;
|
|
|
|
|
|
+
|
|
|
|
+ $length = $entity->data__sequence_length['und'][0]['value'];
|
|
|
|
+ if (!$length) {
|
|
|
|
+ $length = '5000';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $sequence = '';
|
|
|
|
+ $i = 0;
|
|
|
|
+ while ($i < $length) {
|
|
|
|
+ $sequence .= 'N';
|
|
|
|
+ $i++;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
$coordinates = $entity->data__sequence_coordinates['und'][0]['value'];
|
|
$coordinates = $entity->data__sequence_coordinates['und'][0]['value'];
|