Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cdry7ue
    Member
    • Feb 2011
    • 20

    SAM header missing in BFAST

    Nils,
    I am using the command
    bfast postprocess -f ref.fa -i run8.baf > run8.sam
    I get the sam file but the header is missing. Is there a qucik way to get the header in there too.
    thanks
    -Ashish
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    Note: I moved this to its own thread since it had nothing to do with the previous thread.

    The header is printed by BFAST and should not be missing. Could you post "head run8.sam"? Were there any warning/error messages?

    Nils

    Comment

    • cdry7ue
      Member
      • Feb 2011
      • 20

      #3
      Nils,
      My bad, there is no problem with BFAST. I was trying to have RSamtools package read a sam file and it was producing an error, apparently it only reads bam.

      > X<-readBamGappedAlignments('run8_12.sam')
      Error in .io_bam(.scan_bam, file, index, reverseComplement, tmpl, param = param) :
      SAM/BAM header missing or empty
      file: 'X:\Ashish\nextgen\ion3\bfast_processed\run8_12.sam'

      However it works once it is turned into bam using samtools
      samtools view -bS run8_default.sam >run8_default.bam

      X<-readBamGappedAlignments('run8_default.bam')

      Nils I was wondering if there is a way to filter reads from the .baf file based on the real
      alignment quality score.(Also is there anyway this score can be seen in the sam file to filter on later ?) E.g. I would want to keep the read with score 3550, while getting rid of the read with -250 in score column(see below).

      @MNZKY:4:144 0 1
      GTG..bla.. :>>..bla..bla.. 1
      1 1 + 3550 255 103 gtgc…bla..bla
      @MNZKY:4:127 0 1
      GTG..bla.. ))..bla..bla.. 1
      1 1 + -250 255 108 gtgc…bla..bla

      Thanks for your quick response....

      Comment

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        #4
        Take a look at "bfast postprocess". You can also remove low quality alignments from the SAM by using the AS tag.

        Comment

        • cdry7ue
          Member
          • Feb 2011
          • 20

          #5
          I was wondering if there is scripts that are available to do that. If not I could always write my own to shave off lines with less than desired AS values. Btw are there any other dependencies in SAM like number of lines etc in the header?

          Comment

          • cdry7ue
            Member
            • Feb 2011
            • 20

            #6
            Nils,
            I was wondering if the type of quality score encoding would alter the workings of BFast in any way. I am guessing as long as it is of PHRED type, the offset of 33 or 64 (Illumina) shouldnt really matter, since you are probably using some type of additive scheme in you local smith waterman scoring algorithm?
            Thanks
            Ashish

            Comment

            • nilshomer
              Nils Homer
              • Nov 2008
              • 1283

              #7
              Originally posted by cdry7ue View Post
              Nils,
              I was wondering if the type of quality score encoding would alter the workings of BFast in any way. I am guessing as long as it is of PHRED type, the offset of 33 or 64 (Illumina) shouldnt really matter, since you are probably using some type of additive scheme in you local smith waterman scoring algorithm?
              Thanks
              Ashish
              It doesn't matter in BFAST, but since the quality string is directly outputted to the SAM file, it may not be compliant if the qualities are in +64 format. My advice is to always have them in Sanger PHRED format.

              Comment

              Latest Articles

              Collapse

              • mylaser
                Reply to Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                by mylaser
                The world of online gaming has grown tremendously over the past few years, giving players access to exciting sports, casino games, and interactive entertainment from the comfort of their homes. Among the platforms gaining attention, Kheloyaar has become a trusted destination for users seeking a fast, secure, and engaging gaming experience.
                Whether you're a first-time visitor or an existing user, understanding the features of Kheloyar and the Kheloyaar login process can help you enjoy everything...
                Today, 12:33 AM
              • SEQadmin2
                Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                by SEQadmin2


                Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                The systematic characterization of the human proteome has
                ...
                Yesterday, 11:48 AM
              • SEQadmin2
                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                by SEQadmin2



                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                ...
                07-09-2026, 11:10 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Yesterday, 11:10 AM
              0 responses
              8 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-13-2026, 10:26 AM
              0 responses
              30 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-09-2026, 10:04 AM
              0 responses
              39 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-08-2026, 10:08 AM
              0 responses
              25 views
              0 reactions
              Last Post SEQadmin2  
              Working...