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
d24ec3a8
Commit
d24ec3a8
authored
15 years ago
by
William McLaren
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for NMD_TRANSCRIPT
parent
1b8a30b9
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/TranscriptAlleles.pm
+35
-24
35 additions, 24 deletions
modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
with
35 additions
and
24 deletions
modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
+
35
−
24
View file @
d24ec3a8
...
...
@@ -270,12 +270,6 @@ sub type_variation {
return
[]
;
}
# nonsense-mediated decay transcript
if
(
$tr
->
biotype
()
eq
'
nonsense_mediated_decay
')
{
$var
->
type
("
NMD_TRANSCRIPT
");
return
[
$var
];
}
if
(
!
$tr
->
translation
())
{
#for other biotype rather than coding/IG genes
# check if the variation is completely outside the transcript:
...
...
@@ -288,22 +282,27 @@ sub type_variation {
$var
->
type
(
(
$tr
->
strand
()
==
1
)
?
'
DOWNSTREAM
'
:
'
UPSTREAM
'
);
return
[
$var
];
}
if
(
$var
->
start
>=
$tr
->
start
()
and
$var
->
end
<=
$tr
->
end
())
{
#within the transcript
if
(
$tr
->
biotype
()
eq
"
miRNA
")
{
my
(
$attribute
)
=
@
{
$tr
->
get_all_Attributes
('
miRNA
')};
#the value is the mature miRNA coordinate within miRNA transcript
if
(
$attribute
->
value
=~
/(\d+)-(\d+)/
)
{
my
@mapper_objs
=
$tr
->
cdna2genomic
(
$
1
,
$
2
,
$tr
->
strand
);
#transfer cdna value to genomic coordinates
foreach
my
$obj
(
@mapper_objs
){
#Note you can get more than one mature seq per miRNA
if
(
$obj
->
isa
("
Bio::EnsEMBL::Mapper::Coordinate
")){
if
(
$var
->
start
>=
$obj
->
start
()
and
$var
->
end
<=
$obj
->
end
())
{
$var
->
type
("
WITHIN_MATURE_miRNA
");
return
[
$var
];
}
}
}
}
my
(
$attribute
)
=
@
{
$tr
->
get_all_Attributes
('
miRNA
')};
#the value is the mature miRNA coordinate within miRNA transcript
if
(
$attribute
->
value
=~
/(\d+)-(\d+)/
)
{
my
@mapper_objs
=
$tr
->
cdna2genomic
(
$
1
,
$
2
,
$tr
->
strand
);
#transfer cdna value to genomic coordinates
foreach
my
$obj
(
@mapper_objs
){
#Note you can get more than one mature seq per miRNA
if
(
$obj
->
isa
("
Bio::EnsEMBL::Mapper::Coordinate
")){
if
(
$var
->
start
>=
$obj
->
start
()
and
$var
->
end
<=
$obj
->
end
())
{
$var
->
type
("
WITHIN_MATURE_miRNA
");
return
[
$var
];
}
}
}
}
}
$var
->
type
("
WITHIN_NON_CODING_GENE
");
return
[
$var
];
}
...
...
@@ -409,6 +408,12 @@ sub type_variation {
$var
->
type
(
(
$tr
->
strand
()
==
1
)
?
'
DOWNSTREAM
'
:
'
UPSTREAM
'
);
return
[
$var
];
}
# nonsense-mediated decay transcript
if
(
$tr
->
biotype
()
eq
'
nonsense_mediated_decay
')
{
$var
->
type
("
NMD_TRANSCRIPT
");
return
[
$var
];
}
# variation must be intronic since mapped to cdna gap, but is within
# transcript, note that ESSENTIAL_SPLICE_SITE only consider first (AG) and last (GT) 2 bases inside the intron.
...
...
@@ -416,11 +421,11 @@ sub type_variation {
foreach
my
$intron
(
@
{
$tr
->
get_all_Introns
()})
{
if
(
$intron
->
length
<=
5
)
{
#the length of frameshift intron could be 1,2,4,5 bases
if
(
$var
->
start
>=
$intron
->
start
and
$var
->
end
<=
$intron
->
end
)
{
#this is a type of SYNONYMOUS_CODING since changes happen in frameshift intron, which don't change exon structure
$var
->
type
('
SYNONYMOUS_CODING
');
return
[
$var
];
}
if
(
$var
->
start
>=
$intron
->
start
and
$var
->
end
<=
$intron
->
end
)
{
#this is a type of SYNONYMOUS_CODING since changes happen in frameshift intron, which don't change exon structure
$var
->
type
('
SYNONYMOUS_CODING
');
return
[
$var
];
}
}
}
#if it's not in frameshift intron, then it's in normal intron
...
...
@@ -434,6 +439,12 @@ sub type_variation {
}
return
[
$var
];
}
# nonsense-mediated decay transcript
if
(
$tr
->
biotype
()
eq
'
nonsense_mediated_decay
')
{
$var
->
type
("
NMD_TRANSCRIPT
");
return
[
$var
];
}
#now variation must be in exons, the first 3 bs into exon could be splice_site
...
...
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