[R] makeVRangesFromGRanges throws coercing "factor" to "NA" error
1
0
Entering edit mode
8.5 years ago
solo7773 ▴ 90

Dear all,

When I use makeVRangesFromGRanges (R package VariantAnnotation), I got the following error,

Error in as(mcols(gr)[, i], type[i]) : no method or default for coercing "factor" to "NA"

My operations shown below

> library(SomaticSignatures)
> data(ov_tcga, package = "SomaticCancerAlterations")
> ov_tcga_2_vr <- makeVRangesFromGRanges(ov_tcga, ref.field="Reference_Allele", alt.field = "Tumor_Seq_Allele2")

Error in as(mcols(gr)[, i], type[i]) :

no method or default for coercing "factor" to "NA"

Can anybody help me to solve this problem? Thank.

R sequence • 1.4k views
ADD COMMENT
0
Entering edit mode
8.5 years ago
solo7773 ▴ 90

Can anyone solve this?

ADD COMMENT

Login before adding your answer.

Traffic: 1883 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