Commit 31dd94b0 authored by Thomas Juettemann's avatar Thomas Juettemann
Browse files

1) Added option to include name of the target DB; 2) Update %global_tables for funcgen

parent b7f58904
#!/usr/bin/env perl
# Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
# Copyright [2016-2018] EMBL-European Bioinformatics Institute
# Copyright [2016-2017] EMBL-European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......@@ -34,7 +34,7 @@ use Scalar::Util qw/looks_like_number/;
my %global_tables = (
core => [qw/attrib_type meta coord_system external_db unmapped_reason/],
funcgen => [qw/feature_set/],
funcgen => [qw/ analysis analysis_description epigenome experiment experimental_group external_db feature_type meta meta_coord regulatory_build/],
);
run();
......@@ -69,6 +69,7 @@ sub parse_options {
dest_port|dP=i
dest_user|dest_username|du=s
dest_pass|dest_password|dp=s
dest_dbname|dd=s
registry|reg_conf=s
......@@ -409,6 +410,9 @@ sub copy_data {
sub new_dbname {
my ($self, $dbname) = @_;
if(defined $self->{opts}->{dest_dbname}){
return $self->{opts}->{dest_dbname};
}
my @localtime = localtime();
my $date = strftime '%Y%m%d', @localtime;
my $time = strftime '%H%M%S', @localtime;
......
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