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
38b174bd
Commit
38b174bd
authored
21 years ago
by
Brian Gibbins
Browse files
Options
Downloads
Patches
Plain Diff
flush transcript before transform
parent
fc8cbda6
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/Transcript.pm
+7
-13
7 additions, 13 deletions
modules/Bio/EnsEMBL/Transcript.pm
with
7 additions
and
13 deletions
modules/Bio/EnsEMBL/Transcript.pm
+
7
−
13
View file @
38b174bd
...
...
@@ -897,11 +897,11 @@ sub get_all_SNPs {
my
$trans_start
=
$flanking
+
1
;
my
$trans_end
=
$slice
->
length
-
$flanking
;
my
$trans_strand
=
$transcript
->
get_all_Exons
->
[
0
]
->
strand
;
warn
("
TRANS_S:
$trans_strand
\t
TRANS_ST:
"
.
$transcript
->
coding_region_start
.
"
\t
TRANS_EN:
"
.
$transcript
->
coding_region_end
.
"
\n
");
#classify each snp
foreach
my
$snp
(
@$snps
)
{
my
$key
;
warn
("
SNP_ST:
"
.
$snp
->
start
.
"
\t
SNP_EN:
"
.
$snp
->
end
.
"
\n
");
if
((
$trans_strand
==
1
&&
$snp
->
end
<
$trans_start
)
||
(
$trans_strand
==
-
1
&&
$snp
->
start
>
$trans_end
))
{
#this snp is upstream from the transcript
...
...
@@ -1012,7 +1012,7 @@ sub get_all_cdna_SNPs {
foreach
my
$type
(
@cdna_types
)
{
$snp_hash
{
$type
}
=
[]
;
foreach
my
$snp
(
@
{
$all_snps
->
{
$type
}})
{
my
@coords
=
my
@coords
=
$transcript
->
genomic2cdna
(
$snp
->
start
,
$snp
->
end
,
$snp
->
strand
,
...
...
@@ -1068,6 +1068,7 @@ sub flush_Exons{
$self
->
{'
_start
'}
=
undef
;
$self
->
{'
_end
'}
=
undef
;
$self
->
{'
_strand
'}
=
undef
;
$self
->
{'
_exon_coord_mapper
'}
=
undef
;
$self
->
{'
_trans_exon_array
'}
=
[]
;
}
...
...
@@ -1780,8 +1781,8 @@ sub transform {
}
}
#
flush the
old list of exon
s
$self
->
{'
_trans_exon_array
'}
=
[]
;
#flush the
exons and all related internal cache
s
$self
->
flush_Exons
()
;
# attach the new list of exons to the transcript
push
@
{
$self
->
{'
_trans_exon_array
'}},
@mapped_list_of_exons
;
...
...
@@ -1789,14 +1790,6 @@ sub transform {
if
(
defined
$self
->
{'
translation
'}
)
{
$self
->
translation
->
transform
(
$href_exons
);
}
#invalidate the current start, end, strand - they need to be recalculated
$self
->
{'
_start
'}
=
undef
;
$self
->
{'
_end
'}
=
undef
;
$self
->
{'
_strand
'}
=
undef
;
$self
->
{'
_exon_coord_mapper
'}
=
undef
;
$self
->
{'
coding_start
'}
=
undef
;
$self
->
{'
coding_end
'}
=
undef
;
}
...
...
@@ -1843,4 +1836,5 @@ sub coding_end {
1
;
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