# NOT RUN {
run.label <- "sebastes"
sam.path <- tempdir()
untar(system.file("extdata",
"sebastes_sam.tar.gz",
package="microhaplot"),
exdir = sam.path)
label.path <- file.path(sam.path, "label.txt")
vcf.path <- file.path(sam.path, "sebastes.vcf")
mvShinyHaplot(tempdir())
app.path <- file.path(tempdir(), "microhaplot")
# retrieve system Perl version number
perl.version <- as.numeric(system('perl -e "print $];"', intern=TRUE))
if (perl.version >= 5.014) {
haplo.read.tbl <- prepHaplotFiles(run.label = run.label,
sam.path = sam.path,
out.path = tempdir(),
label.path = label.path,
vcf.path = vcf.path,
app.path = app.path)
}else {
message("Perl version is outdated. Must >= 5.014.")}
# }
Run the code above in your browser using DataLab