This is a perl script to label the multiple hits in a sam file (i.e. add the NH:i value and change non-unique hit to 0 mapping quality). Unaligned sequence will be output in a new file in the format of fastq.