You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're seeing the convertCRAMtoFASTQ task fail for large CRAMs (> 60 GB). It seems that that samtools collate command is writing intermediate files to /tmp, which is outside the /cromwell_root volume (EDIT: we're running this in Terra using the version from Dockstore) in the container. I noticed this behavior elsewhere, and had to either set TMPDIR or provide an explicit prefix with a path inside the desired volume (as described here https://www.htslib.org/doc/samtools-collate.html)
Here is an example log message before the container is reclaimed (usually repeated several times):
samtools collate: Couldn't write to intermediate file "/tmp/collatef.0004.bam": No such file or directory
I am not that familiar with Terra and the google enviroment. But there are probably a couple aproaches to address this by modifying the wdl script.
Modify samtools collate command to point to a temp directory -Edit the wdl script to update the samtools command to point to a writable volume that is mounted on the docker image
Modify wdl runtime env to mount a disk as /tmp with enough storage
runtime {
disks: "local-disk 100 SSD, /tmp 180 SSD"
}
This specified 3x the cram size.
Hi,
We're seeing the
convertCRAMtoFASTQ
task fail for large CRAMs (> 60 GB). It seems that that samtools collate command is writing intermediate files to /tmp, which is outside the /cromwell_root volume (EDIT: we're running this in Terra using the version from Dockstore) in the container. I noticed this behavior elsewhere, and had to either set TMPDIR or provide an explicit prefix with a path inside the desired volume (as described here https://www.htslib.org/doc/samtools-collate.html)Here is an example log message before the container is reclaimed (usually repeated several times):
Relevant code:
vg_wdl/tasks/bioinfo_utils.wdl
Lines 528 to 533 in 00167b2
The text was updated successfully, but these errors were encountered: