Skip to content

Commit

Permalink
add positionalentropy documentation clarif
Browse files Browse the repository at this point in the history
  • Loading branch information
ncborcherding committed Jan 19, 2024
1 parent 9e261ac commit bbd36f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion R/positionalEntropy.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#' This function the diversity amino acids along the residues
#' of the CDR3 amino acid sequence. Please see
#' \code{\link{clonalDiversity}} for more information on
#' the underlying methods for diversity/entropy calculations.
#' the underlying methods for diversity/entropy calculations.
#' Positions without variance will have a value reported as 0
#' for the purposes of comparison.
#'
#' @examples
#' #Making combined contig data
Expand Down
4 changes: 2 additions & 2 deletions vignettes/articles/Repertoire_Summary.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ percentAA(combined.TCR,

## positionalEntropy

We can also quantify the level of entropy/diversity across amino acid residues along the cdr3 sequence. `positionalEntropy()` combines the quantification by residue of ``percentAA()`` with the diversity calls in ```clonalDiversity()```. Importantly, because diversity can be affected by size of sample, similar to ```clonalDiversity()```, ```positionalEntropy()``` will also downsample/bootstrap the calculation.
We can also quantify the level of entropy/diversity across amino acid residues along the cdr3 sequence. `positionalEntropy()` combines the quantification by residue of ``percentAA()`` with the diversity calls in ```clonalDiversity()```. Importantly, because diversity can be affected by size of sample, similar to ```clonalDiversity()```, ```positionalEntropy()``` will also downsample/bootstrap the calculation. Positions without variance will have a value reported as 0 for the purposes of comparison.

**method**

Expand All @@ -128,7 +128,7 @@ We can also quantify the level of entropy/diversity across amino acid residues a
* "norm.entropy" - Normalized Entropy

```{r}
positionalEntropy(combined,
positionalEntropy(combined.TCR,
chain = "TRB",
aa.length = 20)
```
Expand Down

0 comments on commit bbd36f2

Please sign in to comment.