Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Phantom123
    Member
    • Mar 2012
    • 13

    Samtools BAM to bcf question

    Dear All,
    i am using the following command to convert a BAM file to a bcf file:

    samtools mpileup -uf genome.fa raw.accepted_hits.bam|bcftools view -bvcg - > raw.bcf

    i think there is a way to insert the genome.fa.fai file (if it is available) in the above command to speed up the process of bcf file creation. does someone know how that is done?


    Thanks for your help.
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    The fai file is required for mpileup to work. If it doesn't find one, it will attempt to make it on the fly. So your command line is fine.

    Comment

    • Phantom123
      Member
      • Mar 2012
      • 13

      #3
      thank you.

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      15 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      26 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      37 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 12:03 PM
      0 responses
      61 views
      0 reactions
      Last Post SEQadmin2  
      Working...