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
            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
          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 07:59 AM
          0 responses
          13 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-05-2026, 09:25 AM
          0 responses
          32 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-03-2026, 11:54 AM
          0 responses
          45 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-28-2026, 09:57 AM
          0 responses
          170 views
          0 reactions
          Last Post SEQadmin2  
          Working...