An open-source analysis pipeline to detect germline or somatic variants from whole genome or targeted sequencing