Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
928fa908
Commit
928fa908
authored
11 years ago
by
Alessandro Vullo
Browse files
Options
Downloads
Patches
Plain Diff
Correct use of transcript attributes
parent
f108efe5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Utils/IO/GTFSerializer.pm
+15
-16
15 additions, 16 deletions
modules/Bio/EnsEMBL/Utils/IO/GTFSerializer.pm
with
15 additions
and
16 deletions
modules/Bio/EnsEMBL/Utils/IO/GTFSerializer.pm
+
15
−
16
View file @
928fa908
...
...
@@ -389,11 +389,11 @@ sub _check_start_and_stop {
# transcript could be annotated has having incomplete
# CDS at either 5', 3' end or both
#
my @attrib = @{$trans->get_all_Attributes('cds_start_NF')};
#
$has_start = scalar @attrib == 1 and $attrib[0]->value() == 1?0:1;
#
@attrib = @{$trans->get_all_Attributes('cds_end_NF')};
#
$has_end = scalar @attrib == 1 and $attrib[0]->value() == 1?0:1;
#
return (0, 0) unless $has_start and $has_end;
my
@attrib
=
@
{
$trans
->
get_all_Attributes
('
cds_start_NF
')};
$has_start
=
(
scalar
@attrib
==
1
and
$attrib
[
0
]
->
value
()
==
1
)
?
0
:
1
;
@attrib
=
@
{
$trans
->
get_all_Attributes
('
cds_end_NF
')};
$has_end
=
(
scalar
@attrib
==
1
and
$attrib
[
0
]
->
value
()
==
1
)
?
0
:
1
;
return
(
0
,
0
)
unless
$has_start
and
$has_end
;
#
# even if the transcript is not annotated with incomplete start/end
...
...
@@ -402,19 +402,18 @@ sub _check_start_and_stop {
# use translateable_seq (CDS) instead of spliced_seq (CDNA) which is
# not padded for non-triplet issues
#
#
my $cds_seq = uc($trans->translateable_seq);
# my $
startseq = substr($cds_seq, 0, 3);
# my $
endseq = substr($cds_seq, -3);
$has_start
=
$has_end
=
1
;
my
$
coding_start
=
$trans
->
cdna_coding_start
;
my
$coding_end
=
$trans
->
cdna_coding_end
;
my
$cd
na
_seq
=
uc
(
$trans
->
spliced
_seq
);
my
$startseq
=
substr
(
$cd
na
_seq
,
$coding_start
-
1
,
3
);
my
$endseq
=
substr
(
$cd
na
_seq
,
$coding_end
-
3
,
3
);
#
$has_start = $has_end = 1;
# my $
coding_start = $trans->cdna_coding_start;
# my $
coding_end = $trans->cdna_coding_end;
# my $cdna_seq = uc($trans->spliced_seq);
# my $startseq = substr($cdna_seq, $coding_start-1, 3)
;
#
my $
endseq = substr($cdna_seq, $coding_end-3, 3)
;
#
my
$cd
s
_seq
=
uc
(
$trans
->
translateable
_seq
);
my
$startseq
=
substr
(
$cd
s
_seq
,
0
,
3
);
my
$endseq
=
substr
(
$cd
s
_seq
,
-
3
);
# reimplemented since there are alternatively valid codon tables
# $has_start = $has_end = 1;
# $has_start = 0 if ($startseq ne "ATG");
# $has_end = 0 if ($endseq ne "TAG" && $endseq ne "TGA" && $endseq ne "TAA");
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment