DEploid-dev / DEploid

dEploid is designed for deconvoluting mixed genomes with unknown proportions. Traditional ‘phasing’ programs are limited to diploid organisms. Our method modifies Li and Stephen’s algorithm with Markov chain Monte Carlo (MCMC) approaches, and builds a generic framework that allows haloptype searches in a multiple infection setting.
http://deploid.readthedocs.io/en/latest/index.html
GNU General Public License v3.0
20 stars 10 forks source link

PLAF file #362

Open trn30 opened 3 months ago

trn30 commented 3 months ago

Hello, I am trying to use DEploid with vcf files obtained through GATK and I don't know how to generate the PLAF file, I have tried to extract from the gatk vcf the AF value and generate a table as required but it generates this error:

Error: Number of sites was wrong (compares to ref count)

could you help me to solve this question or tell me how to generate the correct PLAF file?

nramme commented 2 months ago

I am also having this problem. Does anyone have a solution?

shajoezhu commented 2 months ago

dear @nramme and @trn30 , just saw your message,

please see this repo https://github.com/DEploid-dev/DEploid-Supplementary-Materials

I initialy filter the vcf file to high quality sites, extract the ref and alt counts for each sample, and you can compute the plaf by

PLAF = \sum{ALT} / (\sum{ALT} + \sum_{REF})

trn30 commented 2 months ago

Thank you very much for your reply, I have followed your recommendations and got the plaf file but when I run deplod I get this error as a result:

"Error: Number of sites was wrong (compared to ref count) in: /mnt/beegfs/lab204/Pacbio_clones_0523/Phasing/variantcalling/demultiplex.bc2067_2068_30_70_merged_PLAF.txt"

The number of lines in the plaf file matches the number of lines validated in the vcf file. I have also added a header to the PLAF files containing "CHROM POS PLAF" separated by tabs al the rest of the rows.

I am very interested in using the program, so if you could help me to correct these errors and make it work I would be very grateful.

Thanks in advance.