Lowercase

weight: 150 #

Lowercase #

Convert sequences, tags, or read names to lowercase.

[[step]]
    action = "Lowercase"
    target = "read1"  # Any input segment, 'All', 'tag:mytag', or 'name:read1'
    #if_tag = "mytag"  # Optional: only apply if tag is truthy

Target Options #

  • Segment: "read1", "read2", "index1", "index2", or "All" - lowercase’s sequence
  • Tag: "tag:mytag" - lowercase’s tag’s sequence content (Location-type tags only)
  • Name: "name:read1" - lowercase’s read name (not including comments)

Optionally only applies if a tag is truthy via if_tag.

Examples #

Lowercase a segment #

[[step]]
    action = "Lowercase"
    target = "read1"

Lowercase a tag #

[[step]]
    action = "ExtractIUPAC"
    segment = 'read1'
    search = "CTN"
    out_label = "mytag"
    anchor = "Left"
    max_mismatches = 0

[[step]]
    action = "Lowercase"
    target = "tag:mytag"

Follow with StoreTagInSequence to apply lowercase tag back onto the read.

Lowercase read names #

[[step]]
    action = "Lowercase"
    target = "name:read1"

Conditional lowercase #

[[step]]
    action = "ExtractIUPAC"
    segment = 'read1'
    search = "CTN"
    out_label = "had_iupac"
    anchor = "Left"
    max_mismatches = 0

[[step]]
    action = "Lowercase"
    target = "read1"
    if_tag = "had_iupac"