tstr += '<table><tr><td>Library Id</td><td>Total Lanes</td><td>M Reads</td></tr>'
LanesCnt, ReadsCnt = 0, 0
for l in arlibs:
- res = getLibReads(l)
+ res = getLibReads(l,'ByLib')
LanesCnt += res[0]
ReadsCnt += res[1]
rc = "%1.2f" % (res[1]/1000000.0)