Skip to content

Commit

Permalink
Merge pull request #374 from ipilizota/ancestral_leaves
Browse files Browse the repository at this point in the history
Check the position of ancestral sequences in the genomic align trees
  • Loading branch information
james-monkeyshines authored May 24, 2021
2 parents bb414f3 + a549f43 commit 91e5863
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion lib/Bio/EnsEMBL/DataCheck/Checks/CheckGenomicAlignTreeTable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,30 @@ sub tests {

}

my $sql_4 = qq/
SELECT COUNT(*)
FROM genomic_align_tree gat
JOIN genomic_align ga USING (node_id)
JOIN dnafrag df USING (dnafrag_id)
WHERE gat.right_index - gat.left_index != 1
AND df.coord_system_name != 'ancestralsegment'
/;

my $desc_4 = "All internal nodes link to ancestral sequences";
is_rows_zero($dbc, $sql_4, $desc_4);

my $sql_5 = qq/
SELECT COUNT(*)
FROM genomic_align_tree gat
JOIN genomic_align ga USING (node_id)
JOIN dnafrag df USING (dnafrag_id)
WHERE gat.right_index - gat.left_index = 1
AND df.coord_system_name = 'ancestralsegment'
/;

my $desc_5 = "All leaves are from current genome sequences";
is_rows_zero($dbc, $sql_5, $desc_5);

}

1;

0 comments on commit 91e5863

Please sign in to comment.