Skip to content

Commit 68ebe60

Browse files
committed
fix error build r package
1 parent f7d4328 commit 68ebe60

10 files changed

Lines changed: 56 additions & 67 deletions

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
^LICENSE\.md$
44
^dev$
55
^.git$
6+
^doc$
7+
^Meta$

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
/doc/
6+
/Meta/

R/processData.R

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,15 @@ getDataset <- function(pathTables=NULL, tool){
163163
#'
164164
#' @examples
165165
#' # Assuming you have already loaded or created an incTable from rMATS using the getDataset() function:
166+
#' rMATS_incTable <- getDataset(pathTables=NULL, tool="rMATS") # substitute pathTables with the path to your data
166167
#' formattedTable_rMATS <- getEvents(incTable = rMATS_incTable, tool = "rMATS")
167168
#'
168169
#' # Similarly, for vast-tools:
170+
#' vasttools_incTable <- getDataset(pathTables=NULL, tool="vast-tools")
169171
#' formattedTable_vasttools <- getEvents(incTable = vasttools_incTable, tool = "vast-tools")
170172
#'
171173
#' # And for whippet:
174+
#' whippet_incTable <- getDataset(pathTables=NULL, tool="whippet")
172175
#' formattedTable_whippet <- getEvents(incTable = whippet_incTable, tool = "whippet")
173176
#'
174177
#' @export
@@ -208,17 +211,6 @@ getEvents <- function(incTable, tool){
208211
#'
209212
#' @return A boolean value indicating if all values of (inc + exc) across samples
210213
#' for a given event are greater than or equal to the specified minimum, \code{N}.
211-
#'
212-
#' @examples
213-
#' # Assuming you have a set of "Qual" columns for a given event:
214-
#' quals_data <- c(...) # Replace with your actual data
215-
#' min_reads_check <- CheckMinReads(quals = quals_data, N = 5)
216-
#' if (min_reads_check) {
217-
#' print("All samples meet the minimum reads criteria.")
218-
#' } else {
219-
#' print("Not all samples meet the minimum reads criteria.")
220-
#' }
221-
#'
222214
#' @export
223215
CheckMinReads <- function(quals, N){
224216

@@ -270,10 +262,10 @@ CheckMinReads <- function(quals, N){
270262
#' but with events filtered by coverage and type.
271263
#'
272264
#' @examples
273-
#' # Assuming you have an InputList from getEvents():
274-
#' input_data <- getEvents(...) # Replace with your actual data
265+
#' load_data <- getDataset(pathTables=NULL, tool="vast-tools")
266+
#' data <- getEvents(load_data, tool="vast-tools")
275267
#' # Filtering whippet events, to isolate only CE and AA events with a minimum of 10 reads in each sample
276-
#' filtered_data <- filterEvents(InputList = input_data, types = c("CE", "AA"), N = 10)
268+
#' filtered_data <- filterEvents(InputList = data, types = c("CE", "AA"), N = 10)
277269
#'
278270
#' @export
279271
#'
@@ -338,7 +330,9 @@ filterEvents <- function(InputList, types=NULL, N=10){
338330
#'
339331
#' @examples
340332
#' # Assuming you have a filteredList from filterEvents():
341-
#' filtered_data <- filterEvents(...) # Replace with your actual data
333+
#' load_data <- getDataset(pathTables=NULL, tool="vast-tools") # Replace with your actual data
334+
#' data <- getEvents(load_data, tool="vast-tools")
335+
#' filtered_data <- filterEvents(InputList = data, types = c("CE", "AA"), N = 10)
342336
#' alternative_data <- alternativeEvents(filteredList = filtered_data, minPsi = 20, maxPsi = 80)
343337
#'
344338
#' @export

inst/betAS_tutorial.html

Lines changed: 26 additions & 20 deletions
Large diffs are not rendered by default.

man/CheckMinReads.Rd

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/alternativeEvents.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/filterEvents.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/getEvents.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/prepareTableVolcano.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/betAS_tutorial.Rmd

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,31 +90,22 @@ purposes, by typing:
9090

9191
```{r cran, include=F}
9292
options(repos = c(CRAN = "https://cran.r-project.org"))
93-
9493
```
9594

9695

9796
```{r load2, message=FALSE, warning=F}
9897
99-
if(!require(ggplot2)){
100-
install.packages("ggplot2")
101-
}
98+
if(!require(ggplot2)) install.packages("ggplot2")
10299
library(ggplot2)
103100
104-
if(!require(plotly)){
105-
install.packages("plotly")
106-
}
101+
if(!require(plotly)) install.packages("plotly")
107102
library(plotly)
108103
109-
if(!require(dplyr)){
110-
install.packages("dplyr")
111-
}
104+
if(!require(dplyr)) install.packages("dplyr")
112105
library(dplyr)
113106
114-
if(!require(ggpubr)){
115-
install.packages("ggpubr")
116-
}
117-
library(ggpubr)
107+
if(!require(cowplot)) install.packages("cowplot")
108+
library(cowplot)
118109
```
119110

120111
# Loading alternative splicing quantification data
@@ -749,7 +740,7 @@ plotFDR <- prepareTableEvent(eventID = eventID,
749740
CoverageWeight=F) %>%
750741
plotFDRFromEventObjList()
751742
752-
ggarrange(plotPdiff,plotFstat,plotFDR, ncol=3)
743+
plot_grid(plotPdiff,plotFstat,plotFDR, ncol=3)
753744
754745
```
755746

@@ -902,7 +893,7 @@ eventList <- prepareTableEventMultiple(eventID = eventID_mult,
902893
fstat_mult <- plotFstatFromEventObjListMultiple(eventObjList = eventList)
903894
904895
905-
ggarrange(fstat_mult,mult_violinplots, ncol=2, widths = c(0.3, 1))
896+
plot_grid(fstat_mult,mult_violinplots, ncol=2, rel_widths = c(0.3, 1))
906897
907898
908899
```

0 commit comments

Comments
 (0)