writing out sample_name in MetadataTemplate.to_file instead of SampleID