upperGroups: Detect uppercases as ranges object.

View source: R/helpers_general.R

upperGroupsR Documentation

Detect uppercases as ranges object.

Description

For a given string, detect how many groups of uppercases is inside, where are they, and how long they are.

Usage

upperGroups(candidate)

Arguments

candidate

(string) A string with the nucleotide sequence.

Details

For example: asdkfaAGASDGAsjaeuradAFDSfasfjaeiorAuaoeurasjfasdhfashTTSfajeiasjsf

Has 4 groups of uppercases of length 7, 4, 1 and 3.

Value

(IRanges) A IRanges object with uppercases groups for given candidate string


valenlab/amplican documentation built on Jan. 28, 2024, 5:10 a.m.