Fix wgs

fix bugs related to SNAP in the scenario of whole-genome analysis