Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
submit-A98.sh 531 B
#!/bin/bash

#$ -S /bin/bash
#$ -N PredictorExtract

#$ -o /work/$USER/$JOB_NAME-$JOB_ID-$TASK_ID.log
#$ -j y

#$ -l h_rt=00:30:00:00
#$ -l h_vmem=1G

#$ -pe smp 8-32

#$ -cwd

#$ -t 1-99


module load R

filename="$1"
shift 

output=/data/splot/_data_splot3/output_pred/$(basename $filename .shp)-$SGE_TASK_ID.csv

Rscript \
    cli_A98.r \
    --cores ${NSLOTS:-1} \
    --typp "shp" \
    --chunk.i $SGE_TASK_ID \
    --chunkn 99 \
    /data/splot/_data_splot3/header.shp.shp \
    robust.mean \
    "$output" \
    "$filename"