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
0363dcca
Commit
0363dcca
authored
15 years ago
by
Steve Trevanion
Browse files
Options
Downloads
Patches
Plain Diff
tidier, plus can have no attributes
parent
c5f3a328
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Utils/VegaCuration/Translation.pm
+41
-18
41 additions, 18 deletions
modules/Bio/EnsEMBL/Utils/VegaCuration/Translation.pm
with
41 additions
and
18 deletions
modules/Bio/EnsEMBL/Utils/VegaCuration/Translation.pm
+
41
−
18
View file @
0363dcca
...
...
@@ -127,10 +127,13 @@ sub check_CDS_start_end_remarks_loutre {
foreach
my
$attribute
(
@
{
$trans
->
get_all_Attributes
()})
{
$attributes
{
$attribute
->
code
}
=
$attribute
;
}
# warn $trans->stable_id;
# warn Data::Dumper::Dumper(\%attributes);
my
$coding_end
=
$trans
->
cdna_coding_end
;
my
$coding_start
=
$trans
->
cdna_coding_start
;
my
$trans_end
=
$trans
->
length
;
my
$trans_seq
=
$trans
->
seq
->
seq
;
my
$stop_codon_offset
=
3
+
$trans
->
translation
->
end_Exon
->
end_phase
;
my
$stop_codon
=
substr
(
$trans_seq
,
$coding_end
-
3
,
3
);
my
$start_codon
=
substr
(
$trans_seq
,
$coding_start
-
1
,
3
);
...
...
@@ -138,37 +141,49 @@ sub check_CDS_start_end_remarks_loutre {
my
$results
;
#extra CDS end not found remarks
if
(
(
$attributes
{'
cds_end_NF
'}
->
value
==
1
)
&&
(
$coding_end
!=
$trans_end
)
if
(
$attributes
{'
cds_end_NF
'})
{
if
(
(
$attributes
{'
cds_end_NF
'}
->
value
==
1
)
&&
(
$coding_end
!=
$trans_end
)
&&
(
grep
{
$_
eq
$stop_codon
}
@stops
)
)
{
$results
->
{'
END_EXTRA
'}
=
1
;
# warn $trans->stable_id.": $coding_end--$trans_end--$stop_codon";
# warn $trans->translation->end_Exon->end_phase;
$results
->
{'
END_EXTRA
'}
=
$stop_codon1
;
}
}
#missing CDS end not found remark
if
(
$coding_end
==
$trans_end
)
{
if
(
$attributes
{'
cds_end_NF
'}
->
value
==
0
)
{
if
(
grep
{
$_
eq
$stop_codon
}
@stops
)
{
$results
->
{'
END_MISSING_2
'}
=
1
;
}
else
{
$results
->
{'
END_MISSING_1
'}
=
$stop_codon
;
if
(
$attributes
{'
cds_end_NF
'})
{
if
(
$attributes
{'
cds_end_NF
'}
->
value
==
0
)
{
if
(
!
grep
{
$_
eq
$stop_codon
}
@stops
)
{
# warn $trans->stable_id.": $coding_end--$trans_end--$stop_codon";
# warn $trans->translation->end_Exon->end_phase;
$results
->
{'
END_MISSING
'}{'
WRONG
'}
=
$stop_codon
;
}
}
}
elsif
(
!
grep
{
$_
eq
$stop_codon
}
@stops
)
{
$results
->
{'
END_MISSING
'}{'
ABSENT
'}
=
$stop_codon
;
}
}
#extra CDS start not found remark
if
(
(
$attributes
{'
cds_start_NF
'}
->
value
==
1
)
&&
(
$coding_start
!
=
1
)
#extra CDS start not found remark
if
(
$attributes
{'
cds_start_NF
'}
)
{
if
(
(
$attributes
{'
cds_start_NF
'}
->
value
=
=
1
)
&&
(
$start_codon
eq
'
ATG
')
)
{
$results
->
{'
START_EXTRA
'}
=
1
;
$results
->
{'
START_EXTRA
'}
=
$start_codon
;
}
}
#missing CDS start not found remark
if
(
$coding_start
==
1
)
{
if
(
$attributes
{'
cds_start_NF
'}
->
value
==
0
)
{
if
(
$start_codon
eq
'
ATG
'
)
{
$results
->
{'
START_MISSING_2
'}
=
1
;
}
else
{
$results
->
{'
START_MISSING_1
'}
=
$start_codon
;
if
(
$attributes
{'
cds_start_NF
'}
)
{
if
(
$attributes
{'
cds_start_NF
'}
->
value
==
0
)
{
if
(
$start_codon
ne
'
ATG
')
{
$results
->
{'
START_MISSING
'}{'
WRONG
'}
=
$start_codon
;
}
}
}
elsif
(
$start_codon
ne
'
ATG
')
{
$results
->
{'
START_MISSING
'}{'
ABSENT
'}
=
$start_codon
;
}
}
return
$results
;
}
...
...
@@ -206,6 +221,14 @@ sub check_for_stops {
my
$tsi
=
$trans
->
stable_id
;
my
$tID
=
$trans
->
dbID
;
my
$tname
=
$trans
->
get_all_Attributes
('
name
')
->
[
0
]
->
value
;
foreach
my
$rem
(
@
{
$trans
->
get_all_Attributes
('
hidden_remark
')})
{
if
(
$rem
->
value
=~
/not_for_Vega/
)
{
$support
->
log_verbose
("
Skipping transcript
$tname
(
$tsi
) since 'not_for_Vega'
\n
",
1
);
next
TRANS
;
}
}
$support
->
log_verbose
("
Studying transcript
$tsi
(
$tname
,
$tID
)
\n
",
1
);
my
$peptide
;
...
...
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