A general pipeline for mapping next-gen sequencing reads and calling variants