#!/bin/bash

(Rscript  /home/production/cxgn/sgn/R/heritability/h2_blup_rscript.R /home/production/volume/tmp/heritability_files/h2_download_phMvs_phenotype.txt dry.matter.content.percentage /home/production/volume/tmp/heritability_files/h2_download_phMvs_h2File.json /home/production/volume/tmp/heritability_files/h2_download_phMvs_h2CsvFile.csv /home/production/volume/tmp/heritability_files/h2_download_phMvs_error.txt;

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

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