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
bbeb1814
Commit
bbeb1814
authored
19 years ago
by
Yuan Chen
Browse files
Options
Downloads
Patches
Plain Diff
check strand for REGULATORY_REGION as well
parent
9377daa0
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
+11
-8
11 additions, 8 deletions
modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
with
11 additions
and
8 deletions
modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
+
11
−
8
View file @
bbeb1814
...
...
@@ -42,11 +42,12 @@ use Bio::EnsEMBL::Utils::Exception qw(throw warning);
use
Bio::EnsEMBL::Variation::
ConsequenceType
;
use
vars
qw(@ISA @EXPORT_OK)
;
use
Data::
Dumper
;
@ISA
=
qw(Exporter)
;
@EXPORT_OK
=
qw(get_all_ConsequenceType type_variation)
;
use
Data::
Dumper
;
=head2 get_all_ConsequenceType
...
...
@@ -75,7 +76,7 @@ sub get_all_ConsequenceType {
throw
('
Bio::EnsEMBL::Transcript argument is required.
');
}
if
(
!
ref
(
$alleles
)
||
(
ref
(
$alleles
)
ne
'
ARRAY
')
{
if
(
!
ref
(
$alleles
)
||
(
ref
(
$alleles
)
ne
'
ARRAY
')
)
{
throw
('
Reference to a list of Bio::EnsEMBL::Variation::AlleleFeature objects is required
');
}
...
...
@@ -185,14 +186,16 @@ sub type_variation {
return
[]
;
}
my
@features
=
$tr
->
fetch_all_regulatory_features
();
my
@features
=
@
{
$tr
->
fetch_all_regulatory_features
()
}
;
#regulatory_features and consequence_type feature are all in genomic coordinates,
#so just to check whether they overlap with each other or not
foreach
my
$feature
(
@features
)
{
if
(
$var
->
end
>=
$feature
->
start
and
$var
->
start
<=
$feature
->
end
)
{
$var
->
regulatory_region
('
REGULATORY_REGION
');
last
;
#so just to check whether they overlap with each other or not also in same strand
if
(
@features
)
{
foreach
my
$feature
(
@features
)
{
if
(
$var
->
end
>=
$feature
->
start
and
$var
->
start
<=
$feature
->
end
and
$var
->
strand
==
$feature
->
strand
)
{
$var
->
regulatory_region
('
REGULATORY_REGION
');
last
;
}
}
}
...
...
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