To find the complementary strand when given a standard 5' to 3' DNA strand, match each of the four base pairs A,T,C, and G with T, A, G, and C, respectively. Done in the computer, we use the sed command for replacing the bases with the ones they correspond to.
To find the complement of the DNA strand, the following command is used:
To find the complement of the DNA strand, the following command is used: