After some use, worked out small kinks and changed script so it takes median of all bootstrap-inferred thresholds.