Closed GACGAMA closed 11 months ago
Try to get into one of the mutect directory and execute the mutect2 .cmd file, and see what message you get.
GATK was spitting some memory errors which were hidden by parallel outputs. After running each sample single threaded, I identified the error! Increasing the java memory in MuTec2.py to 20GB instead of 8 did the job. I would suggest a simple implementation of memory argument to --run-mutect2!
Yeah I'll try to do that in the next iteration.
Hi! I`m running SomaticSeq
makeSomaticScripts.py single --bam /scratch/bams/a.bam --genome-reference /scratch/references/GRCh38_full_analysis_set_plus_decoy_hla.fa --output-directory /scratch/somaticseq/test/a/--dbsnp-vcf /scratch/references/Homo_sapiens_assembly38.dbsnp138.vcf.gz --container-tech singularity --threads 2 --run-mutect2 --run-vardict --run-lofreq --run-scalpel --run-strelka2 --run-somaticseq --run-workflow
And I`m getting:
AND
NFO 2023-07-10 23:49:58,869 run_script bash /scratch/somaticseq/test/a/logs/mergeResults.2023.07.10.13.39.19.746.cmd Start at 2023/07/10 23:49:58 ^[[34mINFO: ^[[0m Using cached SIF image Traceback (most recent call last): File "/usr/local/bin/concat.py", line 201, in <module> vcf(args.input_files, args.output_file, args.bgzip_output) File "/usr/local/bin/concat.py", line 28, in vcf with genome.open_textfile(file_i) as vcfin: File "/usr/local/lib/python3.10/dist-packages/somaticseq/genomicFileHandler/genomic_file_handlers.py", line 173, in open_textfile return open(file_name) FileNotFoundError: [Errno 2] No such file or directory: '/5c34180f950d41bfaa95dfc8416c8199/a/2/MuTect2.vcf' INFO 2023-07-10 23:49:59,687 run_script FINISHED RUNNING /scratch/ggama1/somaticseq/test/511869-0424960671/logs/mergeResults.2023.07.10.13.39.19.746.cmd in 0.818 seconds with an exit code of 1.
This is not producing merged consensus.vcf, but I can see the consensus VCFs in /1/SomaticSeq and /2/SomaticSeq
It seems like MuTecT2 is not working, but the -run-mutect2 is exiting with code of 0.
I got what the problem is. MuTect2 is memory hungry and not all threads execute finely without modifying the java memory. Is there any plan to include specifically java memory arguments to mutect2 with makescripts.py? I`m thinking of modifying the MuTect2 script generators to include this change