Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ians
    Member
    • Aug 2011
    • 53

    sorted bam larger than unsorted bam

    Recently i've sorted 2 different alignments and in both cases the sorted bam is ~3x larger in disk size. I did the sort twice with the same result.
    Does anyone have a suspicion of what is going on here?
  • xied75
    Senior Member
    • Feb 2012
    • 129

    #2
    1, output bam uncompressed? (show the command line pls.)
    2, you are sorting on name or coord? could it be that bgzip block can't compress that hard after the sort? (Very unlikely though.)

    Comment

    • ians
      Member
      • Aug 2011
      • 53

      #3
      Here's what i'm running:

      Code:
      time -v samtools sort $mergedBam $sortedBam
      Another run yielded the same result.

      Comment

      • jkbonfield
        Senior Member
        • Jul 2008
        • 146

        #4
        Do you have a combination of shallow coverage and excessively long read names? That can cause the sorting to be of little benefit to sequence and positional compression while also being detrimental to read name compression.

        Comment

        • ians
          Member
          • Aug 2011
          • 53

          #5
          headers aren't anything out of the ordinary. Here are a few entries from the sorted bam:

          Code:
          HWI-ST1063_0137:6:1308:10615:65342#0	161	chr1	765	59	95M6S	=	1019	354	TGACGGACTACATGAGATAGAAGAGAGAATTTTGGGAGCAGAAGATATCATAGAAAACATTGACACAACCTTCAAAGAGAACGTAAATAGGAAAAAGCTCC	?=++4B0@FHDB:<+C::CE@HC>?38C9CHAFHGEDHIJCDAFCHGI@FCGBH@@AFEGIIEEHHGH??DFD@>@CA3;?A>A;<<BAC:@CDD######	PG:Z:novoalign	AS:i:3UQ:i:36	NM:i:0	MD:Z:95
          HWI-ST1063_0137:6:1308:10615:65342#0	81	chr1	1019	1	101M	=	765	-354	ATAAATGTCCATAAGTAGACATGAAGCCTGCAGAATTCCAAATAGAATGGACCAGAAAATAAATTCCTCCTGTCACATAATAGTCAAAACACCAAATGCAC	>>;>;5;@;;A;7.))7;7@C=?CA;@DAA=ADC;ECC=DB@IED<DBB?0D99??0499:<9DDC88:2<F9FAFDCA?CCBEE<:C<?DDABDB+??1?	PG:Z:novoalign	AS:i:1UQ:i:14	NM:i:1	MD:Z:14A86	CC:Z:=	CP:i:71209	ZS:Z:R	ZN:i:3	NH:i:3	HI:i:1	IH:i:3
          HWI-ST1063_0137:6:2303:18332:58082#0	419	chr1	1044	1	13S88M	=	1151	210	GAACATAGAAGAAGCCTGCAGAATTCCAAATAGAATGGACCAGAAAATAAATTCCTCCTGTCACATAATAGTCAAAACACCAAATGCACAAAACAAAGAAT	CCCFFFFFHHHHHJJJJJJJGGJJJJJJIGIGJJJIJIIJJJJJJJJIHIEHIDIGIIIIGIGGIJG@GGGGIIIJJHHHHFFFEAACCEEBDDDDACDDC	PG:Z:novoalign	AS:i:105	UQ:i:105	NM:i:0	MD:Z:88	PQ:i:135	SM:i:70	AM:i:70	ZS:Z:R	ZN:i:3	NH:i:3	HI:i:3	IH:i:3
          This is an RNAseq project and we have sufficient number of reads to get a deep sampling. I suspect something is going wrong at this step because down stream I am getting 20% coverage over the genome with this sample...


          I aligned using novoalign, if that is of any consequence.

          Comment

          Latest Articles

          Collapse

          • seqadmin
            New Genomics Tools and Methods Shared at AGBT 2025
            by seqadmin


            This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

            The Headliner
            The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
            03-03-2025, 01:39 PM
          • seqadmin
            Investigating the Gut Microbiome Through Diet and Spatial Biology
            by seqadmin




            The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
            02-24-2025, 06:31 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 03-20-2025, 05:03 AM
          0 responses
          17 views
          0 reactions
          Last Post seqadmin  
          Started by seqadmin, 03-19-2025, 07:27 AM
          0 responses
          18 views
          0 reactions
          Last Post seqadmin  
          Started by seqadmin, 03-18-2025, 12:50 PM
          0 responses
          19 views
          0 reactions
          Last Post seqadmin  
          Started by seqadmin, 03-03-2025, 01:15 PM
          0 responses
          185 views
          0 reactions
          Last Post seqadmin  
          Working...