How to Extract Unaligned Reads From a BAM

BAM files are binary formats of sequencer readers. They store scientific nucleotide data in a compressed format, mixing both aligned and unaligned reads together. They are controlled with the “bam2fastq” tool, a computer command that comes installed with many nucleotide-sequencing programs (you can also get it for free.) To extract the unaligned reads from a BAM file, then, all you need is the Windows command line.

Instructions

    • 1

      Type “bam2fastq” into the Start menu search bar to make sure you have the tool (you don’t need to open it.) If you do not, get it for free in Resources.

    • 2

      Type “cmd.exe” into the Start menu search bar. Click “cmd.exe” when it appears above. This opens the windows command line.

    • 3

      Type “bam2fastq --unaligned FILELOCATION.bam” (no quotes) into the command window.

    • 4

      Replace “FILELOCATION” with the location of the BAM file. Use the format C:\Folder1\Folder2\File.bam.”

    • 5

      Hit "Enter." This will pop up a text window with the unaligned reads from that particular BAM file.

Related Searches:

References

Resources

Comments

Related Ads

Featured