I am following the CrispRVarients User Guide and when I get to this command:
reference=system(sprintf("B621_279062w_CF5_TAIR10_sort.bam %s:%s-%s", seqnames(gdl)[1], start(gdl)[1], end(gdl)[1]), intern = TRUE)
I always get this error message:
'CreateProcess' failed to run 'D:\NGS_data\WEN_CR~1\ANALYS~1\BWA\B621_2~2.BAM chr5:24858967-24859213'
I am running CrispRVariants on R 3.3.2, x86_64-w64-mingw32, windows10, in RStudio.
I have tried adding full path to the .bam file with backslashes, double backslashes ( ...\\NGS_data\\Wen...), forward slashes and double forward slashes, but all give the same error.
Matthew
samtools isn't available on Windows (or at least not as a part of the samtools distribution). Fasta files can be indexed with
Rsamtools::indexFa()
, and indexed fasta files can be read in using genomic ranges usinggetSeq()
; see?"getSeq,FaFile-method"
. Is this step an essential part of the work flow? If so, then either the code & vignette should be modified to use Rsamtools, or the package should be marked as not supported on windows. For the latter, the package maintainer (helen) should ask for guidance on the bioc-devel mailing list. There have been reports of problems with indexing (large) fasta files on windows using indexFa, so even the use of Rsamtools may be risky.