Skip to content
Snippets Groups Projects
Commit 1320d979 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-2194: throw if coordinates missing

parent 7db8cb4f
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,10 @@ sub print_feature {
# Column 4 - start, the start coordinate of the feature, here shifted to chromosomal coordinates
# Start and end must be in ascending order for GFF. Circular genomes require the length of
# the circuit to be added on.
# the circuit to be added on.
if (!defined $summary{'start'} || !defined $summary{'end'}) {
throw sprintf "Coordinates not defined for %s.\n", $summary{id};
}
if ($summary{'start'} > $summary{'end'}) {
#assumes this is not a Compara circular sequence and can treat is as a Feature
if ($feature->slice() && $feature->slice()->is_circular() ) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment