I am trying to count the occurences of a given base in a sequence. The problem I'm running into is with this code:
$count = ($Sequence =~ tr/$base//);
where the $base variable is the given base to count. The code works perfectly if I manually replace $base with a given base, but otherwise does not. I really appreciate any help with this, thanks in advance
$count = ($Sequence =~ tr/$base//);
where the $base variable is the given base to count. The code works perfectly if I manually replace $base with a given base, but otherwise does not. I really appreciate any help with this, thanks in advance