def recal_hidepth(data, sample):
<EOL>majrdepth = data.paramsdict["<STR_LIT>"]<EOL>statdepth = data.paramsdict["<STR_LIT>"]    <EOL>maxlen = data._hackersonly["<STR_LIT>"]<EOL>if not hasattr(sample.stats_dfs.s3, "<STR_LIT>"):<EOL><INDENT>sample.stats_dfs.s3["<STR_LIT>"] = data.paramsdict["<STR_LIT>"]<EOL><DEDENT>if <NUM_LIT:1>: <EOL><INDENT>LOGGER.info("<STR_LIT>")<EOL>maxlens, depths = get_quick_depths(data, sample)<EOL>hidepths = depths >= majrdepth<EOL>stathidepths = depths >= statdepth<EOL>keepmj = depths[hidepths]<EOL>keepst = depths[stathidepths]<EOL>try:<EOL><INDENT>statlens = maxlens[stathidepths]<EOL>statlen = int(statlens.mean() + (<NUM_LIT>*statlens.std()))<EOL><DEDENT>except:<EOL><INDENT>raise IPyradError("<STR_LIT>")<EOL><DEDENT>LOGGER.info("<STR_LIT>", maxlens.shape, maxlens.mean(), maxlens.std())<EOL>maxlens = maxlens[hidepths]<EOL>maxlen = int(maxlens.mean() + (<NUM_LIT>*maxlens.std()))<EOL>sample.stats["<STR_LIT>"] = keepmj.shape[<NUM_LIT:0>]<EOL>sample.stats_dfs.s3["<STR_LIT>"] = keepmj.shape[<NUM_LIT:0>]        <EOL><DEDENT>return sample, keepmj.shape[<NUM_LIT:0>], maxlen, keepst.shape[<NUM_LIT:0>], statlen<EOL>
if mindepth setting were changed then 'clusters_hidepth' needs to be 
recalculated. Check and recalculate if necessary.