Hi Perl Experts,
I'm new for perl. Thanks to give some time for my question.I have extract shared positions between two files and now I have one file like following. File is tab delimited
Chr1 position QUAL GT_1 GT_2
1. chr1 478493 595 G/T G/C
2. chr1 879243 700 A/T A/A
3. chr2 889922 1300 C/C C/C
4. chr2 1926372 300 T/A T/A
5. chr3 237474 500 G/C C/C
6. chr3 575757 700 A/T A/A
7. chr3 6666874 746 T/T T/T
and so on
I like to extract list in new file when column 4 not match with coloumn 5 then it has to print complete row in new file. Another thing I want It also to calculate how many A/T converted to AA
Expected output
chr position QUAL GT_1 GT_1
1. chr1 478493 595 G/T G/C
2. chr1 879243 700 A/T A/A
3. chr3 237474 500 G/C C/C
4. chr3 575757 700 A/T A/A
Total number A/T conveted to A/A =2
Total number G/C converted to C/C =1