Gviz and datatracks
1
1
Entering edit mode
Bogdan ▴ 670
@bogdan-2367
Last seen 6 months ago
Palo Alto, CA, USA

Dear all,

I am using Gviz and I am aiming to upload either a bigwig, wig or bedGraph file ; and I am getting the following error

Please would you advise if there is a way to fix it please. Thank you

*

dTrack2 <- DataTrack(range = bgFile, genome = "hg38", type = "l", 
+                      chromosome = "chr1", name = "bigwig")
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'tolower': Unable to identify extension for file ''

*

Gviz • 1.4k views
ADD COMMENT
0
Entering edit mode

what is the value of bgFile? It probably does not have an extension the DataTrack recognizes....

ADD REPLY
0
Entering edit mode
@corinne_hutfilz-22548
Last seen 2.1 years ago
United States

Perhaps you were referencing your file incorrectly. The Gviz vignette uses practice data within the package, so it references it using the system.file() function, e.g. system.file("extdata/test.bam", package = "Gviz"). Your own data should be referenced directly, e.g. bgFile = "path/to/myfile.bg"

ADD COMMENT

Login before adding your answer.

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