Flexible writing of snpStats objects to flat files