Description Usage Arguments Value Author(s) See Also Examples
chrs
returns/set the name of chromosomes/contigs
arms
retruns the name of the chromosome and arm. A data frame containing
ideogram information has to be provided. See ?hg19_hs_ideogr for an example
pos
returns/set the position of starting window. Be careful!
If you need to change data, it is better to change the input data and start over.
1 2 3 4 5 |
object |
An object of Class |
show |
The position to show: 'start', 'end' |
banding_df |
A data frame with infromation about ideogram |
chrs
and arms
return a character vector, pos
returns a numeric vector
Stefano Berri <s.berri@leeds.ac.uk>
gcNorm
, CNAnorm-class
, hg19_hs_ideogr
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(LS041)
data(hg19_hs_ideogr)
CN <- dataFrame2object(LS041)
dataFrameNames <- as.character(LS041$Chr)
objectNames <- chrs(CN)
armNames <- arms(CN, hg19_hs_ideogr)
# check the names are, indeed, the same
all(dataFrameNames == objectNames)
# make shorter names, drop the first three letters ('chr')
shortNames <- substr(chrs(CN),4,nchar(chrs(CN)))
chrs(CN) <- shortNames
# retrieve all new names
unique(chrs(CN))
unique(armNames)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.