Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • giorgifm
    Member
    • Aug 2011
    • 35

    #1

    Tophat2 runs ending with truncated files [main_samview] truncated file

    Dear all,

    while running Tophat2 (default parameters, 64 bit centos), we keep encountering the following warning towards the end of the run:

    Code:
    Warning: couldn't remove all temporary files in /path
    -----------------------------------------------
    [2012-10-17 18:32:54] Run complete: 01:26:19 elapsed
    [main_samview] truncated file.
    [main_samview] truncated file.
    [main_samview] truncated file.
    We tried with Tophat v 2.0.4 and Tophat 2.0.5, paired with Bowtie v2beta7 and Samtools 0.1.18

    My first guess was "lack of disk space", but we tried with terabytes of space, and the thing is still happening (in a deterministic way, the warnings are identical by number of "[main_samview] truncated file" lines).

    The problem is not directly translated into a read loss. The number of read pairs contained in the sum accepted_hits.bam and unmapped.bam is always the same as the input fastq files. Any clue? Should we worry? Has anyone found the same problem?

    Federico
    Last edited by giorgifm; 11-16-2012, 06:16 AM.
  • giorgifm
    Member
    • Aug 2011
    • 35

    #2
    I may add that the same problem can be found by splitting the input fastq files in smaller pieces. The "[main_samview] truncated file" error keeps appearing multiple times, leaving the tmp folders intact within the Tophat output.
    Last edited by giorgifm; 11-16-2012, 06:18 AM.

    Comment

    • giorgifm
      Member
      • Aug 2011
      • 35

      #3
      It should be added that I reduced this problem by adding unique suffixes to the reads, e.g. /1 to first in pair and /2 to second in pair.

      Moreover, the warning ([main_samview] truncated file) is specific to versions of Tophat 2.0.4 and 2.0.5, absent in Tophat 2.0.0

      I hope this thread will help future people!
      Last edited by giorgifm; 11-16-2012, 06:20 AM.

      Comment

      • mckeays
        Junior Member
        • Jul 2012
        • 3

        #4
        Hello,

        I am having the same problem, I have plenty of disk space but still get two "[main_samview] truncated file." lines at the end of my TopHat2 output. Would love to know exactly what is causing it...

        I'd like to try your fix but I'm pretty new to all this so I have a couple of stupid questions: where did you add the \1 and \2 -- in the fastq files? And how did you do it?

        Thanks!
        Maria

        Comment

        • giorgifm
          Member
          • Aug 2011
          • 35

          #5
          Dear Maria,
          to reduce the number of "truncated file" lines, I simply added suffixes to read names.

          Reads first in pair:
          @HWI-ST1210:91152CACXX:8:1101:1247:2126
          @HWI-ST1210:91152CACXX:8:1101:1220:2217
          @HWI-ST1210:91152CACXX:8:1101:1445:2126

          @HWI-ST1210:91152CACXX:8:1101:1247:2126/1
          @HWI-ST1210:91152CACXX:8:1101:1220:2217/1
          @HWI-ST1210:91152CACXX:8:1101:1445:2126/1
          Reads second in pair
          @HWI-ST1210:91152CACXX:8:1101:1247:2126
          @HWI-ST1210:91152CACXX:8:1101:1220:2217
          @HWI-ST1210:91152CACXX:8:1101:1445:2126

          @HWI-ST1210:91152CACXX:8:1101:1247:2126/2
          @HWI-ST1210:91152CACXX:8:1101:1220:2217/2
          @HWI-ST1210:91152CACXX:8:1101:1445:2126/2
          However this does NOT seem to be related to the error that generates this warning:
          #[2012-11-15 17:47:05] Reporting output tracks
          #Warning: couldn't remove all temporary files in /projects/dummy/tophat/tmp/
          #-----------------------------------------------
          #[2012-11-15 18:10:45] Run complete: 02:08:14 elapsed
          #[main_samview] truncated file.
          #[main_samview] truncated file.
          #[main_samview] truncated file.
          #[main_samview] truncated file.
          #[main_samview] truncated file.
          I checked in the BAM outputs (accepted_hits.bam and unmapped.bam) that reads are NOT omitted, and the BAMs appear to be correct and complete. So this warning shouldn't compromise the work of Tophat, HOWEVER I still don't know what's causing it, except that it appeared between tophat 2.0.0 and tophat 2.0.4, and that it's present for different versions of the samtools as well.
          Last edited by giorgifm; 11-16-2012, 06:21 AM.

          Comment

          • mckeays
            Junior Member
            • Jul 2012
            • 3

            #6
            Thanks very much, I will give it a try. I have noticed that some of my "accepted_hits.bam" files are very small (e.g. 203M) but maybe that is how it should be.

            Comment

            • giorgifm
              Member
              • Aug 2011
              • 35

              #7
              Dear Maria, I am assuming you are using Illumina paired reads, right?
              In that case, to check if your BAM is complete, you should check if the sum of pair names by merging accepted_hits.bam and unmapped.bam is identical to half the number of reads given as an input.

              You can do so playing with samtools view, cut-f1, sort, uniq, wc-l and maybe sed to remove the "/1" and "/2" (the old Casava standard, the new one looks like 1:... and 2:...) from the read names in the unmapped.bam file.
              Last edited by giorgifm; 11-16-2012, 06:09 AM.

              Comment

              • mckeays
                Junior Member
                • Jul 2012
                • 3

                #8
                Aha, yes I have paired reads, I will give this a try also, thank you very much!

                Comment

                • hypno
                  Member
                  • Feb 2013
                  • 12

                  #9
                  I have the same problem but I don't understand how to resolve...The count of the reads gave me a 50% of the sum of line in my input.

                  I have file _1 and _2 but I not obtain complete .sam file..ANy idea? Thanks for any help!

                  Comment

                  • ymc
                    Senior Member
                    • Mar 2010
                    • 496

                    #10
                    I have this error also. What are the consequences of this error?

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                      by SEQadmin2




                      NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
                      Today, 06:46 AM
                    • 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

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 10-28-2026, 09:57 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-28-2026, 09:51 AM
                    0 responses
                    15 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-22-2026, 11:13 AM
                    0 responses
                    68 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-22-2026, 10:48 AM
                    0 responses
                    48 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...