These functions allow simple mapping between seqnames of a GRanges object. The two standard derivations are seqnamesToNCBI
and seqnamesToEnsembl
. The rules for mapping are:
Ensembl NCBI
1 <=> chr1
...
22 <=> chr22
X <=> chrX
Y <=> chrY
MT <=> chrM
=>=>=>=>=>
You can define your own mapping function and pass it as the mappingFunction
parameter to
seqnameMapping
function to do your own custom mapping.
The function seqnamesToNCBI
calls seqnameMapping
with generalisedNameToNCBI
as the
mappingFunction
. The function seqnamesToEnsembl
uses generalisedNameToEnsembl
.