Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to check read are properly paired from SAM file?

    I am new for NGS data.
    How to check reads are properly paired from SAM file?
    It is appreciated someone can point me some programs?

    Thanks,
    Aimin

  • #2
    Originally posted by jlfmssm View Post
    I am new for NGS data.
    How to check reads are properly paired from SAM file?
    It is appreciated someone can point me some programs?

    Thanks,
    Aimin
    Use 'samtools view -X <in.bam>'. All reads with a capital "P" in the flag field are properly paired.

    Comment


    • #3
      Thanks, I tried, but I got this error:

      [aimin@node01 all_sam_data]$ samtools view -X 1382_1.sam/1382_1.sam
      [bam_header_read] EOF marker is absent.
      [main_samview] fail to read the header.

      Comment


      • #4
        Originally posted by jlfmssm View Post
        Thanks, I tried, but I got this error:

        [aimin@node01 all_sam_data]$ samtools view -X 1382_1.sam/1382_1.sam
        [bam_header_read] EOF marker is absent.
        [main_samview] fail to read the header.
        Use the "-S" flag to specify that you are inputting a SAM file (not a BAM file). Please read the documentation, including the output when no options/input is specified.

        Comment


        • #5
          but I got this:
          [aimin@node01 all_sam_data]$ samtools view -S -X 1382_1.sam/1382_1.sam -o 1382_1_test.out
          [samopen] no @SQ lines in the header.
          [sam_read1] missing header? Abort!
          What I should do now?

          Comment


          • #6
            Originally posted by jlfmssm View Post
            but I got this:
            [aimin@node01 all_sam_data]$ samtools view -S -X 1382_1.sam/1382_1.sam -o 1382_1_test.out
            [samopen] no @SQ lines in the header.
            [sam_read1] missing header? Abort!
            What I should do now?
            The lines "no @SQ lines in the header" and "missing header?" should tell you to check the header in the SAM file. Is there one? If not, you have to feed in your reference with the "-T" option.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin




              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
              04-22-2024, 07:01 AM
            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 08:47 AM
            0 responses
            11 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            60 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            59 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            53 views
            0 likes
            Last Post seqadmin  
            Working...
            X