Custom analysis scripts used in Nature Methods publication NMETH-C19079A