Modeling the formation of collagen-mimetic triple helices and microfibrils