R functions for basic sequencing data analysis