#!/bin/bash

(Rscript  /home/production/cxgn/sgn/R/heritability/h2_blup_rscript.R /home/production/volume/tmp/heritability_files/h2_download_dfAW2_phenotype.txt harvest.index.variable /home/production/volume/tmp/heritability_files/h2_download_dfAW2_h2File.json /home/production/volume/tmp/heritability_files/h2_download_dfAW2_h2CsvFile.csv /home/production/volume/tmp/heritability_files/h2_download_dfAW2_error.txt;

FINISH_TIMESTAMP=$(date +"%Y-%m-%d %H:%M:%S%z"); 
echo "251    $FINISH_TIMESTAMP" >> /home/production/volume/logs/job_finish.log ;

) > /home/production/volume/tmp/heritability_files/job_VbMI5p/out 2> /home/production/volume/tmp/heritability_files/job_VbMI5p/err