Rounding probabilities of vcf.gz format
0
0
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

plink vcf • 567 views
ADD COMMENT
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 3434 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6