Unverified Commit 90b664fc authored by Ameya Chaubal's avatar Ameya Chaubal Committed by GitHub
Browse files

Merge pull request #57 from Ensembl/Test/CompressedDb

Test/compressed db
parents bcfe6283 01b38d32
Pipeline #116650 failed with stage
in 1 minute and 7 seconds
......@@ -43,8 +43,7 @@ use base 'Bio::EnsEMBL::Test::MultiTestDB';
sub load_txt_dump {
my ($self, $txt_file, $tablename, $db) = @_;
if(index($txt_file, 'compressed_genotype_var') != -1) {
my $load = sprintf(q{LOAD DATA LOCAL INFILE '%s' INTO TABLE `%s`FIELDS ESCAPED BY '\\\\'
SET genotypes = UNHEX(@var1)}, $txt_file, $tablename);
my $load = sprintf(q{LOAD DATA LOCAL INFILE '%s' INTO TABLE `%s`FIELDS ESCAPED BY '\\\\' (variation_id, subsnp_id , @var1) SET genotypes = UNHEX(@var1)}, $txt_file, $tablename);
$db->do($load);
return $db;
} elsif (index($txt_file, 'compressed_genotype_region') != -1) {
......
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