Techniques for the isolation of high-quality RNA from cells encapsulated in chitosan hydrogels.