changeSeqnameStyle.Rd
Change sequence names
changeSeqnameStyle(gr, dataset, seqname_style_from, seqname_style_to,
reformat_from = NULL, reformat_to = NULL)
The input regions
A BioMart dataset or a taxon ID. For a proper value, please see supportedOrganisms
.
Value should be in c("Sequence-Name", "GenBank-Accn", "RefSeq-Accn")
. If you are not sure which seqname style is in gr
, use getBioMartGenomeInfo
to obtain list of examples.
Value should be in c("Sequence-Name", "GenBank-Accn", "RefSeq-Accn")
.
A self-defined function to reformat the seqnames. The internal seqname style can be obtained via getBioMartGenomeInfo(dataset)
. This function converts the internal "from" seqnames to fit the user's input regions.
A self-defined function to reformat the seqnames.
Please the conversion is not one to one. For those sequences which cannot be corrected mapped to other styles, they are just removed.
A GRanges
object.
if (FALSE) {
gr = getBioMartGenes("giant panda")
changeSeqnameStyle(gr, "giant panda", "Sequence-Name", "GenBank-Accn")
}