[][src]Crate aa_regex

Macros for peptidic sequences regular expressions

Collection of macros to help crafting regular expression matching peptidic sequences.

Usage

use aa_regex::{any, except};

let any_amino_acid = any!();
// => "[ARNDCEQGHILKMFPSTWYV]"

let any_aromatics = any!('W', 'F', 'Y');
// => "[WFY]"

let no_proline = except!('P');
// => "[ARNDCEQGHILKMFSTWYV]"

// concatenation
let motif = concat!(any!('R', 'H', 'K'), except!('P'));
// => "[RHK][ARNDCEQGHILKMFSTWYV]"

Macros

any

Any amino acid or any of...

except

Except some amino acids