Protein retriever

Enter NCBI ID:

array( 'pipe', 'r' ) , 1 => array( 'pipe', 'w' ) , 2 => array( 'pipe', 'w' ) ); system("./efetch -format gbwithparts -db nuccore -i $ncbiID > $tempFile.gb"); system("perl ./genbank2cds_aa.pl -f $tempFile.gb -o $tempFile.aa 2>./tmp/errors.txt"); print "Here your file!\n"; #system("rm $tempFile.gb"); if (!file_exists($tempFile.".aa")) { // se non esiste stampo un errore echo "ERROR! FILE $tempFile.aa does not exist!!"; } else { // Se il file esiste... // Imposto gli header della pagina per forzare il download del file header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename= " . $tempFile.".aa"); header("Content-Transfer-Encoding: binary"); // Leggo il contenuto del file readfile($tempFile.".aa"); } } ?>