Hi All,
i need help to make an logic statement for my data.
i have this data:
A B
1# T/T G/G
2# C/C A/A
4# T/T G/G
5# T/C A/G
6# T/C A/A
7# T/C A/A
8# C/C A/G
9# T/T G/A
10# T/T G/G
Based on information, I want to replace whatever it can be(T/T)or(G/G)or(C/C)or(A/A) on 1#row with "A/A" and it can be(T/T)or(G/G)or(C/C)or(A/A) on 2#row with "B/B". And then,from 4#row until 10#row i want to use logical replacement if each row contain "T/G/C/A" like 1#row it should be replaced with "A",and if each row contain "C" it should be replaced with "B".
Here is the result that i want for A:
1# T/T >>> 1# A/A
2# C/C >>> 2# B/B
4# T/T >>> 4# A/A
5# T/C >>> 5# A/B
6# T/C >>> 6# A/B
7# T/C >>> 7# A/B
8# C/C >>> 8# B/B
9# T/T >>> 9# A/A
10# T/T >>> 10# A/A
Here is the result that i want for B:
1# G/G >>> 1# A/A
2# A/A >>> 2# B/B
4# G/G >>> 4# A/A
5# A/G >>> 5# B/A
6# A/A >>> 6# B/B
7# A/A >>> 7# B/B
8# A/G >>> 8# B/A
9# G/A >>> 9# A/B
10# G/G >>> 10# A/A
is there any logical function that i can use?
Thank you in advance.. :D
i need help to make an logic statement for my data.
i have this data:
A B
1# T/T G/G
2# C/C A/A
4# T/T G/G
5# T/C A/G
6# T/C A/A
7# T/C A/A
8# C/C A/G
9# T/T G/A
10# T/T G/G
Based on information, I want to replace whatever it can be(T/T)or(G/G)or(C/C)or(A/A) on 1#row with "A/A" and it can be(T/T)or(G/G)or(C/C)or(A/A) on 2#row with "B/B". And then,from 4#row until 10#row i want to use logical replacement if each row contain "T/G/C/A" like 1#row it should be replaced with "A",and if each row contain "C" it should be replaced with "B".
Here is the result that i want for A:
1# T/T >>> 1# A/A
2# C/C >>> 2# B/B
4# T/T >>> 4# A/A
5# T/C >>> 5# A/B
6# T/C >>> 6# A/B
7# T/C >>> 7# A/B
8# C/C >>> 8# B/B
9# T/T >>> 9# A/A
10# T/T >>> 10# A/A
Here is the result that i want for B:
1# G/G >>> 1# A/A
2# A/A >>> 2# B/B
4# G/G >>> 4# A/A
5# A/G >>> 5# B/A
6# A/A >>> 6# B/B
7# A/A >>> 7# B/B
8# A/G >>> 8# B/A
9# G/A >>> 9# A/B
10# G/G >>> 10# A/A
is there any logical function that i can use?
Thank you in advance.. :D
Last edited: