Skip to content

Commit

Permalink
add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Oct 15, 2023
1 parent 33dde70 commit 65798a9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.Rproj.user
.Rhistory
.Rdata
*.Rdata
.httr-oauth
.DS_Store
src/htslib-1.18
Expand Down
5 changes: 3 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ knitr::opts_chunk$set(
)
```

# vcfppR
# vcfppR: rapid manipulation of the VCF/BCF files

<!-- badges: start -->
[R-CMD-check](https://github.com/Zilong-Li/vcfppR/actions/workflows/check-release.yaml/badge.svg)
![R-CMD-check](https://github.com/Zilong-Li/vcfppR/actions/workflows/check-release.yaml/badge.svg)
<a href="https://github.com/Zilong-Li/vcfppR"><img src="https://raw.githubusercontent.com/Zilong-Li/random/main/vcfppR.png" height="200" align="right" /></a>
<!-- badges: end -->

The vcfppR package implements various useful functions for manipulating the VCF/BCF files in R using the C++ API of vcfpp.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# vcfppR
# vcfppR: rapid manipulation of the VCF/BCF files

<!-- badges: start -->

[R-CMD-check](https://github.com/Zilong-Li/vcfppR/actions/workflows/check-release.yaml/badge.svg)
![R-CMD-check](https://github.com/Zilong-Li/vcfppR/actions/workflows/check-release.yaml/badge.svg)
<a href="https://github.com/Zilong-Li/vcfppR"><img src="https://raw.githubusercontent.com/Zilong-Li/random/main/vcfppR.png" height="200" align="right" /></a>
<!-- badges: end -->

The vcfppR package implements various useful functions for manipulating
Expand Down
27 changes: 27 additions & 0 deletions tests/testthat/test-random.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
q()

load("vcfppR.RData")
library(hexSticker)
library(ggplot2)

library(showtext)
## Loading Google fonts (http://www.google.com/fonts)
font_add_google("Gochi Hand", "gochi")
## Automatically use showtext to render text for future devices
showtext_auto()

names(o)

d <- data.frame(x = unlist(o),
counts = rep(names(o),times = sapply(o,length)))

p <- ggplot(d, aes(x = counts, y = x)) + xlab("") + ylab("") +
geom_boxplot()
p <- p + theme_classic()
p <- p + theme_transparent()

sticker(p, package="vcfppR",
p_size=20, s_x=0.9, s_y=.7, s_width=1.3, s_height=1.1,
filename="vcfppR.png", h_fill = "red", h_color = "orange")

dev.off()

0 comments on commit 65798a9

Please sign in to comment.