Entering edit mode
11.4 years ago
bibb77
▴
90
Hello everyone, I would like to change allele codes to the reverse complement, this is the file that I have, is composed of Allele 1, Allele2 and Strand Orientation:
A T +
T T +
A T -
C T -
G G -
G C +
A G -
I need to flip only the ones oriented to the minus strand, so the result would be like this:
A T +
T T +
T A +
G A +
C C +
G C +
T C +
The file is tab separated and has arround 580k SNPs, I will really appreciate if you can help me with some nice awk/perl or any code to do that :)