GRanges - coercion from dataframe
2
0
Entering edit mode
Ghost ▴ 10
@ghost-6584
Last seen 9.6 years ago
Hi, Kasper, I’m trying your function (data.frame2GRanges) in R to convert a dataframe to Granges file, but error showed: Error in data.frame2GRanges(gr2) : could not find function “GRanges" How can I solve this problem? Thanks, Jack [[alternative HTML version deleted]]
convert convert • 2.2k views
ADD COMMENT
0
Entering edit mode
@ryan-c-thompson-5618
Last seen 7 months ago
Scripps Research, La Jolla, CA
You have to load the package that provides the GRanges class, which is GenomicRanges. On Tue Jun 3 04:18:34 2014, Ghost wrote: > Hi, Kasper, > > I?m trying your function (data.frame2GRanges) in R to convert a dataframe to Granges file, but error showed: > Error in data.frame2GRanges(gr2) : could not find function ?GRanges" > > How can I solve this problem? > > Thanks, > > Jack > [[alternative HTML version deleted]] > > > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD COMMENT
0
Entering edit mode
@michael-lawrence-3846
Last seen 2.3 years ago
United States
The error is unexpected, given that bsseq should be importing GRanges into its namespace. Does the function exist outside of bsseq? But I believe this function was superseded by the makeGRangesFromDataFrame function in the GenomicRanges package. On Tue, Jun 3, 2014 at 4:18 AM, Ghost <ghostneuron@gmail.com> wrote: > Hi, Kasper, > > I知 trying your function (data.frame2GRanges) in R to convert a dataframe > to Granges file, but error showed: > Error in data.frame2GRanges(gr2) : could not find function 敵Ranges" > > How can I solve this problem? > > Thanks, > > Jack > [[alternative HTML version deleted]] > > > _______________________________________________ > Bioconductor mailing list > Bioconductor@r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > [[alternative HTML version deleted]]
ADD COMMENT

Login before adding your answer.

Traffic: 752 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6