Skip to content
Snippets Groups Projects
Commit ba0e08d8 authored by Bronwen Aken's avatar Bronwen Aken
Browse files

Update the assembly.name whenerver we add patches

parent 0e5b3255
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ use Getopt::Long;
use strict;
my $assembly_name;
my $pass;
my $mapping_file = "./data/alt.scaf.agp";
my $txt_file = "./data/alt_scaffold_placement.txt";
......@@ -25,8 +26,14 @@ my $central_coord_system = 'supercontig';
'dbname=s' => \$dbname,
'user=s' => \$user,
'port=n' => \$port,
'assembly_name=s' => \$assembly_name,
);
#needed to update the meta table
if (!defined $assembly_name) {
throw("Please enter -assembly_name eg. GRCh37.p4");
}
#connect to the database
my $dba = new Bio::EnsEMBL::DBSQL::DBAdaptor(
......@@ -405,6 +412,7 @@ MAP: while(<MAPPER>){
print "GAP of $contig length\n";
}
}
print SQL "\nUPDATE meta SET meta_value = '$assembly_name' WHERE meta_key = 'assembly.name'\n";
close SQL;
......
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