Commit 5082a608 authored by Simon Potter's avatar Simon Potter
Browse files

fix to prevent duplicate TRF features being stored

- needs testing
parent ca9e2638
......@@ -258,7 +258,14 @@ sub store {
if ($cons->repeat_class eq 'trf') {
$rca->store($cons);
# Look for matches already stored
my @match = $rca->fetch_by_class_seq('trf', $cons->repeat_consensus);
if (@match) {
$cons->dbID($match[0]->dbID());
}
else {
$rca->store($cons);
}
} elsif ($cons->repeat_class eq 'Simple_repeat') {
......
Markdown is supported
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