RIP has an option that lets users specify whether ambiguous nucleotides should be scored as mismatches or partial matches.