Entering edit mode
2.3 years ago
Nazmus
•
0
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
A couple of points:
Please use the formatting bar (especially the
code
option) to present your post better. You can use backticks for inline code (`text` becomestext
), 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.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