2
$\begingroup$

I would like to convert 23andme text file to NextGen to BAM file for Yfull.com to read. It is difficult to get answers on how to convert to SAM/BAM file for the 23andme text file to be converted to SAM/BAM tools

$\endgroup$
8
  • 2
    $\begingroup$ Please include an example of the text file since 23andme is not a standard format or something that people in the field will necessarily be familiar with. But if you mean you just have a list of variant positions (which is what this sort of consumer service usually provides), it is impossible to convert to bam. $\endgroup$
    – terdon
    Mar 3, 2019 at 20:07
  • $\begingroup$ I would be happy to provide a text of 23andme. Is there a way to upload it? $\endgroup$ Mar 3, 2019 at 21:07
  • 1
    $\begingroup$ We just need to know what the file looks like so we can understand what you need. Just copy the first few lines (if there is a header, make sure you include both the header and a few lines of data) and paste them into your question. Use the formatting tools to format them as code. $\endgroup$
    – terdon
    Mar 3, 2019 at 21:11
  • 1
    $\begingroup$ Please show us a few lines of your 23&me file. What you are asking for is almost certainly impossible unless 23&me have given you the raw reads. We can't know unless you show us a few lines so we know what you have. $\endgroup$
    – terdon
    Mar 3, 2019 at 21:24
  • 2
    $\begingroup$ Note you can just edit your question and add/change whatever you need. You probably want to use "code" mode for the sample of your file, which you can achieve by copy-pasting the text, highlighting it with the mouse cursor and clicking on the "code" formatting button. $\endgroup$ Mar 4, 2019 at 10:13

3 Answers 3

11
$\begingroup$

Having done 23andme myself I can tell you that your variant file, which contains SNP genotypes, cannot be converted to a bam file. It does not contain the same information as a bam file. It may be helpful to familiarize yourself with those filetypes and the technologies used to obtain them. A SAM/BAM file contains alignments of reads obtained by sequencing. Your standard* 23andme analysis doesn't have reads, as it uses a SNP array for determining the alleles at predefined positions. Markers which are not included in your 23andme file cannot be added by other means because those were not genotyped by the array. Therefore also Y-DNA cannot use your 23andme file or add additional markers.

*For the sake of completeness: I am aware that under rare circumstances 23andme can perform WGS for additional variant typing, but I do not assume this is the case for OP.

$\endgroup$
3
$\begingroup$

If you just want to get the markers which were not reported/genotyped by 23andMe (as you mentioned in the comment), you don´t want to convert your 23andMe data to SAM/BAM (which is most probably really difficult or impossible, as explained by @Wouter De Coster), but rather to perform imputation on your data file. This will give you a genotype file with genotype or allele probabilities for all the markers. While it will not give you a 100% certainty for the lacking variants, it can certainly give you more information on many of them.

NB: you can imputate the Y-chromosome variants only if your 23andMe file contain data from Y-chromosome. If you want to know about that option, let me know.

$\endgroup$
3
$\begingroup$

I think the closest approximation for a SNP chip would be the intensity values. When I asked 23andMe about obtaining these, the answer was that they don't plan on adding this feature.

Some programs use the .vcf file format instead of the 23andMe format, but I think the 23andMe format is compatible with relatively more 3rd party software than some other vendors. If I remember correctly, I think DNA.land even has an intermediate .vcf file, which you can download.

I actually think it is important that 23andMe doesn't impute the variants in your genotype table. However, if you are trying to dig deeper into some SNP chip data, I believe you can still get genotyping for free from Genes for Good. They provide a few different "raw data" formats (such as .vcf files, with and without imputation, as well as a "23andMe format" file) and I got the impression that they would consider providing an even more raw form of data (to test the effect of generating genotypes on your own, even thought I don't think most sites will change). However, to be clear, they also do not currently provide intensity values (or some other even more raw form of data).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.