Skip to content
Snippets Groups Projects
Commit 36705e45 authored by Steve Trevanion's avatar Steve Trevanion
Browse files

removes all traces of supercontigs

parent b07132cf
No related branches found
No related tags found
No related merge requests found
......@@ -61,4 +61,27 @@ sub update_clone_info {
return;
}
sub remove_supercontigs {
my $self = shift;
my $target = $self->target();
my $dbh = $self->dbh();
$self->debug("Vega mouse specific - removing supercontigs from $target");
$dbh->do("DELETE FROM $target.meta ".
"WHERE meta_value like '%supercontig%'");
$dbh->do("DELETE FROM $target.coord_system ".
"WHERE name like 'supercontig'");
$dbh->do("DELETE $target.assembly ".
"FROM $target.assembly a, $target.seq_region sr ".
"WHERE sr.coord_system_id = 2 ".
"and a.asm_seq_region_id = sr.seq_region_id");
$dbh->do("DELETE FROM $target.seq_region ".
"WHERE coord_system_id = 2");
}
1;
......@@ -60,5 +60,26 @@ sub update_clone_info {
return;
}
sub remove_supercontigs {
my $self = shift;
my $target = $self->target();
my $dbh = $self->dbh();
$self->debug("Vega mouse specific - removing supercontigs from $target");
$dbh->do("DELETE FROM $target.meta ".
"WHERE meta_value like '%supercontig%'");
$dbh->do("DELETE FROM $target.coord_system ".
"WHERE name like 'supercontig'");
$dbh->do("DELETE $target.assembly ".
"FROM $target.assembly a, $target.seq_region sr ".
"WHERE sr.coord_system_id = 2 ".
"and a.asm_seq_region_id = sr.seq_region_id");
$dbh->do("DELETE FROM $target.seq_region ".
"WHERE coord_system_id = 2");
}
1;
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