$seq="gactgactagctagctagctacgatcgtacgaggaattcgatcgatcggcatcgatcggaattcgtcgatgcatagtcaggaattcgcatgcatca"; print "$seq\n"; while ($seq =~ /[gt]a{1,2}c/g) { #$seq =~ s/gaattc/GAATTC/ ; $c++; $p = pos($seq)-length($&)+1; print "match $c:$&\t$p\n"; }
$seq="gactgactagctagctagctacgatcgtacgaggaattcgatcgatcggcatcgatcggaattcgtcgatgcatagtcaggaattcgcatgcatca"; print "$seq\n"; while ($seq =~ /[gt]a{1,2}c/g) { #$seq =~ s/gaattc/GAATTC/ ; $c++; $p = pos($seq)-length($&)+1; print "match $c:$&\t$p\n"; }
You must be logged in to post a comment.