Added a tryCatch around the function that determines type (paired or single-end) of reads