I have a set of files generated by ion torrent server. It seems that the server produces a fastq file in the BAM format. I am quite surprised because I have been using an Illumina dataset, which produces a fastq file. The BAM of PGM looks quite different in comparison to the Illumina bam file(samtools view -H ion.bam), Any suggestions how to generate a Fastq from this bam.
Because Ion torrent uses bam files (unaligned/aligned bam) to store the sequencing machine, flow signal, base caller and aligner information. Especially, flow signal information is very important parameter in Ion torrent variant calling workflow. However, the fastq format could not store such information. If you will call variants using ion torrent data, you are better to the bam files that directly output from torrent suite and use the Torrent Variant Caller. If you will assemble the MDR E.coli genome, you could follow Pgibas's suggestion to convert bam to fastq by the bamtools.
If you can use bamToFastq like others have suggested, it is fine. Alternatively you can install FileExporter plugin for TorrentSuite and let it export FASTQ file for you automatically whenever a run is done on Iontorrent. At anytime you can run the FileExporter plugin on an existing analysis. Check this out: http://mendel.iontorrent.com/ion-docs/FileExporter-Plugin.html
I have a doubt. Whatever we get fastq files from torrent suite, I want to align them. Which alignment program should I use? BWA or bowtie2? Please let me know.
And this is all get (~200 lines; using samtools view -H), nonetheless their size is ~10Gb. I convert them to usual fastq using bamToFastq from bedtools.
Thanks a lot i eventually realized this through number of trials, my reads were not missing and the data was fine. I too converted them to fastq and now am further interested to annotate my data, is there a necessity to prepare contigs.fa of your reads if you have aligned your data against a ref genome and got the bam of ampped reads?
Try http://broadinstitute.github.io/picard/command-line-overview.html#SamToFastq
Dear Ashutosh, please see the above illustrated file!! It looks notthings like a BAM to me....Where is the CIGAR and all the relevant fields??
Can you please post a few example lines of the BAM data?
It goes on & on like this! & ends like below
It seems as per http://mendel.iontorrent.com/ion-docs/Technical-Note---Transition-from-SFF-to-BAM-format_37421247.html there is no more Fastq!
Dear alok.helix,
i'm also a user of IonTorrent and i'm quite sure you CAN download fastq from inside IonReporter, if i remember well...
It is phased out!! :(