proteinCoding-methods {Pbase} | R Documentation

## Only keep protein coding ranges

### Description

Removed all the ranges that are not protein coding. Typically used on the output of `etrid2grl` before `mapToGenome`.

### Methods

`signature(object="GRanges", mcol="character", coding="character")`

  Removes all the ranges that are not annotated as protein coding ranges, i.e. ranges whose `mcols()$mcol` is different from `coding`. The default values are `mcols()feature` and `"protein_coding"`. The method return the `GRanges` trimmed from all non-matching ranges.

`signature(object="GRangesList", mcol="character", coding="character")`

  As above but for `GRanges` in a `GrangesList`.

[Package Pbase version 0.22.1 Index]