Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • biochemMScstudent
    Junior Member
    • Aug 2012
    • 3

    #1

    Premature EOF using Picard

    Hi,

    We recently received sequencing data in the form of BAM files that are ~5.5x larger than what we normally deal with after upgrading our sequencer. I have had to submit Picard commands like MarkDuplicates, AddOrReplaceReadGroups etc. by submitting jobs in my terminal. Since doing this, I have been receiving premature EOF errors. As for a suggestion I found a while ago, I used the command $ tail problem.bam | hexdump -C to view the EOF marker and found that it was present although not at the end of the file where it normally has been when I have run earlier data sets. I have pasted what I see here:

    000005f0 f8 f6 25 bc 3a 51 28 f1 64 6a 98 38 25 f9 1f 3c |..%.:Q(.dj.8%..<|
    00000600 29 71 3b 11 61 00 00 1f 8b 08 04 00 00 00 00 00 |)q;.a...........|
    00000610 ff 06 00 42 43 02 00 1b 00 03 00 00 00 00 00 00 |...BC...........|
    00000620 00 00 00 5b 57 65 64 20 4e 6f 76 20 30 37 20 31 |...[Wed Nov 07 1|
    00000630 36 3a 31 31 3a 32 38 20 45 53 54 20 32 30 31 32 |6:11:28 EST 2012|
    00000640 5d 20 6e 65 74 2e 73 66 2e 70 69 63 61 72 64 2e |] net.sf.picard.|
    00000650 73 61 6d 2e 41 64 64 4f 72 52 65 70 6c 61 63 65 |sam.AddOrReplace|
    00000660 52 65 61 64 47 72 6f 75 70 73 20 64 6f 6e 65 2e |ReadGroups done.|
    00000670 20 45 6c 61 70 73 65 64 20 74 69 6d 65 3a 20 32 | Elapsed time: 2|
    00000680 36 2e 30 36 20 6d 69 6e 75 74 65 73 2e 0a 52 75 |6.06 minutes..Ru|
    00000690 6e 74 69 6d 65 2e 74 6f 74 61 6c 4d 65 6d 6f 72 |ntime.totalMemor|
    000006a0 79 28 29 3d 35 35 39 32 31 38 36 38 38 0a |y()=559218688.|
    000006ae

    I have bolded the 28 byte EOF marker. It should be at the end of the file but it is not. I am wondering if the information being added to the end of the file is the summary that Picard writes that got put to the file when I ran this command as a job. Does anyone have an idea of what is going on? Thank you so much! Here is the command I am using.

    /opt/sharcnet/sq-tm/2.4/bin/sqsub -o sorted-lane1.marked.bam --memperproc=20G -r 7d \
    > java -jar ./MarkDuplicates.jar INPUT=sorted-lane2.bam METRICS_FILE=metrics CREATE_INDEX=true VALIDATION_STRINGENCY=LENIENT
    Last edited by biochemMScstudent; 11-09-2012, 07:06 AM. Reason: typo
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    Somehow some debug information has ended up at the end of your BAM file. One possible cause if the debugging was written to stdout (which was piped to the BAM file) instead of stderr. Or, it could just be a Picard bug where the debugging has wrongly been written to the output file. But I am just guessing here.

    I'd ask the Picard developers about this if I were you...

    Comment

    • biochemMScstudent
      Junior Member
      • Aug 2012
      • 3

      #3
      OK thanks very much. I was able to run the command without submitting a job so I did get the data I need, but in the future it my files are even larger I may have no choice but to submit Picard commands using jobs and not through command line so I will look into notifying Picard developers about this. Thanks again!

      Comment

      • maubp
        Peter (Biopython etc)
        • Jul 2009
        • 1544

        #4
        Hmm. Perhaps the qsub did something unexpected with the stdout/stderr pipes. You could try a simple wrapper script (qsub the shell script, the shell script calls Picard). That may solve it.
        Last edited by maubp; 11-12-2012, 07:02 AM. Reason: markup

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        27 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        20 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        43 views
        0 reactions
        Last Post SEQadmin2  
        Working...