Hi, I am watching Rsamtools in Coursera and I want to get Bam file to R so I used system.file and Rsamtools.
So when I ran this command:
bamPath <- system.file("extdata", "sorted_file.bam", package = "Rsamtools", mustWork = TRUE)
It gives me error with message no file found. w/o mustWork, it just gives empty data.
I checked the path by getwd() and I checked whether there is file or not.
Can anyone solve this problem?
Thanks in advance!!