Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Aug 26, 2020
1 parent b5b800a commit 51bcfa6
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 14 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ biocViews:
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.0.2
RoxygenNote: 7.1.1
48 changes: 42 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ knitr::opts_chunk$set(
# neopeptides

<!-- badges: start -->

[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![HitCount](http://hits.dwyl.io/ShixiangWang/neopeptides.svg)](http://hits.dwyl.io/ShixiangWang/neopeptides)
<!-- badges: end -->
Expand All @@ -24,19 +25,54 @@ The goal of **neopeptides** is to calculate and explore property indices of pept

## Installation

~You can install the released version of neopeptides from [CRAN](https://CRAN.R-project.org) with~:
You can install the development version from [GitHub](https://github.com/) with:

``` r
install.packages("neopeptides")
# install.packages("devtools")
devtools::install_github("ShixiangWang/neopeptides")
```

And the development version from [GitHub](https://github.com/) with:
### Configuration

``` r
# install.packages("devtools")
devtools::install_github("ShixiangWang/neopeptides")
To use neopeptide, `blast` is required.

After installation of `blast`, you can set the path with

```r
set_blast_path()
# e.g.
# set_blast_path("/Users/wsx/anaconda3/bin/")
```

Then install required protein database with

```r
install_database()
```

## Available features

- `calc_geometric_mean()` - Calculate the Geometric Mean.
- `calc_harmonic_mean()` - Calculate the Harmonic Mean.
- `calc_iedb_score()` - Calculate IEDB Score for Peptides.
- `calc_dissimilarity()` - Calculate Dissimilarity Value to Reference Proteome for Peptides.

## Examples

```{r}
library(neopeptides)
calc_iedb_score(c("MTEYKLVVVGAGDVGKSALTIQLIQNHFVDEYDP", "MTEYKLVVVG"))
calc_dissimilarity(c("MTEYKLVVVGAGDVGKSALTIQLIQNHFVDEYDP", "MTEYKLVVVG"))
```


## Citation

Revisiting neoantigen depletion signal in the untreated cancer genome.
Shixiang Wang, Xuan Wang, Tao Wu, Zaoke He, Huimin Li, Xiaoqin Sun, Xue-Song Liu
bioRxiv 2020.05.11.089540; doi: https://doi.org/10.1101/2020.05.11.089540

## LICENSE

MIT © 2019-2020 Shixiang Wang, Xue-Song Liu
Expand Down
65 changes: 59 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,73 @@ of peptides for cancer immunotherapy study.

## Installation

~You can install the released version of neopeptides from
[CRAN](https://CRAN.R-project.org) with~:
You can install the development version from
[GitHub](https://github.com/) with:

``` r
install.packages("neopeptides")
# install.packages("devtools")
devtools::install_github("ShixiangWang/neopeptides")
```

And the development version from [GitHub](https://github.com/) with:
### Configuration

To use neopeptide, `blast` is required.

After installation of `blast`, you can set the path with

``` r
# install.packages("devtools")
devtools::install_github("ShixiangWang/neopeptides")
set_blast_path()
# e.g.
# set_blast_path("/Users/wsx/anaconda3/bin/")
```

Then install required protein database with

``` r
install_database()
```

## Available features

- `calc_geometric_mean()` - Calculate the Geometric Mean.
- `calc_harmonic_mean()` - Calculate the Harmonic Mean.
- `calc_iedb_score()` - Calculate IEDB Score for Peptides.
- `calc_dissimilarity()` - Calculate Dissimilarity Value to Reference
Proteome for Peptides.

## Examples

``` r
library(neopeptides)

calc_iedb_score(c("MTEYKLVVVGAGDVGKSALTIQLIQNHFVDEYDP", "MTEYKLVVVG"))
#> => Running blastp for homology to IEDB antigens..
#> => Summing IEDB local alignments...
#> => Done.
#> => Removing temporary files...
#> peptide iedb_score
#> 1: MTEYKLVVVGAGDVGKSALTIQLIQNHFVDEYDP 5.038247e-01
#> 2: MTEYKLVVVG 5.895595e-05
#> annotation
#> 1: 18142|polyprotein precursor|NP_041724.2|West Nile virus|11082 DVGVSAL
#> 2: 32238|polyprotein [Hepatitis C virus subtype 1a]|ABV46251.2|Hepatitis C virus|11103 KLVVLG
calc_dissimilarity(c("MTEYKLVVVGAGDVGKSALTIQLIQNHFVDEYDP", "MTEYKLVVVG"))
#> => Running blastp for homology to self antigens..
#> => Summing local alignments...
#> => Done.
#> => Removing temporary files...
#> peptide dissimilarity
#> 1: MTEYKLVVVGAGDVGKSALTIQLIQNHFVDEYDP 0
#> 2: MTEYKLVVVG 0
```

## Citation

Revisiting neoantigen depletion signal in the untreated cancer genome.
Shixiang Wang, Xuan Wang, Tao Wu, Zaoke He, Huimin Li, Xiaoqin Sun,
Xue-Song Liu bioRxiv 2020.05.11.089540; doi:
<https://doi.org/10.1101/2020.05.11.089540>

## LICENSE

MIT © 2019-2020 Shixiang Wang, Xue-Song Liu
Expand Down
2 changes: 1 addition & 1 deletion man/install_database.Rd

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

0 comments on commit 51bcfa6

Please sign in to comment.