Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • papori
    Senior Member
    • Dec 2010
    • 181

    #1

    Converting format insurance

    Hi all,
    Probably this is a FAQ, but still i didnt find a good answer..

    I am converting from bam to fastq.
    My bam's are paired end, coordinated sorted and very large (100Gb+).
    For my analysis i need only the first pair.

    Right now i am using these 2 commands:

    For converting bam to sam for the first pair.
    Code:
    samtools view -h -f 0x0040 $line > $line.pe1.sam
    and for parsing the fastq from the sam format.
    Code:
    cat $line.pe1.sam | grep -v ^@ | awk '{print "@"$1"\n"$10"\n+\n"$11}' > $line.pe1.sam.fq
    this i took from:


    How can i be sure that i got all the reads? mapped + unmapped of the first pair?

    Thanks,
    Pap
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    Samtools does (now) have a BAM to FASTQ option, that might be easier.

    Comment

    • papori
      Senior Member
      • Dec 2010
      • 181

      #3
      Originally posted by maubp View Post
      Samtools does (now) have a BAM to FASTQ option, that might be easier.
      Thanks maubp!!

      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
      26 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
      55 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...