fastq and bam files
1
0
Entering edit mode
7.6 years ago

How to? Using the following alignment entry from a BAM file reconstruct the equivalent FASTQ entry.

ILLUMINA-EAS45_6:1:1:3:2025:0:1:1 0 chr1 115679594 255 36M * 0 0 AAGCACAGGACTATTCTGTCTCATTTTCCAAATAGA ABCABBBCB@@CBCB?B@B?BA@A?A>=68999:59 XM:i:0 NM:i:0 MD:Z:36

sequence • 2.3k views
ADD COMMENT
0
Entering edit mode

homework ?

ADD REPLY
0
Entering edit mode

yes, would be great to get some tips. I am familiar with the fastq and usually get my data in the form of vcfs but that is puzzling.

ADD REPLY
2
Entering edit mode

See entries for FASTQ format and SAM format. Should be easily apparent what fields to select from your bam to reconstruct the original read.

ADD REPLY
2
Entering edit mode
7.6 years ago
mastal511 ★ 2.1k

Unless this is homework, where you have to write code yourself to do this, there are existing tools that will do the conversion, such as Picard tools SamToFastq, https://broadinstitute.github.io/picard/command-line-overview.html#SamToFastq.

ADD COMMENT

Login before adding your answer.

Traffic: 2326 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6