The tool we use in for calculating optical/technical duplicate reads from the STARsolo BAMs requires a flag of 1024, which is captured in the BAM_FDUP attribute of the htslib.sam.h library used by TagSort. STARSolo does not currently output this for duplicate reads.
We can explore an alternative solution for duplicate calculations.