tRNA-subset: Subsetting tRNAs

Description Usage Arguments Value Examples

Description

The functions has* can be used to subset the GRanges object containing information about tRNAs.

Please not that the settings mismatches and bulged take precedence before unpaired or paired. This means that by setting either mismatches or bulged to either TRUE or FALSE, unpaired = TRUE or paired = TRUE are automatically set to allow specific subsetting. If this removes elements from the results, please consider constructing a logical vectors with two calls as suggested in the examples.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
hasTStem(x, length = NA, unpaired = NA, mismatches = NA, bulged = NA)

hasDStem(x, length = NA, unpaired = NA, mismatches = NA, bulged = NA)

hasAcceptorStem(x, length = NA, unpaired = NA, mismatches = NA, bulged = NA)

hasAnticodonStem(x, length = NA, unpaired = NA, mismatches = NA, bulged = NA)

hasTloop(x, length = NA)

hasDloop(x, length = NA)

hasAnticodonLoop(x, length = NA)

hasVariableLoop(x, length = NA, paired = NA, mismatches = NA, bulged = NA)

## S4 method for signature 'GRanges'
hasTStem(x, length = NA, unpaired = NA, mismatches = NA, bulged = NA)

## S4 method for signature 'GRanges'
hasDStem(x, length = NA, unpaired = NA, mismatches = NA, bulged = NA)

## S4 method for signature 'GRanges'
hasAcceptorStem(x, length = NA, unpaired = NA, mismatches = NA, bulged = NA)

## S4 method for signature 'GRanges'
hasAnticodonStem(x, length = NA, unpaired = NA, mismatches = NA, bulged = NA)

## S4 method for signature 'GRanges'
hasTloop(x, length = NA)

## S4 method for signature 'GRanges'
hasDloop(x, length = NA)

## S4 method for signature 'GRanges'
hasAnticodonLoop(x, length = NA)

## S4 method for signature 'GRanges'
hasVariableLoop(x, length = NA, paired = NA, mismatches = NA, bulged = NA)

Arguments

x

a GRanges object from a tRNAscan import or with equivalent information

length

the length as integer

unpaired

logical: has unpaired nucleotides

mismatches

logical: has mismatched nucleotides

bulged

logical: has mismatched nucleotides of different length creating a bulge

paired

logical: has paired nucleotides (only used for loops)

Value

a logical vector of the length or input GRanges object

Examples

1
2
3
4
data("gr", package = "tRNA")
hasTStem(gr, length = 5, mismatches = TRUE)
gr[hasTStem(gr, length = 5, mismatches = TRUE)]
gr[hasDStem(gr, unpaired = FALSE) & hasDStem(gr, mismatches = FALSE)]

tRNA documentation built on Nov. 8, 2020, 11:08 p.m.