Unconfigured Ad

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

    #1

    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

          • 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, Today, 11:13 AM
          0 responses
          10 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, Today, 10:48 AM
          0 responses
          9 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          32 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          40 views
          0 reactions
          Last Post SEQadmin2  
          Working...