def write_params(sampnames, outfn):
    with open(outfn, 'w') as outf:
        json.dump({'samples': sampnames}, outf)
def write_params(sampnames, outfn):
    with open(outfn, 'w') as outf:
        json.dump({'samples': sampnames}, outf)