5
$\begingroup$

I have the files of 2 persons that got whole genome sequencing, one by nebula genomics and the other by dante labs.

  1. I want to compare their genomes to see if they are father and son.
  2. I want to see exactly which genetic sequences they share.
  3. In the shared sequences, I want to know what mutations exist only in the son.

Which program should I use?

Each company provide fastq and vcf files to the genome. so I have each genome in fastq and vcf. which is better to use?

(I have the files on my hard drive, so is it better to use offline program?)

$\endgroup$
3
  • $\begingroup$ I’m voting to close this question because I feel like this is not a precise technical question and it cannot be answered here. $\endgroup$
    – ATpoint
    Jul 4 at 22:42
  • 1
    $\begingroup$ This seems like a valid question to me; it is similar to bioinformatics projects I've worked on in the past, and I think it's reasonable for people to ask questions regardless of how complex the answers seem to other people. $\endgroup$
    – gringer
    Jul 5 at 1:08
  • $\begingroup$ I expect that answers to this will depend on what the input files look like. Could you please show the first few lines of the fastq files, and the first few lines of the VCF files (including a few lines beyond the header information)? $\endgroup$
    – gringer
    Jul 5 at 1:17
1
$\begingroup$

I think you can't do (2) and (3) without the mother.

(1) is doable to a very high accuracy. It is better to start with fastq. You need to generate a multi-sample VCF first. Here is a high-level overview: a) align reads with bwa-mem; b) sort alignments with samtools and then index the resulting BAM; c) call variants jointly with freebayes (or GATK if you like challenges). After you get the two-sample VCF, you go through every site where the father is homozygous and it is a high-quality site in both samples (e.g. average coverage, high mapping quality, not in difficult regions, etc). Among these sites, check if the child has the paternal allele. If you have a father-son pair, the child is expected to have all the paternal alleles in theory. In practice, if >99% of paternal homozygotes are present in the child, the two samples will almost certainly be a father-son pair. The actual threshold may depend on how you define "high-quality" sites. Errors may lead to apparent mendelian violations.

In principle, it is possible to do a similar analysis with the two provided VCFs, but you need to be very careful about various technical artifacts.

$\endgroup$
0
$\begingroup$

Assuming you've got genotyped VCF files from the same type of data, and they are similarly normalised, I expect that the VCF files will be easier to work with initially.

That's a lot of assumptions, so until there's more information about the input data, I'll just point you to bcftools merge, which I think would be a reasonable first step given those assumptions:

bcftools merge -o merged.vcf.gz A.vcf.gz B.vcf.gz

This will produce a merged VCF file that contains genotypes from both files on each line. To look for similarities and/or differences, you would then inspect each line to check whether the genotypes were the same or different (e.g. same: 1/1 1/1; different: 0/1 1/1).

$\endgroup$

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