nuIDdecode: Convert nuID to Nucleotide Sequence

Description Usage Arguments Details Author(s) Source References Examples

Description

The function nuIDdecode converts a nuID string back to the nucleotide sequence it encodes. nuIDs are identifiers used as primary keys in some Illumina annotation packages, and are based on a hash of the probe sequence itself.

Usage

1
nuIDdecode(id, error = TRUE)

Arguments

id

nuID character vector

error

a logical indicating whether an error should be thrown in case of invalid input nuID (default) or only a warning, as in the original function lumi::id2seq.

Details

This function is an adapted version of the lumi::id2seq from the lumi package, so that it can throws errors instead of warnings. It is used in idtype to infer the type of nuID vectors.

Author(s)

Pan Du

Adaptation for xbioc: Renaud Gaujoux

Source

function lumi::id2seq in the lumi package

References

Du P, a Kibbe W, Lin SM (2007). "nuID: a universal naming scheme of oligonucleotides for illumina, affymetrix, and other microarrays." _Biology direct_, *2*, 16. ISSN 1745-6150, doi: 10.1186/1745-6150-2-16 (URL: https://doi.org/10.1186/1745-6150-2-16).

Examples

1
2
3
nuIDdecode('XERDqYYc2A')
try(nuIDdecode('XERDqYYc2F'))
nuIDdecode('XERDqYYc2F', error=FALSE)

renozao/xbioc documentation built on Sept. 3, 2020, 1:13 a.m.