Skip to content

Fragment library types

RNA-seq library preparation protocols differ in ways that matter for quantification: reads can be single-end or paired-end, the protocol can be unstranded or strand-specific, and paired-end reads have a relative orientation. salmon describes all of these with a short library-type string passed to -l/--libType.

The library-type string has up to three parts: relative orientation, strandedness, and directionality.

CodeMeaning
IInward — mates point toward each other
OOutward — mates point away from each other
MMatching — mates point the same way
CodeMeaning
SStranded (strand-specific protocol)
UUnstranded

If the protocol is unstranded (U), the string ends here.

3. Directionality (stranded protocols only)

Section titled “3. Directionality (stranded protocols only)”
CodeMeaning
FRead 1 (or the single-end read) comes from the forward strand
RRead 1 (or the single-end read) comes from the reverse strand
StringInterpretation
IUUnstranded paired-end, mates face each other
ISFStranded paired-end, inward, read 1 from the forward strand
OSRStranded paired-end, outward, read 1 from the reverse strand
UUnstranded single-end
SFStranded single-end, reads from the forward strand
SRStranded single-end, reads from the reverse strand

Single-end libraries omit the orientation part, so the only valid single-end strings are U, SF, and SR.

TopHatsalmon (paired-end)salmon (single-end)
-fr-unstranded-l IU-l U
-fr-firststrand-l ISR-l SR
-fr-secondstrand-l ISF-l SF

The remaining salmon library strings have no direct TopHat equivalent.