Relating structure to function for cellulose