Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • me91
    Member
    • Aug 2012
    • 15

    #1

    reads position in reference sequence(sam file)

    Hi all,

    there are some reads aligned. the .sam output file produced using bowtie, is like bellow and i want to extract aligned reads and their mapped positions on reference cromosome. I have read similar threads and found a sra format description but there are some differences! i need the position in reference sequence where each read has mapped.

    @HD VN:1.0 SO:unsorted
    @SQ SN:gi|224384765|gb|CM000666.1| LN:191154276
    @PG ID:Bowtie VN:0.12.8 CL:"bowtie -q -n 3 -e 100 -l 50 -y -S -p 8 D:\a\index\ch4indexed D:\a\SRR017963.fastq D:\a\output_file.sam"
    SRR017963.1 HWI-EAS153_5_30KE6AAXX:2:1:105:2042 length=76 4 * 0 0 * * 0 0 GTNNNTTNTTCTTGTGNTTTGAATTTAACCATGGAAGACAGTGATGGTGTAACTTATGCATTAAAGTGTGACAGTA :6!!!::!::::::::!:::::::::::::7777711131311331131111/13111101013/0/0111111/0 XM:i:0
    SRR017963.3 HWI-EAS153_5_30KE6AAXX:2:1:194:1662 length=76 4 * 0 0 * * 0 0 GAATGCAATCATCATCGCACAGAATCGAATGGAATCATCGAATGGACTCGAATGGAATAATCATTGAACGGAATCG :7:21::60:71-1:--&:0:4440(3::310372&*/.2'-66/3+023/.,226-3323+2'02.,262323,2 XM:i:0


    thanks for any advice.
  • kmcarr
    Senior Member
    • May 2008
    • 1181

    #2
    Originally posted by me91 View Post
    Hi all,

    there are some reads aligned. the .sam output file produced using bowtie, is like bellow and i want to extract aligned reads and their mapped positions on reference cromosome. I have read similar threads and found a sra format description but there are some differences! i need the position in reference sequence where each read has mapped.

    Code:
    @HD	VN:1.0	SO:unsorted
    @SQ	SN:gi|224384765|gb|CM000666.1|	LN:191154276
    @PG	ID:Bowtie	VN:0.12.8	CL:"bowtie -q -n 3 -e 100 -l 50 -y -S -p 8 D:\a\index\ch4indexed D:\a\SRR017963.fastq D:\a\output_file.sam"
    SRR017963.1 HWI-EAS153_5_30KE6AAXX:2:1:105:2042 length=76	4	*	0	0	*	*	0	0	GTNNNTTNTTCTTGTGNTTTGAATTTAACCATGGAAGACAGTGATGGTGTAACTTATGCATTAAAGTGTGACAGTA	:6!!!::!::::::::!:::::::::::::7777711131311331131111/13111101013/0/0111111/0	XM:i:0
    SRR017963.3 HWI-EAS153_5_30KE6AAXX:2:1:194:1662 length=76	4	*	0	0	*	*	0	0	GAATGCAATCATCATCGCACAGAATCGAATGGAATCATCGAATGGACTCGAATGGAATAATCATTGAACGGAATCG	:7:21::60:71-1:--&:0:4440(3::310372&*/.2'-66/3+023/.,226-3323+2'02.,262323,2	XM:i:0

    thanks for any advice.
    [Suggestion: when posting long lines of formatted text wrap them in [CODE] tags as I have done with your SAM lines so they will be readable. (Highlight the text you want to format as CODE then click on the hashtag (#) symbol in the formatting bar at the top of the message editor window.)]

    Read the SAM (not SRA) format specification: LMGTFY

    The two example lines you showed don't have a chromosomal position because they are unmapped.

    Comment

    • me91
      Member
      • Aug 2012
      • 15

      #3
      Read the SAM (not SRA) format specification: LMGTFY
      As i said i have read that. but it was explained that Each alignment line has 11 mandatory fields and the 4th field is 1-based leftmost mapping position. but this field is 4 in all my aligned reads!

      Comment

      • kmcarr
        Senior Member
        • May 2008
        • 1181

        #4
        Originally posted by me91 View Post
        As i said i have read that. but it was explained that Each alignment line has 11 mandatory fields and the 4th field is 1-based leftmost mapping position. but this field is 4 in all my aligned reads!
        The fourth field in your line is empty. Fields are separated by tabs; the first field (QNAME or query name) includes the entirety of:
        Code:
        "SRR017963.1 HWI-EAS153_5_30KE6AAXX:2:1:105:2042 length=76"
        SRR017963.1 and 'length-76' is separated by the rest of the ID by a spaces.

        The second field, the FLAG field is '4' which indicates that this was an unpaired read and that it is unmapped. The fourth field is '0' because it's unmapped. The third field (the RNAME or reference name) is '*' because the read is unmapped.
        Last edited by kmcarr; 08-27-2012, 11:45 AM. Reason: If you read this earlier I made a mess of it, misidentifying the fields.

        Comment

        • me91
          Member
          • Aug 2012
          • 15

          #5
          I was wrong counting fields. thank you ...

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
            by SEQadmin2



            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

            Despite this, “CRISPR helped turn genome editing from a specialized technique into
            ...
            Today, 11:01 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
            ...
            07-20-2026, 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, Today, 02:55 AM
          0 responses
          7 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-24-2026, 12:17 PM
          0 responses
          11 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-23-2026, 11:41 AM
          0 responses
          12 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-20-2026, 11:10 AM
          0 responses
          24 views
          0 reactions
          Last Post SEQadmin2  
          Working...