added ability to merge input reads into single sample