You would have to run 2 (or even 3) jobs. When mapping single-end reads, STAR will *not* set the paired-end specific FLAG bits:
0x1 template having multiple segments in sequencing
0x8 next segment in the template unmapped
0x40 the first segment in the template
0x80 the last segment in the template
I am not sure if this would create a problem for eXpress - does it need to know that these single-end alignments were originally paired-end?
If you run separately (unpaired left) and (unpaired right), you can set these bits in the FLAG manually:
0x1+0x8+0x40 for (unpaired left), and 0x1+0x8+0x80 for (unpaired right).
I think I will code an option allowing to add an arbitrary number to the FLAG.
Cheers
Alex