Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shuoguo
    Member
    • Sep 2012
    • 23

    #16
    Originally posted by dpryan View Post
    Ah, then since this is just hg18, you have a two options:

    1) Do what I suggested above, substituting the length of the various chromosomes in hg18 for the made up values I originally suggested. You would have to look up these values.

    2) Download the hg18 fasta file and run "samtools faidx" on it. You can then use the "-t" option that you tried before with the resulting .fai file. This is effectively the same as option 1, but requires less googling.

    BTW, I hope you replaced all of the coordinate information rather than just the chromosome (position 3). Otherwise whatever you do downstream will be messed up.
    Thank you!
    I did something similar and it is able to produce bam files now.

    Although kind of disappointed that i cannot use the tview option

    /usr/local/samtools-0.1.18/samtools tview test.bam
    [bam_index_load] fail to load BAM index.
    $ /usr/local/samtools-0.1.18/samtools index test.bam
    [bam_index_core] the alignment is not sorted (all-hg18_9815): 2498970
    > 2498636 in 1-th chr
    [bam_index_build2] fail to index the BAM file.

    Comment

    • masterpiece
      Member
      • Mar 2009
      • 40

      #17
      About the tview, from the way you run the command, I think u missed something. Have you sort the bam file using samtool sort command? If not, you have to sort them 1st, before doing indexing.

      Code:
      samtools sort [-on] [-m <maxMem>] <in.bam> <out.prefix>

      Code:
      samtools index <sorted.bam>

      And from the tview run, u forgot to include the reference sequence

      Code:
      samtools tview  <aln.sorted.bam> [ref.fasta]


      You can check out this post. This might help you

      Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc
      Last edited by masterpiece; 09-27-2012, 07:38 PM.

      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, Yesterday, 11:13 AM
      0 responses
      19 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 10:48 AM
      0 responses
      18 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
      42 views
      0 reactions
      Last Post SEQadmin2  
      Working...