Quantcast
Channel: Ask the FireCloud Team — GATK-Forum
Viewing all articles
Browse latest Browse all 1147

No Space Left on Device

$
0
0

Hello!

I'm currently running WGS data on 31 samples through the default "processing-for-variant-discovery-gatk4" workflow. When ran my uBAMs through, I noticed that roughly half of them failed at the MergeBamAlignment step, with the same stderr message, an example of which is pasted below:

INFO    2018-06-28 05:37:31 AbstractAlignmentMerger 47949359 Reads have been unmapped due to being suspected of being Cross-species contamination.
INFO    2018-06-28 05:38:05 AbstractAlignmentMerger Merged   509,000,000 records.  Elapsed time: 04:33:28s.  Time for last 1,000,000:   33s.  Last read position: chr4:3,404,335
INFO    2018-06-28 05:38:05 AbstractAlignmentMerger 48045092 Reads have been unmapped due to being suspected of being Cross-species contamination.
INFO    2018-06-28 05:38:37 AbstractAlignmentMerger Merged   510,000,000 records.  Elapsed time: 04:34:01s.  Time for last 1,000,000:   32s.  Last read position: */*
INFO    2018-06-28 05:38:37 AbstractAlignmentMerger 48140059 Reads have been unmapped due to being suspected of being Cross-species contamination.
INFO    2018-06-28 05:39:09 AbstractAlignmentMerger Merged   511,000,000 records.  Elapsed time: 04:34:33s.  Time for last 1,000,000:   32s.  Last read position: */*
INFO    2018-06-28 05:39:09 AbstractAlignmentMerger 48235899 Reads have been unmapped due to being suspected of being Cross-species contamination.
INFO    2018-06-28 05:39:41 AbstractAlignmentMerger Merged   512,000,000 records.  Elapsed time: 04:35:05s.  Time for last 1,000,000:   32s.  Last read position: chr4:60,986,275
INFO    2018-06-28 05:39:41 AbstractAlignmentMerger 48330565 Reads have been unmapped due to being suspected of being Cross-species contamination.
INFO    2018-06-28 05:40:13 AbstractAlignmentMerger Merged   513,000,000 records.  Elapsed time: 04:35:37s.  Time for last 1,000,000:   32s.  Last read position: chr15:27,220,660
INFO    2018-06-28 05:40:13 AbstractAlignmentMerger 48425295 Reads have been unmapped due to being suspected of being Cross-species contamination.
INFO    2018-06-28 05:40:46 AbstractAlignmentMerger Merged   514,000,000 records.  Elapsed time: 04:36:10s.  Time for last 1,000,000:   32s.  Last read position: chr3:159,444,239
INFO    2018-06-28 05:40:46 AbstractAlignmentMerger 48519800 Reads have been unmapped due to being suspected of being Cross-species contamination.
INFO    2018-06-28 05:41:18 AbstractAlignmentMerger Merged   515,000,000 records.  Elapsed time: 04:36:42s.  Time for last 1,000,000:   32s.  Last read position: chr10:12,075,925
INFO    2018-06-28 05:41:18 AbstractAlignmentMerger 48615263 Reads have been unmapped due to being suspected of being Cross-species contamination.
INFO    2018-06-28 05:41:51 AbstractAlignmentMerger Merged   516,000,000 records.  Elapsed time: 04:37:15s.  Time for last 1,000,000:   32s.  Last read position: */*
INFO    2018-06-28 05:41:51 AbstractAlignmentMerger 48709353 Reads have been unmapped due to being suspected of being Cross-species contamination.
[Thu Jun 28 05:42:13 UTC 2018] picard.sam.MergeBamAlignment done. Elapsed time: 277.63 minutes.
Runtime.totalMemory()=3040870400
To get help, see http://broadinstitute.github.io/picard/index.html#GettingHelp
htsjdk.samtools.util.RuntimeIOException: Write error; BinaryCodec in writemode; streamed file (filename not available)
    at htsjdk.samtools.util.BinaryCodec.writeBytes(BinaryCodec.java:222)
    at htsjdk.samtools.util.BlockCompressedOutputStream.writeGzipBlock(BlockCompressedOutputStream.java:389)
    at htsjdk.samtools.util.BlockCompressedOutputStream.deflateBlock(BlockCompressedOutputStream.java:352)
    at htsjdk.samtools.util.BlockCompressedOutputStream.write(BlockCompressedOutputStream.java:251)
    at htsjdk.samtools.util.BinaryCodec.writeBytes(BinaryCodec.java:220)
    at htsjdk.samtools.util.BinaryCodec.writeByteBuffer(BinaryCodec.java:188)tee: /cromwell_root/MergeBamAlignment-0-stderr.log: No space left on device

    at htsjdk.samtools.util.BinaryCodec.writeInt(BinaryCodec.java:234)
    at htsjdk.samtools.BAMRecordCodec.encode(BAMRecordCodec.java:134)
    at htsjdk.samtools.BAMFileWriter.writeAlignment(BAMFileWriter.java:143)
    at htsjdk.samtools.SAMFileWriterImpl.addAlignment(SAMFileWriterImpl.java:198)
    at htsjdk.samtools.AsyncSAMFileWriter.synchronouslyWrite(AsyncSAMFileWriter.java:36)
    at htsjdk.samtools.AsyncSAMFileWriter.synchronouslyWrite(AsyncSAMFileWriter.java:16)
    at htsjdk.samtools.util.AbstractAsyncWriter$WriterRunnable.run(AbstractAsyncWriter.java:123)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: No space left on device
    at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
    at sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:60)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
    at sun.nio.ch.IOUtil.write(IOUtil.java:65)
    at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:211)
    at java.nio.channels.Channels.writeFullyImpl(Channels.java:78)
    at java.nio.channels.Channels.writeFully(Channels.java:101)
    at java.nio.channels.Channels.access$000(Channels.java:61)
    at java.nio.channels.Channels$1.write(Channels.java:174)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
    at htsjdk.samtools.util.BinaryCodec.writeBytes(BinaryCodec.java:220)
    ... 13 more
Using GATK jar /gatk/build/libs/gatk-package-4.0.4.0-local.jar
Running:
    java -Dsamjdk.use_async_io_read_samtools=false -Dsamjdk.use_async_io_write_samtools=true -Dsamjdk.use_async_io_write_tribble=false -Dsamjdk.compression_level=2 -Dsamjdk.compression_level=5 -Xms3000m -jar /gatk/build/libs/gatk-package-4.0.4.0-local.jar MergeBamAlignment --VALIDATION_STRINGENCY SILENT --EXPECTED_ORIENTATIONS FR --ATTRIBUTES_TO_RETAIN X0 --ALIGNED_BAM /cromwell_root/fc-4449151c-8501-4474-a203-83d0c4dbd051/b66d34b9-d482-4325-9667-17466fddf3a4/PreProcessingForVariantDiscovery_GATK4/f1da863c-a52c-4bfe-98e3-d3a12887928a/call-SamToFastqAndBwaMem/shard-0/attempt-4/857_2976_2_2_H7VLWALXX_1.unmapped.unmerged.bam --UNMAPPED_BAM /cromwell_root/fc-4449151c-8501-4474-a203-83d0c4dbd051/uBAMs/857_2976_2_2/857_2976_2_2_H7VLWALXX_1.unmapped.bam --OUTPUT 857_2976_2_2_H7VLWALXX_1.unmapped.aligned.unsorted.bam --REFERENCE_SEQUENCE /cromwell_root/broad-references/hg38/v0/Homo_sapiens_assembly38.fasta --PAIRED_RUN true --SORT_ORDER unsorted --IS_BISULFITE_SEQUENCE false --ALIGNED_READS_ONLY false --CLIP_ADAPTERS false --MAX_RECORDS_IN_RAM 2000000 --ADD_MATE_CIGAR true --MAX_INSERTIONS_OR_DELETIONS -1 --PRIMARY_ALIGNMENT_STRATEGY MostDistant --PROGRAM_RECORD_ID bwamem --PROGRAM_GROUP_VERSION 0.7.15-r1140 --PROGRAM_GROUP_COMMAND_LINE bwa mem -K 100000000 -p -v 3 -t 16 -Y /cromwell_root/broad-references/hg38/v0/Homo_sapiens_assembly38.fasta --PROGRAM_GROUP_NAME bwamem --UNMAPPED_READ_STRATEGY COPY_TO_TAG --ALIGNER_PROPER_PAIR_FLAGS true --UNMAP_CONTAMINANT_READS true

My question is two-fold:
1. How can I resolve the "Caused by: java.io.IOException: No space left on device" error?
2. The example above has 48,709,353 reads marked for cross-contamination out of 516,000,000 records. Is this a particularly high number?

Thank you for the help!
Lee


Viewing all articles
Browse latest Browse all 1147

Trending Articles