Techniques and systems for analyte detection