Skip to content

Commit

Permalink
fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kriemo committed Dec 8, 2021
1 parent 9bf5781 commit d956433
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion R/bed_cluster.r
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Cluster neighboring intervals.
#'
#' The ouput `.id` column can be used in downstream grouping operations. Default
#' The output `.id` column can be used in downstream grouping operations. Default
#' `max_dist = 0` means that both overlapping and book-ended intervals will be
#' clustered.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/bed_shift.r
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#'
#' @param x [ivl_df]
#' @param genome [ivl_df]
#' @param size number of bases to shift. postive numbers shift right, negative shift left.
#' @param size number of bases to shift. positive numbers shift right, negative shift left.
#' @param fraction define `size` as a fraction of interval
#' @param trim adjust coordinates for out-of-bounds intervals
#'
Expand Down
2 changes: 1 addition & 1 deletion man/bed_cluster.Rd

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

2 changes: 1 addition & 1 deletion man/bed_shift.Rd

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

2 changes: 1 addition & 1 deletion vignettes/interval-stats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pvals <- res %>% do(twosided = tidy(ks.test(.$obs, .$shuf)),
```

Histgrams of the different stats help visulaize the distribution of p.values.
Histgrams of the different stats help visualize the distribution of p.values.

```{r pvalue_viz}
ggplot(pvals, aes(p.value)) +
Expand Down
10 changes: 5 additions & 5 deletions vignettes/valr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ library(tibble)
* Is highly extensible. New tools are quickly implemented on the R side.
* Leverages the "modern R" syntax, using `dplyr` and the pipe operator from `magrittr` (`%>%`).
* Maximizes speed by implementing compute-intensive algorithms in `Rcpp`.
* Facilitates interactive visulaizations with [`shiny`][13].
* Facilitates interactive visualizations with [`shiny`][13].

`valr` can currently be used for analysis of pre-processed data in BED and related formats. We plan to support BAM and VCF files soon via tabix indexes.

Expand Down Expand Up @@ -68,7 +68,7 @@ bed_file <- valr_example("3fields.bed.gz")
read_bed(bed_file) # accepts filepaths or URLs
```

`valr` can also operate on BED-like data.frames already constructed in R, provided that columns named `chrom`, `start` and `end` are present. New tbls can also be contructed as either `tibbles` or base R `data.frames`.
`valr` can also operate on BED-like data.frames already constructed in R, provided that columns named `chrom`, `start` and `end` are present. New tbls can also be constructed as either `tibbles` or base R `data.frames`.

```{r trbl_ivls}
bed <- tribble(
Expand Down Expand Up @@ -150,7 +150,7 @@ bed_glyph(bed_merge(x))

### Grouping data

The `group_by` function in dplyr can be used to perform fuctions on subsets of single and multiple `data_frame`s. Functions in `valr` leverage grouping to enable a variety of comparisons. For example, intervals can be grouped by `strand` to perform comparisons among intervals on the same strand.
The `group_by` function in dplyr can be used to perform functions on subsets of single and multiple `data_frame`s. Functions in `valr` leverage grouping to enable a variety of comparisons. For example, intervals can be grouped by `strand` to perform comparisons among intervals on the same strand.

```{r strand}
x <- tribble(
Expand Down Expand Up @@ -225,7 +225,7 @@ genome <- read_genome(genomefile)
y <- read_bedgraph(bgfile)
```

Then we generate 1 bp intervals to represent transcription start sites (TSSs). We focus on `+` strand genes, but `-` genes are easily accomodated by filtering them and using `bed_makewindows()` with `reverse`d window numbers.
Then we generate 1 bp intervals to represent transcription start sites (TSSs). We focus on `+` strand genes, but `-` genes are easily accommodated by filtering them and using `bed_makewindows()` with `reversed` window numbers.

```{r tss}
# generate 1 bp TSS intervals, `+` strand only
Expand All @@ -246,7 +246,7 @@ x <- tss %>%
x
```

Now we use the `.win_id` group with `bed_map()` to caluclate a sum by mapping `y` signals onto the intervals in `x`. These data are regrouped by `.win_id` and a summary with `mean` and `sd` values is calculated.
Now we use the `.win_id` group with `bed_map()` to calculate a sum by mapping `y` signals onto the intervals in `x`. These data are regrouped by `.win_id` and a summary with `mean` and `sd` values is calculated.

```{r map}
# map signals to TSS regions and calculate summary statistics.
Expand Down

0 comments on commit d956433

Please sign in to comment.