- Assuming shellfish and all other related software have been installed correctly.
- Assuming shellfish.py exists
- then prepare a pbs script, here I called it Shellfish.pbs and I have plink files calledABC.bim ABC.bed ABC.fam
- cat Shellfish.pbs
-
#!/bin/bash #PBS -N shellfish #PBS -S /bin/bash #PBS -j oe #PBS -l walltime=24:00:00 #PBS -l ncpus=20 #PBS -l mem=100G hostname cd $PBS_O_WORKDIR echo "shellfish.py --pca --numpcs 10 --ignore-sge --maxprocs 20 --file ${bim_file} --out ${bim_file}_pca" shellfish.py --pca --numpcs 10 --ignore-sge --maxprocs 20 --file ${bim_file} --out ${bim_file}_pca
to submit this job, type
qsub -v bim_file=ABC Shellfish.pbs
This script will produce 10 PCA components with 20 CPUs