Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Code needed to convert call variable to two separate variables

$
0
0

I have a file exported from a PCR plate software. I need a code to convert the call variable ("Allele 1, Allele 2, Heterozygote and No Call") to the two separate variable ("G1-2 1" and "G1-2 2")

Definition

No call is blank

Allele 1 is +/+

Allele 2 is G11384M/G11384M (in superscript if this is possible in R)

Heterozygote is G11384M/+

Any help/guidance would be greatly appreciated

Orginal File Export

enter image description here

What I need

enter image description here

Data str

Classes ‘tbl_df’, ‘tbl’ and 'data.frame':   96 obs. of  2 variables:
 $ Well: chr  "A01""A02""A03""A04" ...
 $ Call: chr  "No Call""No Call""Allele 1""Allele 1" ...


Viewing all articles
Browse latest Browse all 201839

Trending Articles