Entering edit mode
10.0 years ago
m_punisher6
•
0
Hi
I'm trying to get the sequence of the gene for human. so in R I attached library BSgenome.Hsapiens.UCSC.hg19
and then when I use this command BSgenome.Hsapiens.UCSC.hg19$chr1
I just faced with something like this:
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Where is the problem?
Sorry for my poor English
Thanks
mansoor
Thank u Devon, but I have another question what is different between your code and mine?!
They may produce the same results, mine just uses the accessors rather than coercing datatypes. Using the accessors has the advantage of some error checking and dealing with strands.
Edit: Using the accessors also has the benefit that you don't rely on the underlying class maintaining its representation. An accessor is going to get updated with the package, even if the class structure provided in the package changes radically.