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

corrected typo in assembly table generation; added mapping entries to meta table

parent 57b1601b
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@ sub create_coord_systems {
["clone" , undef, "default_version"],
["chunk" , undef, "default_version,sequence_level"]);
my @assembly_mappings = ("chromosome:$ass_def|chunk",
"clone|chunk",
"supercontig|chunk");
my %cs = (gene => ['supercontig','chromosome'],
transcript => ['supercontig','chromosome'],
exon => ['supercontig','chromosome'],
......@@ -61,6 +65,20 @@ sub create_coord_systems {
}
$sth->finish();
$self->debug("Adding assembly.mapping entries to meta table");
$sth = $dbh->prepare("INSERT INTO $target.meta(meta_key, meta_value) " .
"VALUES ('assembly.mapping', ?)");
foreach my $mapping (@assembly_mappings) {
$sth->execute($mapping);
}
$sth->finish();
return;
}
......@@ -207,7 +225,7 @@ sub create_assembly {
my $self = shift;
#chromosomes are made of chunks
$self->assembly_contig_supercontig();
$self->assembly_contig_chromosome();
#supercontigs are made of chunks
$self->assembly_contig_supercontig();
......
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