diff --git a/.gitignore b/.gitignore index 1b5f5a5..e92b837 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ cleanup-volume-claim.sh build.sh +*.tar.gz +Dockerfile diff --git a/sarek-1/.gitignore b/sarek/.gitignore similarity index 100% rename from sarek-1/.gitignore rename to sarek/.gitignore diff --git a/sarek-1/clean.sh b/sarek/clean.sh similarity index 100% rename from sarek-1/clean.sh rename to sarek/clean.sh diff --git a/sarek/nextflow-k8s.config b/sarek/nextflow-k8s.config new file mode 100644 index 0000000..7558195 --- /dev/null +++ b/sarek/nextflow-k8s.config @@ -0,0 +1,24 @@ +workDir = '/workspace' + +process { + executor = 'k8s' + //container = 'ubuntu:22.04' + + pod = [ + imagePullPolicy: 'IfNotPresent' + ] +} + +k8s { + namespace = 'trogantk' + + storageClaimName = 'cephfs-trogantk' + storageMountPath = '/workspace' + launchDir = '/workspace/launch' + projectDir = '/workspace/projects' + cleanup = true + + pod = [ + nodeSelector: [usedby: 'trogantk'] + ] +} diff --git a/sarek-1/nextflow.config b/sarek/nextflow.config similarity index 100% rename from sarek-1/nextflow.config rename to sarek/nextflow.config diff --git a/sarek/run-k8s.sh b/sarek/run-k8s.sh new file mode 100644 index 0000000..fe4019b --- /dev/null +++ b/sarek/run-k8s.sh @@ -0,0 +1,9 @@ +#!/bin/sh +SIZE=1 +if [ "$#" -eq 1 ]; then + SIZE=$1 +fi + +cp samplesheet${SIZE}.csv /workspace/launch/samplesheet.csv +cp *.fastq.gz /workspace/launch/. +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 diff --git a/sarek-1/run.sh b/sarek/run.sh similarity index 57% rename from sarek-1/run.sh rename to sarek/run.sh index 64acba2..85c203f 100644 --- a/sarek-1/run.sh +++ b/sarek/run.sh @@ -1,5 +1,10 @@ #!/bin/sh -cp samplesheet.csv /workspace/launch/samplesheet.csv +SIZE=1 +if [ "$#" -eq 1 ]; then + SIZE=$1 +fi + +cp samplesheet${SIZE}.csv /workspace/launch/samplesheet.csv cp *.fastq.gz /workspace/launch/. -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 diff --git a/sarek-1/samplesheet.csv b/sarek/samplesheet1.csv similarity index 100% rename from sarek-1/samplesheet.csv rename to sarek/samplesheet1.csv diff --git a/sarek/samplesheet3.csv b/sarek/samplesheet3.csv new file mode 100644 index 0000000..988e6db --- /dev/null +++ b/sarek/samplesheet3.csv @@ -0,0 +1,4 @@ +patient,sample,lane,fastq_1,fastq_2 +ID1,S1,L001,SRR27016609_1.fastq.gz,SRR27016609_2.fastq.gz +ID1,S2,L001,SRR27016607_1.fastq.gz,SRR27016607_2.fastq.gz +ID1,S3,L001,SRR27016605_1.fastq.gz,SRR27016605_2.fastq.gz