corrected sarek run

This commit is contained in:
2026-09-16 12:43:45 +02:00
parent 02cefd8fa9
commit 229c8c358d
2 changed files with 52 additions and 11 deletions

View File

@@ -1,9 +1,30 @@
#!/bin/sh #!/bin/bash
SIZE=1
if [ "$#" -eq 1 ]; then
SIZE=$1
fi
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <size: 1 or 3> <logfile-outname>"
exit
fi
SIZE=$1
LOGOUT=$2
TESTDATA_ARCHIVE=/root/sarek-testdata.tar.gz
MYDIR=$(pwd)
mkdir -p /workspace/sarek
mkdir -p /workspace/launch/work
cp nextflow-k8s.config /workspace/sarek/nextflow-k8s.config
cp runtimes.csv /workspace/launch/work/runtimes.csv
cp samplesheet${SIZE}.csv /workspace/launch/samplesheet.csv cp samplesheet${SIZE}.csv /workspace/launch/samplesheet.csv
cp *.fastq.gz /workspace/launch/. cp samplesheet${SIZE}.csv /workspace/sarek/samplesheet.csv
cd /workspace/launch
tar xzf ${TESTDATA_ARCHIVE}
cd /workspace/sarek
time nextflow run -c nextflow-k8s.config nf-core/sarek -r 3.9.0 -profile docker --genome GRCm38 --input samplesheet.csv --outdir out --skip_tools multiqc time nextflow run -c nextflow-k8s.config nf-core/sarek -r 3.9.0 -profile docker --genome GRCm38 --input samplesheet.csv --outdir out --skip_tools multiqc
rm -rf out
cp .nextflow.log /${LOGOUT}
cd ${MYDIR}
rm -rf /workspace/*

View File

@@ -1,10 +1,30 @@
#!/bin/sh #!/bin/bash
SIZE=1 if [ "$#" -ne 2 ]; then
if [ "$#" -eq 1 ]; then echo "Usage: $0 <size: 1 or 3> <logfile-outname>"
SIZE=$1 exit
fi fi
SIZE=$1
LOGOUT=$2
TESTDATA_ARCHIVE=/root/sarek-testdata.tar.gz
MYDIR=$(pwd)
mkdir -p /workspace/sarek
mkdir -p /workspace/launch/work
cp nextflow.config /workspace/sarek/nextflow.config
cp runtimes.csv /workspace/launch/work/runtimes.csv
cp samplesheet${SIZE}.csv /workspace/launch/samplesheet.csv cp samplesheet${SIZE}.csv /workspace/launch/samplesheet.csv
cp *.fastq.gz /workspace/launch/. cp samplesheet${SIZE}.csv /workspace/sarek/samplesheet.csv
cd /workspace/launch
tar xzf ${TESTDATA_ARCHIVE}
cd /workspace/sarek
time nextflow run -c nextflow.config nf-core/sarek -r 3.9.0 -profile docker --genome GRCm38 --input samplesheet.csv --outdir out --skip_tools multiqc time nextflow run -c nextflow.config nf-core/sarek -r 3.9.0 -profile docker --genome GRCm38 --input samplesheet.csv --outdir out --skip_tools multiqc
rm -rf out
cp .nextflow.log /${LOGOUT}
cd ${MYDIR}
rm -rf /workspace/*