Skip to content

Commit

Permalink
provide a clearer example about different PATHs for runHaplot
Browse files Browse the repository at this point in the history
  • Loading branch information
ngthomas committed Jun 30, 2017
1 parent 76a160a commit c90b54d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ vignette("haPLOType-walkthrough")
Now, having done that, we can launch haPLOType on the example data:
```r
library(microhaplot)
app.path <- "~/Shiny/microhaplot"
app.path <- "~/Shiny/"
runHaplotype(app.path)
```

Expand All @@ -80,16 +80,22 @@ Once you have the label file in place, you can run `runHaplot`, a R function tha
* path to the directory with all SAM files
* path to the `label` file you just created
* path to the VCF file

```R
library(microhaplot)

# to access package sample case study dataset of rockfish
run.label <- "sebastes"
sam.path <- system.file("extdata","." , package="microhaplot")
label.path <- system.file("extdata", "label.txt", package = "microhaplot")
vcf.path <- system.file("extdata", "sebastes.vcf", package = "microhaplot")
app.path <- "~/Shiny/microhaplot"
# -or- app.path <- system.file("shiny","microhaplot" , package="microhaplot")
app.path <- system.file("shiny","microhaplot" , package="microhaplot")

# for your dataset: customize the following paths
# sam.path <- "~/microhaplot/extdata/"
# label.path <- "~/microhaplot/extdata/label.txt"
# vcf.path <- "~/microhaplot/extdata/sebastes.vcf"
# app.path <- "~/Shiny/microhaplot"

haplo.read.tbl <- runHaplot(run.label = run.label,
sam.path=sam.path,
Expand Down

0 comments on commit c90b54d

Please sign in to comment.