injectHardMask {Biostrings} | R Documentation

## Injecting a hard mask in a sequence

### Description

[TODO]

### Usage

      injectHardMask(x, letter="+")

### Arguments

`x` | A MaskedXString or XStringViews object.
`letter` | A single letter.

### Value

An XString object of the same length as the orignal object `x` if `x` is a MaskedXString object, or of the same length as `subject(x)` if it's an XStringViews object.

### Author(s)

H. Pages

### See Also

`replaceLetterAtLoc`, `chartr`, XString, XStringViews-class, MaskedXString-class

### Examples

      mask0 <- Mask(mask.width=29, start=c(3, 10, 25), width=c(6, 8, 5))
      x <- DNAString("ACACAACTAGATAGNACTNNGAGAGACGC")
      masks(x) <- mask0
      x
      injectHardMask(x)

[Package Biostrings version 2.8.18 Index]