added write_smartpca to variant_detection