This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to convert a VCF 4.1 file to Bam file please?

Hello!

I have done a Big Y ftdna and I want to upload a Bam file into yfull. I saw that I need 100$ to generate a Bam file with ftdna. It's too expansive for me! Is there any solution to generate a Bam file with a VCF 4.1 ftdna file please?

Thanks for your reply.

vcf bam

Ok Pierre, I will read this link! Thanks!

1 answer

There's no way of doing this, since going from .bam -> .vcf necessarily loses a lot of information.

Are you sure you can't upload the data in vcf format?

We can upload a VCF file to yfull, but It is recommended to upload a Bam file for best genetic correspondences. I don't know why.

To explain the why: VCF files may be generated by two different assays - Genotyping and Sequencing.

While the former costs a company in the range of 50$ in material and personnel costs, the latter is in the range of 200$-500$, depending on the amount of data generated. Business models vary, such that a company may ask a customer to pay the full price upfront or initially offer lower prices to later charge for additional services.

.bam files store sequencing data and when a VCF file is generated from it, a lot of information is lost: Imagine a high resolution photo taken by your camera that you scale down to 100px. You can not go back from there to a detailed 5000px image again. You can maybe impute information, but not bring the original information back.

Therefore: Whatever you do now, even if you manage to create a *.bam file, the genetic correspondences will not improve over the VCF that you already have. In case you ordered a sequencing, the more detailed information is on record, but you will not get access to it without covering the additional costs.

Ah ok I understand now! It's like a .wav audio file format and a compressed file like mp3! If we use a mp3 format to generate the origin wav format, it is not possible! I undersatnd now what is a bam and vcf file! Thanks for your reply!

Log in to answer this question.