This commit is contained in:
Zengtudor 2024-09-18 18:02:18 +08:00
parent fc5c9e0fa0
commit 8c4be1f9cf

View File

@ -35,32 +35,25 @@ void reverseComplement(std::array<char, MAX_SIZE> &DNAsequence,const size_t buf_
if (DNAsequence[i] == 'A'){ if (DNAsequence[i] == 'A'){
// l = l + 'T'; // l = l + 'T';
l = 'T'; l = 'T';
} }else if (DNAsequence[i] == 'a'){
if (DNAsequence[i] == 'a'){
// l = l + 'T'; // l = l + 'T';
l = 'T'; l = 'T';
} }else if (DNAsequence[i] == 'c'){
if (DNAsequence[i] == 'c'){
// l = l + 'G'; // l = l + 'G';
l = 'G'; l = 'G';
} }else if (DNAsequence[i] == 'C'){
if (DNAsequence[i] == 'C'){
// l = l + 'G'; // l = l + 'G';
l = 'G'; l = 'G';
} }else if(DNAsequence[i] == 'g'){
if (DNAsequence[i] == 'g'){
// l = l + 'C'; // l = l + 'C';
l = 'C'; l = 'C';
} }else if (DNAsequence[i] == 'G'){
if (DNAsequence[i] == 'G'){
// l = l + 'C'; // l = l + 'C';
l = 'C'; l = 'C';
} }else if (DNAsequence[i] == 't'){
if (DNAsequence[i] == 't'){
// l = l + 'A'; // l = l + 'A';
l = 'A'; l = 'A';
} }else if (DNAsequence[i] == 'T'){
if (DNAsequence[i] == 'T'){
// l = l + 'A'; // l = l + 'A';
l = 'A'; l = 'A';
} }