seq1='--TAGAGATTGCCCGTAGGACGGGAAGGTGTCAACGTTTTACATTTTGAAC-'
seq2='-ATTGAGATTGCCCGTAGGACGGGAAGGTGTCAACGTTTTACATTTTGAAC-'
First question: I want to find the positions in seq1 were there is a '-' character and delete those positions in seq2.Is it possible to do it without a for loop??
Second question: Ignore any positions in seq1 and seq2 that have the character '-' and find the positions were the two strings differ..for example in position 4 there is an 'A' in seq1 and a 'T' in seq2...Again if possible without having to do a for loop
Thank you
Nicholas