StephenMcGowan
asked on
DNA validation
I'm trying to write a perl script in the form of a loop which basically scans through a sequence:
$dna =
acgcatgcatcagtcagatcgtacga tagXagtagt gatgatatg
cagtcagtacgPcagactgcatagct Qcagtacgac tcgatata
you'll notice in a dna sequence of a's c's g's and t's there are anomolies in $dna. I'm trying to write a loop which recognises all characters that arn't a c g or t and change them to "a" by default. Basically add some validation to sequence scanning.
Thanks.
$dna =
acgcatgcatcagtcagatcgtacga
cagtcagtacgPcagactgcatagct
you'll notice in a dna sequence of a's c's g's and t's there are anomolies in $dna. I'm trying to write a loop which recognises all characters that arn't a c g or t and change them to "a" by default. Basically add some validation to sequence scanning.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.