Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
52b6acec
Commit
52b6acec
authored
Jan 29, 2008
by
Daniel Rios
Browse files
modified to use funcgen database to calculate snps in regulatory regions
parent
bbb81025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
+9
-4
No files found.
modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
View file @
52b6acec
...
@@ -268,14 +268,19 @@ sub type_variation {
...
@@ -268,14 +268,19 @@ sub type_variation {
# }
# }
# }
# }
if
(
$tr
and
ref
(
$tr
)
and
$tr
->
isa
('
Bio::EnsEMBL::Transcripts
'))
{
foreach
my
$rf
(
@
{
$tr
->
fetch_all_regulatory_features
()})
{
if
(
$tr
and
ref
(
$tr
)
and
$tr
->
isa
('
Bio::EnsEMBL::Transcript
'))
{
my
$dbFunc
=
$tr
->
adaptor
->
db
->
get_db_adaptor
("
funcgen
");
my
$rfa
=
$dbFunc
->
get_ExternalFeatureAdaptor
();
foreach
my
$rf
(
@
{
$rfa
->
fetch_all_by_Slice
(
$tr
->
feature_Slice
)}){
next
if
((
$rf
->
feature_set
->
name
!~
/miRNA/
)
&&
(
$rf
->
feature_set
->
name
!~
/cisRED/
));
# foreach my $rf (@{$tr->fetch_all_regulatory_features()}) {
my
$rf_start
=
$rf
->
start
;
my
$rf_start
=
$rf
->
start
;
my
$rf_end
=
$rf
->
end
;
my
$rf_end
=
$rf
->
end
;
if
(
$var
->
end
>=
$rf_start
and
$var
->
start
<=
$rf_end
)
{
if
(
$var
->
end
>=
$rf_start
and
$var
->
start
<=
$rf_end
)
{
$var
->
type
('
REGULATORY_REGION
')
if
(
$var
->
type
!~
/REGULATORY/
);
$var
->
type
('
REGULATORY_REGION
')
if
(
!
defined
$var
->
type
||
$var
->
type
!~
/REGULATORY/
);
print
$var
->
start
,
"
has regulatiory_region near
",
$tr
->
dbI
d
,"
\n
";
#
print $var->start, " has regulatiory_region near",$tr->dbI
D
,"\n";
last
;
last
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment