my
$error
= 0;
BEGIN {
if
( $@ ) {
}
plan
tests
=> 7;
}
if
(
$error
== 1 ) {
exit
(0);
}
my
$debug
= -1;
my
$in
= new Bio::AlignIO(
-format
=>
'clustalw'
,
-file
=> Bio::Root::IO->catfile(
't'
,
'data'
,
'pep-266.aln'
));
my
$aln
=
$in
->next_aln();
ok(
$aln
);
my
$pstats
= new Bio::Align::ProteinStatistics(
-verbose
=>
$debug
);
my
$matrix
=
$pstats
->distance(
-method
=>
'Kimura'
,
-align
=>
$aln
);
ok(
$matrix
);
my
$treebuilder
= Bio::Tree::DistanceFactory->new(
-method
=>
'NJ'
);
my
$tree
=
$treebuilder
->make_tree(
$matrix
);
ok(
$tree
);
my
(
$cn
) =
$tree
->find_node(
'183.m01790'
);
ok(
$tree
->find_node(
'AN2438.1'
)->branch_length,
'0.28221'
);
ok(
$tree
->find_node(
'FG05298.1'
)->branch_length,
'0.20593'
);
ok(
$tree
->find_node(
'YOR262W'
)->ancestor->id,
$tree
->find_node(
'Smik_Contig1103.1'
)->ancestor->id);
my
$replicates
=
&bootstrap_replicates
(
$aln
,10);
ok(
scalar
@$replicates
, 10);