Martin's modifications to Wolfgang Kaisers current rbamtools package