Parse paml output file in R
Hi all,
Anyone familiar with a way to parse through the Bayes Empirical Bayes (BEB) results that come out of running PAML, in R? The file is formatted like so:
When I read it into R, it reads each line as a single character vector, therefore I have to seperate the elements into multiple columns. I tried using the separate function however because the number of spaces before the first numerical value varies, this did not work (there are 4 spaces before “87” in row 7 and only 3 spaces before “100” in row 8).
Desired output:
col1 col2 col3
24 S 0.583
30 A 0.852
34 C 0.566
36 Q 0.563
75 L 0.987*
81 P 0.883
87 A 0.570
100 H 0.925
Thank you.
• 13 views
Read more here: Source link