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
1d8b2da9
Commit
1d8b2da9
authored
May 10, 2006
by
Ian Longden
Browse files
Fixes and STDERR prints. storing fro safe keeping (nearly therecvs up)
parent
275378ff
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
13 deletions
+32
-13
modules/Bio/EnsEMBL/ChainedAssemblyMapper.pm
modules/Bio/EnsEMBL/ChainedAssemblyMapper.pm
+3
-3
modules/Bio/EnsEMBL/Feature.pm
modules/Bio/EnsEMBL/Feature.pm
+4
-0
modules/Bio/EnsEMBL/Mapper.pm
modules/Bio/EnsEMBL/Mapper.pm
+13
-0
modules/Bio/EnsEMBL/Slice.pm
modules/Bio/EnsEMBL/Slice.pm
+10
-8
modules/Bio/EnsEMBL/TopLevelAssemblyMapper.pm
modules/Bio/EnsEMBL/TopLevelAssemblyMapper.pm
+2
-2
No files found.
modules/Bio/EnsEMBL/ChainedAssemblyMapper.pm
View file @
1d8b2da9
...
...
@@ -332,8 +332,8 @@ sub map {
}
if
(
$fastmap
)
{
print
STDERR
"
FAST seq region id is
$seq_region_id
\n
";
return
$mapper
->
fastmap
(
$seq_region_
id
,
$frm_start
,
$frm_end
,
print
STDERR
"
FAST seq region id is
$seq_region_id
using
$frm_seq_region_name
\n
";
return
$mapper
->
fastmap
(
$
frm_
seq_region_
name
,
$frm_start
,
$frm_end
,
$frm_strand
,
$frm
);
}
...
...
@@ -486,7 +486,7 @@ sub list_seq_regions {
}
#convert them to names
return
@
{
$self
->
adaptor
()
->
ids_to_
seq_
region
_names
(
$to_cs
,
\
@seq_regs
)};
return
@
{
$self
->
adaptor
()
->
seq_
ids_to_region
s
(
\
@seq_regs
)};
}
...
...
modules/Bio/EnsEMBL/Feature.pm
View file @
1d8b2da9
...
...
@@ -429,6 +429,10 @@ sub transform {
}
my
$projection
=
$self
->
project
(
$cs_name
,
$cs_version
);
print
STDERR
"
projection is
"
.
$projection
.
"
\n
";
foreach
my
$segment
(
@$projection
)
{
print
STDERR
"
feature project
"
.
$segment
->
[
2
]
.
"
\t
"
.
$segment
->
[
0
]
.
"
\n
";
}
if
(
@$projection
!=
1
)
{
return
undef
;
}
else
{
...
...
modules/Bio/EnsEMBL/Mapper.pm
View file @
1d8b2da9
...
...
@@ -48,6 +48,7 @@ package Bio::EnsEMBL::Mapper;
use
strict
;
use
integer
;
use
Bio::EnsEMBL::Utils::
Exception
qw(throw deprecate warning stack_trace_dump)
;
use
Bio::EnsEMBL::Mapper::
Pair
;
use
Bio::EnsEMBL::Mapper::
IndelPair
;
use
Bio::EnsEMBL::Mapper::
Unit
;
...
...
@@ -520,6 +521,18 @@ sub add_map_coordinates{
if
(
(
$contig_end
-
$contig_start
)
!=
(
$chr_end
-
$chr_start
)
)
{
throw
("
Cannot deal with mis-lengthed mappings so far
");
}
my
$test
=
$contig_id
;
$test
=~
s/\d+//g
;
if
(
length
(
$test
)
>
0
or
$contig_id
<
1000
){
print
STDERR
"
$contig_id
NOT INTEGER
\n
";
print
STDERR
stack_trace_dump
();
}
$test
=
$chr_name
;
$test
=~
s/\d+//g
;
if
(
length
(
$test
)
>
0
or
$chr_name
<
1000
){
print
STDERR
"
$chr_name
NOT INTEGER
\n
";
print
STDERR
stack_trace_dump
();
}
my
$from
=
Bio::EnsEMBL::Mapper::
Unit
->
new
(
$contig_id
,
$contig_start
,
$contig_end
);
...
...
modules/Bio/EnsEMBL/Slice.pm
View file @
1d8b2da9
...
...
@@ -734,14 +734,16 @@ sub project {
}
#construct a projection from the mapping results and return it
print
STDERR
"
asm_mapper is a
"
.
ref
(
$asm_mapper
)
.
"
\n
";
print
STDERR
"
#COORD id is
"
.
$coords
[
0
]
->
id
.
"
\n
";
my
$test
=
$coords
[
0
]
->
id
;
$test
=~
s/\d+//g
;
if
(
length
(
$test
)
>
0
){
print
STDERR
"
NOT INTEGER
\n
";
print
STDERR
stack_trace_dump
();
}
if
(
$coords
[
0
]
->
isa
('
Bio::EnsEMBL::Mapper::Coordinate
'))
{
print
STDERR
"
asm_mapper is a
"
.
ref
(
$asm_mapper
)
.
"
\n
";
print
STDERR
"
#COORD id is
"
.
$coords
[
0
]
->
id
.
"
\n
";
my
$test
=
$coords
[
0
]
->
id
;
$test
=~
s/\d+//g
;
if
(
length
(
$test
)
>
0
){
print
STDERR
"
NOT INTEGER
\n
";
print
STDERR
stack_trace_dump
();
}
}
foreach
my
$coord
(
@coords
)
{
my
$coord_start
=
$coord
->
start
();
my
$coord_end
=
$coord
->
end
();
...
...
modules/Bio/EnsEMBL/TopLevelAssemblyMapper.pm
View file @
1d8b2da9
...
...
@@ -181,11 +181,11 @@ sub map {
my
$mapper
=
$adaptor
->
fetch_by_CoordSystems
(
$other_cs
,
$cs
);
if
(
$fastmap
)
{
my
@result
=
$mapper
->
fastmap
(
$seq_region_
id
,
$frm_start
,
$frm_end
,
my
@result
=
$mapper
->
fastmap
(
$
frm_
seq_region_
name
,
$frm_start
,
$frm_end
,
$frm_strand
,
$frm_cs
);
return
@result
if
(
@result
);
}
else
{
my
@coords
=
$mapper
->
map
(
$seq_region_
id
,
$frm_start
,
$frm_end
,
my
@coords
=
$mapper
->
map
(
$
frm_
seq_region_
name
,
$frm_start
,
$frm_end
,
$frm_strand
,
$frm_cs
);
if
(
@coords
>
1
||
!
$coords
[
0
]
->
isa
('
Bio::EnsEMBL::Mapper::Gap
'))
{
...
...
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