Skip to content
Snippets Groups Projects
Commit f2cb6af6 authored by Graham McVicker's avatar Graham McVicker
Browse files

corrected clone creation sql

parent 0ea929c4
No related branches found
No related tags found
No related merge requests found
......@@ -284,7 +284,7 @@ sub clone_to_seq_region {
my $select_sth = $dbh->prepare
("SELECT cl.clone_id,
CONCAT(cl.embl_acc, '.', cl.embl_version),
MAX(ctg.embl_offset)+ctg.length-1
MAX(ctg.embl_offset+ctg.length-1)
FROM $source.clone cl, $source.contig ctg
WHERE cl.clone_id = ctg.clone_id GROUP BY ctg.clone_id");
$select_sth->execute();
......
......@@ -179,7 +179,7 @@ sub clone_to_seq_region {
my $select_sth = $dbh->prepare
("SELECT cl.clone_id,
CONCAT(cl.embl_acc, '.', cl.embl_version),
MAX(ctg.embl_offset)+ctg.length-1
MAX(ctg.embl_offset+ctg.length-1)
FROM $source.clone cl, $source.contig ctg
WHERE cl.clone_id = ctg.clone_id
AND cl.embl_acc not like 'C%'
......
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