| | 57 | ACT_SITE => "red", |
| | 58 | METAL => "gold", |
| | 59 | MOTIF => "green", |
| | 60 | PROPEP => "azure", |
| | 61 | HELIX => "red", |
| | 62 | MOD_RES => "darkolivegreen", |
| | 63 | MUTAGEN => "deeppink", |
| | 64 | CARBOHYD => "greenyellow", |
| | 65 | SITE => "maroon", |
| | 66 | STRAND => "gold", |
| | 67 | TURN => "mediumslateblue", |
| | 68 | BINDING => "slateblue", |
| | 69 | gene => "red", |
| | 70 | polyA_signal => "fuchsia", |
| | 71 | repeat_region => "green", |
| | 72 | ncRNA => "blueviolet", |
| | 73 | rep_origin => "mediumspringgreen", |
| | 74 | variation => "yellow", |
| | 75 | alpha_helix => "red", |
| | 76 | beta_strand => "yellow", |
| | 77 | transmembrane_region => "crimson", |
| | 78 | cytoplasmic_region => "mediumblue", |
| | 79 | non_cytoplasmic_region => "lightskyblue", |
| | 80 | coiled_coil => "olivedrab", |
| | 81 | peptide_coil => "aliceblue", |
| | 82 | signal_peptide => "gold", |
| 98 | | Prosite_pattern => \&hit_id_description, |
| 99 | | PROSITE => \&hit_id_description, |
| 100 | | Prosite => \&hit_id_description, |
| | 128 | Prosite_pattern => \&hit_id_description, |
| | 129 | PROSITE => \&hit_id_description, |
| | 130 | Prosite => \&hit_id_description, |
| | 144 | ACT_SITE => \&description, |
| | 145 | METAL => \&description, |
| | 146 | MOTIF => \&description, |
| | 147 | PROPEP => \&description, |
| | 148 | HELIX => \&description, |
| | 149 | MOD_RES => \&description, |
| | 150 | MUTAGEN => \&description, |
| | 151 | CARBOHYD => \&description, |
| | 152 | SITE => \&description, |
| | 153 | STRAND => \&description, |
| | 154 | TURN => \&description, |
| | 155 | BINDING => \&description, |
| | 156 | gene => \&ft_gene_description, |
| | 157 | polyA_signal => \&ft_note_gene, |
| | 158 | repeat_region => \&ft_note_rpt_type, |
| | 159 | ncRNA => \&ft_note_gene, |
| | 160 | rep_origin => \¬e_description, |
| | 161 | variation => \¬e_description, |
| | 433 | sub ft_note_rpt_type { |
| | 434 | my $feature = shift; |
| | 435 | my @notes1; |
| | 436 | my @notes2; |
| | 437 | my @notes3; |
| | 438 | foreach (qw(note)) { |
| | 439 | @notes1 = eval{$feature->get_tag_values($_)}; |
| | 440 | last; |
| | 441 | } |
| | 442 | foreach (qw(experiment)) { |
| | 443 | @notes2 = eval{$feature->get_tag_values($_)}; |
| | 444 | last; |
| | 445 | } |
| | 446 | foreach (qw(rpt_type)) { |
| | 447 | @notes3 = eval{$feature->get_tag_values($_)}; |
| | 448 | last; |
| | 449 | } |
| | 450 | my $note1 = ''; |
| | 451 | my $note2 = ''; |
| | 452 | my $note3 = ''; |
| | 453 | my $note1 = 'note: '.$notes1[0] if length $notes1[0] > 1; |
| | 454 | my $note1 = 'note: '.$notes2[0] if length $notes2[0] > 1; |
| | 455 | my $note2 = 'rpt_type: '.$notes3[0] if length $notes3[0] > 1; |
| | 456 | my $note = $note1 . " " . $note2; |
| | 457 | return unless $note; |
| | 458 | substr($note,120) = '...' if length $note > 120; |
| | 459 | $note; |
| | 460 | } |
| | 461 | |