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

      • kinpict.com
        Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
        by kinpict.com
        The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
        Today, 06:37 PM
      • 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,...
        10-30-2026, 06:46 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 11-12-2026, 07:59 AM
      0 responses
      27 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-05-2026, 09:25 AM
      0 responses
      35 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-03-2026, 11:54 AM
      2 responses
      56 views
      0 reactions
      Last Post kinpict.com  
      Started by SEQadmin2, 10-28-2026, 09:57 AM
      0 responses
      175 views
      0 reactions
      Last Post SEQadmin2  
      Working...