DNA or RNA pattern reading