Skip to content

Commit

Permalink
Merge pull request #19 from UMCUGenetics/release/v2.0.0
Browse files Browse the repository at this point in the history
Release/v2.0.0
  • Loading branch information
rernst authored Jul 6, 2023
2 parents b8d9088 + 240cc44 commit 97cb9cd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# DxNextflowWGS
# DxNextflowWGS [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4709755.svg)](https://doi.org/10.5281/zenodo.4709755)

Genome Diagnostics Nextflow WGS workflow

## Get Nextflow Modules
Expand Down Expand Up @@ -33,4 +34,4 @@ cp /guix/path.gz.squashfs baf_nextflow.gz.squashfs
unsquashfs baf_nextflow.gz.squashfs
chmod -R 0775 squashfs-root
singularity build baf_nextflow.sif squashfs-root
```
```
4 changes: 2 additions & 2 deletions WGS.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ params {
genome = '/hpc/diaggen/data/databases/ref_genomes/Homo_sapiens.GRCh37.GATK.illumina/Homo_sapiens.GRCh37.GATK.illumina.fasta'
dxtracks_path = '/hpc/diaggen/software/production/Dx_tracks'

gatk_path = '/hpc/local/CentOS7/cog_bioinf/GenomeAnalysisTK-3.8-1-0-gf15c1c3ef/GenomeAnalysisTK.jar'
gatk_path = '/hpc/diaggen/software/tools/GenomeAnalysisTK-3.8-1-0-gf15c1c3ef/GenomeAnalysisTK.jar'
gatk_bqsr_options = '--knownSites /hpc/diaggen/data/databases/GATK_resource_bundle/b37/1000G_phase1.indels.b37.vcf.gz --knownSites /hpc/diaggen/data/databases/GATK_resource_bundle/b37/dbsnp_137.b37.vcf.gz --knownSites /hpc/diaggen/data/databases/GATK_resource_bundle/b37/Mills_and_1000G_gold_standard.indels.b37.vcf.gz'
gatk_bqsr_pr_options = '--static_quantized_quals 10 --static_quantized_quals 20 --static_quantized_quals 30'
fingerprint_target = 'fingerprint/81SNP_design.vcf'
Expand Down Expand Up @@ -155,7 +155,7 @@ process {
}
}

withLabel: ControlFreec_11_5_makeGraph {
withLabel: ControlFreec_11_5_MakeGraph {
cpus = 4
memory = { 5.GB * task.attempt }
time = { (1.s * cnv_file.size() / 140) * task.attempt }
Expand Down
2 changes: 1 addition & 1 deletion WGS.nf
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ process GetStatsFromFlagstat {

script:
"""
python ${baseDir}/assets/get_stats_from_flagstat.py ${flagstat_files} > run_stats.txt
python2 ${baseDir}/assets/get_stats_from_flagstat.py ${flagstat_files} > run_stats.txt
"""
}

Expand Down
9 changes: 7 additions & 2 deletions run_nextflow_wgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ sbatch <<EOT
#SBATCH --export=NONE
#SBATCH --account=diaggen
module load Java/1.8.0_60
/hpc/diaggen/software/tools/nextflow run $workflow_path/WGS.nf \
-c $workflow_path/WGS.config \
--fastq_path $input \
Expand All @@ -55,11 +53,18 @@ if [ \$? -eq 0 ]; then
rm workflow.running
touch workflow.done
echo "Change permissions"
chmod 775 -R $output
exit 0
else
echo "Nextflow failed"
rm workflow.running
touch workflow.failed
echo "Change permissions"
chmod 775 -R $output
exit 1
fi
EOT
Expand Down

0 comments on commit 97cb9cd

Please sign in to comment.