From OpenWetWare
Jump to: navigation, search
Owwnotebook icon.png Project name Report.pngMain project page


changed annovar src to use curl

checkProgramUpdate ("wget");
		for my $i (0 .. @urlin-1) {
			printerr "NOTICE: Downloading annotation database $urlin[$i] ... ";
			if ($verbose) {
				$sc = "curl --proxy xxxx.univ-nantes.prive:3128 -L -o $filein[$i] $urlin[$i]";
			} else {
				$sc = "curl --proxy xxx.univ-nantes.prive:3128 -s -L  -o $filein[$i] $urlin[$i]";
			if (system ($sc)) {	#time-out is 10 seconds, with 1 retry attempt
				printerr "Failed\n";
				$verbose and print "WARNING: unable to execute system command: <$sc>\n";
				unlink ($filein[$i]);		#delete the temporary files generated by wget
			} else {
				printerr "OK\n";

also commented out the check for updates. Need to free port for proxy: and

./ -downdb -buildver hg19 gene humandb
./  -downdb -buildver hg19 knownGene humandb
./ -downdb -buildver hg19 wgEncodeGencodeManualV4 humandb

also tfbs, mirna, mirnatarget, dgv, snp135

./ -downdb gerp++elem  -webfrom annovar  -buildver hg19 humandb