Allow sample attributes to be overriden

cc @ccare