Hi Carla
we are not supposed to see the 5’ adapter in the Illumina sequencing, since the sequencing primer hybridizes to it, and the sequencing has to start right after the last base of the adapter.
Because of that STAR does not have the 5’ adapter trimming option.
However, there may be rare cases where 5’ adapter appears in the sequencing - such as adapter dimers, i.e. 5’ adapter attaches to itself.
Such sequences have to be completely filtered out, since they are completely artificial - this needs to be done before mapping.
However, I believe these cases are very rare and shall not affect the results significantly.