FractionPurine[sequence]⟹fraction
determines the fraction of a given sequence composed of purines (As and Gs).
Returns the fraction of Monomers in the sequence that are purines (A,G):
Works with typed strands:
Does not evaluate on peptides:
Normally assumes wildcard Monomers have a 50% chance of being purines:
Set the polymer type that defines the monomer alphabet:
Maps across lists of sequences: