This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Rounding probabilities of vcf.gz format

Hi all,

I want to round the probabilities of GT:DS:HDS:GP inside a vcf.gz to nearest decimals. For example, for a particular position if a sample has 0| 0.001:0.000,0.999,0.000,0.000 I would like to round it to 0|0:0,1,0,0. Can anybody let me know which plink functions can achieve that?

Thanks

plink vcf

A couple of points:

  1. Please use the formatting bar (especially the code option) to present your post better. You can use backticks for inline code (`text` becomes text), or select a chunk of text and use the highlighted button to format it as a code block. If your code has long lines with a single command, break those lines into multiple lines with proper escape sequences so they're easier to read and still run when copy-pasted. I've done it for you this time.
    code_formatting

  2. You have VCF data and you'd like to extract/summarize specific fields in it. "Convert" is an extremely vague term and on professional/scientific forums, aim to be as specific as you can.

Thank you. This is my 1st post and I will keep those in mind in future

0 answers

No answers yet.

Log in to answer this question.