def dictToFile(dictionary,replicateKey,outFileName):
replicateToFile=h5py.File(outFileName,"<STR_LIT:w>")<EOL>for i in range(len(dictionary[replicateKey])):<EOL><INDENT>replicateToFile.create_dataset("<STR_LIT:{}>".format(dictionary[replicateKey].keys()[i]),data=dictionary[replicateKey].values()[i],compression="<STR_LIT>")<EOL><DEDENT>replicateToFile.close()<EOL>
Function to write dictionary data, from subsampleReplicates, to file an hdf5 file. 
:param dictionary: nested dictionary returned by subsampleReplicates
:param replicateKey: string designating the replicate written to file
:param outFileName: string defining the hdf5 filename