A computer program product comprising a non-transitory machine readable medium storing program code that, when executed by one or more processors of a computer system, causes the computer system to implement a method for sequencing nucleic acid molecules from a sample, said program code comprising:
- (a) code for obtaining a plurality of reads of a plurality of amplified polynucleotides, each polynucleotide of the plurality of amplified polynucleotides comprising an adapter attached to a DNA fragment,
- wherein the adapter comprises a nonrandom unique molecular index, and
- wherein nonrandom unique molecular indexes of the adapters have at least two different molecular lengths, forming a set of variable-length, nonrandom unique molecular indexes (vNRUMIs);
- (b) code for identifying, among the plurality of reads, reads associated with a same vNRUMIs;
- and
- (c) code for determining, using the reads associated with the same vNRUMI, a sequence of a DNA fragment in the sample.