Question: Copy number variation study using CNOGpro
0
gravatar for Neu
6 months ago by
Neu10
India
Neu10 wrote:

Hi,

I want to study copy number variation using CNOGpro. Below are my commands. Please help me to resolve the generated errors.

library("reutils")
library("biofiles")

b_file <- reutils::efetch("CP002806", "nuccore", rettype = "gbwithparts", retmode = "text")
bk_file <- biofiles::gbRecord(gb_file)
gbkfile <- biofiles::gbRecord(gb_file)

CNOGpro(hitsfile, gbkfile, windowlength = 100, name = "C. psittaci")

Error Reading contents of GenBank file... Error in readLines(con = gbkfile) : 'con' is not a connection

Thank you

R • 142 views
ADD COMMENTlink modified 6 months ago by zx87549.1k • written 6 months ago by Neu10

Check if the class class(gbkfile) is a connection. readLines 1st argument con expects a connection.

Read about ?connections

ADD REPLYlink written 6 months ago by zx87549.1k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 686 users visited in the last hour