Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joseph
    Member
    • Feb 2008
    • 39

    #1

    how to extract raw unaligned reads?

    Hello

    I used bowtie to map sequencing reads:
    Code:
    > bowtie ~/hg19 -v 2 -k 5 --best --strata -S -t reads.fastq reads.sam
    End-to-end 2/3-mismatch full-index search: 01:00:21
    # reads processed: 12084153
    # reads with at least one reported alignment: 9391748 (77.72%)
    # reads that failed to align: 2692405 (22.28%)
    Reported 30293838 alignments to 1 output stream(s)
    I would like to make a fastq file from the reads with at least one reported alignment [(9391748 (77.72%)].
    Converting sam to bam and then using the samtools view with the -F 4 option gives me the Reported 30293838 alignments.
    Any suggestions will be appreciated.
    Joseph
  • Nicolas
    Member
    • Apr 2009
    • 41

    #2
    You can use Bowtie's options (--al and --un) to output a fast[aq] files with the unmapped reads, and/or as fast[aq] with the reads that align at least once:

    --al <filename>
    Write all reads for which at least one alignment was reported to a file with name <filename>. Written reads will appear as they did in the input, without any of the trimming or translation of quality values that may have taken place within bowtie. Paired-end reads will be written to two parallel files with _1 and _2 inserted in the filename, e.g., if <filename> is aligned.fq, the #1 and #2 mates that fail to align will be written to aligned_1.fq and aligned_2.fq respectively.
    --un <filename>
    Write all reads that could not be aligned to a file with name <filename>. Written reads will appear as they did in the input, without any of the trimming or translation of quality values that may have taken place within Bowtie. Paired-end reads will be written to two parallel files with _1 and _2 inserted in the filename, e.g., if <filename> is unaligned.fq, the #1 and #2 mates that fail to align will be written to unaligned_1.fq and unaligned_2.fq respectively. Unless --max is also specified, reads with a number of valid alignments exceeding the limit set with the -m option are also written to <filename>.
    I hope it helps

    Comment

    • joseph
      Member
      • Feb 2008
      • 39

      #3
      Originally posted by joseph View Post
      Hello

      I used bowtie to map sequencing reads:
      Code:
      > bowtie ~/hg19 -v 2 -k 5 --best --strata -S -t reads.fastq reads.sam
      End-to-end 2/3-mismatch full-index search: 01:00:21
      # reads processed: 12084153
      # reads with at least one reported alignment: 9391748 (77.72%)
      # reads that failed to align: 2692405 (22.28%)
      Reported 30293838 alignments to 1 output stream(s)
      I would like to make a fastq file from the reads with at least one reported alignment [(9391748 (77.72%)].
      Converting sam to bam and then using the samtools view with the -F 4 option gives me the Reported 30293838 alignments.
      Any suggestions will be appreciated.
      Joseph

      thank you for your help.

      Comment

      Latest Articles

      Collapse

      • kinpict.com
        Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
        by kinpict.com
        The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
        Today, 06:37 PM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 11-12-2026, 07:59 AM
      0 responses
      27 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-05-2026, 09:25 AM
      0 responses
      35 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-03-2026, 11:54 AM
      2 responses
      56 views
      0 reactions
      Last Post kinpict.com  
      Started by SEQadmin2, 10-28-2026, 09:57 AM
      0 responses
      175 views
      0 reactions
      Last Post SEQadmin2  
      Working...