Skip to content

Commit

Permalink
updated index
Browse files Browse the repository at this point in the history
  • Loading branch information
Modupeore O Adetunji authored and Modupeore O Adetunji committed Jul 11, 2017
1 parent 864b3cf commit 9672efd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tad-import.pl
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@
my $execute = "$ibis -d $vfastbit -y \"sampleid = '$delete'\" -z";
`$execute 2>> $efile`; printerr ".";
`rm -rf $vfastbit/*sp $vfastbit/*old $vfastbit/*idx $vfastbit/*dic $vfastbit/*int `; #removing old indexes
`ibis -d $vfastbit -query "select genename, sampleid, chrom, tissue, organism, consequence, dbsnpvariant" 2>> $efile`; #create a new index based on genename
`ibis -d $vfastbit -query "select genename, geneid, genetype, transcript, feature, codonchange, aachange, sampleid, chrom, tissue, organism, consequence, dbsnpvariant" 2>> $efile`; #create a new index based on genename
printerr " Done\n";
}
} else {
Expand All @@ -679,7 +679,7 @@
my $execute = "$ibis -d $vfastbit -y \"sampleid = '$delete'\" -z";
`$execute 2>> $efile`; printerr ".";
`rm -rf $vfastbit/*sp $vfastbit/*old $vfastbit/*idx $vfastbit/*dic $vfastbit/*int `; #removing old indexes
`ibis -d $vfastbit -query "select genename, sampleid, chrom, tissue, organism, consequence, dbsnpvariant" 2>> $efile`; #create a new index based on genename
`ibis -d $vfastbit -query "select genename, geneid, genetype, transcript, feature, codonchange, aachange, sampleid, chrom, tissue, organism, consequence, dbsnpvariant" 2>> $efile`; #create a new index
printerr " Done\n";
}
}
Expand Down Expand Up @@ -1496,7 +1496,7 @@ sub NOSQL {
my $execute = "$ardea -d $vfastbit -m 'variantclass:char,zygosity:char,dbsnpvariant:text,source:text,consequence:text,geneid:text,genename:text,transcript:text,feature:text,genetype:text,refallele:char,altallele:char,tissue:text,chrom:text,aachange:text,codonchange:text,organism:text,sampleid:text,quality:double,position:int,proteinposition:int' -t $vnosql";
`$execute 2>> $efile` or die "\nERROR\t: Complication importing to FastBit, contact $AUTHOR\n";
`rm -rf $vfastbit/*sp`; #removing old indexes
`ibis -d $vfastbit -query "select genename, sampleid, chrom, tissue, organism, consequence, dbsnpvariant" 2>> $efile`; #create a new index based on genename
`ibis -d $vfastbit -query "select genename, geneid, genetype, transcript, feature, codonchange, aachange, sampleid, chrom, tissue, organism, consequence, dbsnpvariant" 2>> $efile`; #create a new index
`chmod 777 $vfastbit && rm -rf $vnosql`;
$sth = $dbh->prepare("update VarSummary set nosql = 'done' where sampleid = '$_[0]'"); $sth ->execute(); #update database nosql : DONE
Expand Down

0 comments on commit 9672efd

Please sign in to comment.