Skip to content

Commit

Permalink
update pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Oct 8, 2024
1 parent 871a9a1 commit adf370c
Show file tree
Hide file tree
Showing 52 changed files with 10,923 additions and 1,034 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ all: rd check clean
rd:
Rscript -e 'roxygen2::roxygenise(".")'

readme:
readme: rd
Rscript -e 'rmarkdown::render("README.Rmd")'
Rscript -e 'pkgdown::build_site()'
Rscript -e 'pkgdown::build_site(examples=FALSE)'
Rscript -e 'pkgdown::build_articles()'

readme2:
readme2: rd
Rscript -e 'rmarkdown::render("README.Rmd", "html_document")'

build: rd
Expand Down
9 changes: 5 additions & 4 deletions R/vcf-compare.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
#' default c("DS", "GT") extracts 'DS' of the target and 'GT' of the truth.
#'
#' @param stats the statistics to be calculated. supports the following.
#' "r2": pearson correlation coefficient ** 2.
#' "f1": F1-score, good balance between sensitivity and precision.
#' "nrc": Non-Reference Concordance rate
#' "pse": Phasing Switch Error rate
#' "r2": the Pearson correlation coefficient square.
#' "f1": the F1-score, good balance between sensitivity and precision.
#' "nrc": the Non-Reference Concordance rate
#' "pse": the Phasing Switch Error rate
#'
#' @param by.sample logical. calculate sample-wise concordance, which can be stratified by MAF bin.
#'
Expand All @@ -41,6 +41,7 @@
#' @param ... options passed to \code{vcftable}
#'
#' @return a list of various statistics
#'
#' @author Zilong Li \email{zilong.dk@gmail.com}
#'
#' @examples
Expand Down
1 change: 1 addition & 0 deletions R/vcf-tables.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#' e.g. "id01,id02", "^id01,id02".
#'
#' @param vartype restrict to specific type of variants. supports "snps","indels", "sv", "multisnps","multiallelics"
#'
#' @param format the FORMAT tag to extract. default "GT" is extracted.
#'
#' @param ids character vector. restrict to sites with ID in the given vector. default NULL won't filter any sites.
Expand Down
9 changes: 0 additions & 9 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ par(mar=c(5,5,2,2), cex.lab = 2)
vcfplot(res, col = 2,cex = 2, lwd = 3, type = "b")
```

```{r pse}
res <- vcfcomp(test = rawvcf, truth = phasedvcf,
stats = "pse", setid = TRUE,
region = "chr21:5000000-5500000",
samples = "HG00673,NA10840",
return_pse_sites = TRUE)
vcfplot(res, which=1:2, main = "Phasing switch error", ylab = "HG00673,NA10840")
```

Check out the [vignettes](https://zilong-li.github.io/vcfppR/articles/) for more!

## `vcfsummary`: variants characterization
Expand Down
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,6 @@ vcfplot(res, col = 2,cex = 2, lwd = 3, type = "b")

<img src="man/figures/README-r2-1.png" width="100%" />

``` r
res <- vcfcomp(test = rawvcf, truth = phasedvcf,
stats = "pse", setid = TRUE,
region = "chr21:5000000-5500000",
samples = "HG00673,NA10840",
return_pse_sites = TRUE)
#> stats F1 or NRC or PSE only uses GT format
vcfplot(res, which=1:2, main = "Phasing switch error", ylab = "HG00673,NA10840")
```

<img src="man/figures/README-pse-1.png" width="100%" />

Check out the [vignettes](https://zilong-li.github.io/vcfppR/articles/)
for more\!

Expand Down
65 changes: 26 additions & 39 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 20 additions & 34 deletions docs/CONTRIBUTING.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit adf370c

Please sign in to comment.