8 use SGN::View::Feature 'mrna_cds_protein_sequence';
11 #my $reference = $featurelocs ? $featurelocs->single->srcfeature : undef ;
12 #getting only for primary featureloc
13 my $reference = $featurelocs ? $featurelocs->search({locgroup => 0,},)->single()->srcfeature() : undef ;
14 my @mrnas = grep $_->type->name eq 'mRNA', $feature->child_features;
15 my $current_loc = $featurelocs ? $featurelocs->search({locgroup => 0,},)->single() : undef ;
18 <& /feature/page_title.mas, feature => $feature &>
20 <&| /page/info_section.mas,
22 subtitle => $feature->is_obsolete ? 'WARNING: This feature is obsolete, new data is available.' : '',
25 <& /feature/feature_data.mas,
27 description_from => \@mrnas,
28 featurelocs => $featurelocs,
31 <& /feature/properties.mas,
37 <&| /page/info_section.mas,
38 title => 'Genome Viewer',
42 <& /feature/jbrowse_exact_match.mas, feature => $feature , src_feature => $reference &>
47 <&| /page/info_section.mas,
48 title => 'Related features',
51 <& /feature/related_features.mas,
52 reference => $reference,
54 omit_columns => ['organism'],
60 <&| /page/info_section.mas,
61 title => 'Genomic sequence',
62 subtitle => 'unprocessed genomic sequence region underlying this gene',
63 empty_message => 'Not available',
68 <& /feature/region_sequence.mas,
70 blast_url => $blast_url,
75 % for my $mrna ( @mrnas ) {
77 <&| /page/info_section.mas,
78 title => 'mRNA '. $mrna->name,
82 <&| /page/info_section.mas,
83 title => 'Ontology terms',
84 subtitle => 'terms associated with this mRNA',
89 <& /feature/feature_cvterms.mas,
95 % my ( $mrna_sequence, $cds_sequence, $protein_sequence ) = @{(mrna_cds_protein_sequence( $mrna ))[0] || [] };
97 <&| /page/info_section.mas,
98 title => 'cDNA sequence',
100 subtitle => 'spliced cDNA sequence, including UTRs',
101 empty_message => 'Not available',
106 % if( $mrna_sequence ) {
108 <div style="margin-left: 3em">
109 <& /sequence/with_markup.mas,
110 seq => $mrna_sequence,
113 blast_url => $blast_url,
116 <div style="margin-top: 1em">
117 <& /feature/sequence_download.mas,
125 <&| /page/info_section.mas,
126 title => 'Protein sequence',
128 subtitle => 'translated polypeptide sequence',
129 empty_message => 'Not available',
134 % if( $protein_sequence ) {
136 <div style="margin-left: 3em">
137 <& /sequence/with_markup.mas,
138 seq => $protein_sequence,
141 blast_url => $blast_url,
144 % if( $protein_sequence->can('feature_id') ) {
145 <div style="margin-top: 1em">
146 <& /feature/sequence_download.mas,
147 feature => $protein_sequence,
155 <&| /page/info_section.mas,
156 title => 'Related features',
161 <& /feature/related_features.mas,
163 omit_columns => ['organism'],
171 <&| /page/info_section.mas,
172 title => 'Related views',
175 <& /sitefeatures/mixed/xref_set/link.mas,
177 exclude => 'gbrowse2',