void print(const Hit& hit) { if(!hit.mapped() || hit.tid==-1) { cout << "-"; } else { cout << index2chromNames[hit.bamIndex][hit.tid] << ":" << hit.pos; } }