Question: Copy number variation study using CNOGpro
0
gravatar for Neu
11 days 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 • 63 views
ADD COMMENTlink modified 11 days ago by zx87548.2k • written 11 days 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 11 days ago by zx87548.2k
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: 936 users visited in the last hour