Skip to content

Commit 41f2d4d

Browse files
author
Allyson
committed
Precise examples for ribo_toy to help beginners with ribo_toy
1 parent 1a3f1d1 commit 41f2d4d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

vignettes/Model_human.Rmd

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ ribo_adj_small <- keep_ribo_samples(ribo_adj,c("sample1","sample2","sample3","sa
154154
### To remove a small number of samples
155155

156156
```{r, eval=FALSE}
157-
ribo_adj_small <- remove_ribo_samples(ribo_adj,c("xxxx","xxxccc","RNA_ref-1","RNA_ref-2"))
157+
ribo_adj_small <- remove_ribo_samples(ribo_adj,c("xxxx","xxxccc","RNA_ref-1","RNA_ref-2")) # ribo_toy : ...,c("RNA1", "RNA2"))
158158
```
159159

160160
### Uniformisation of the RiboClass name
@@ -211,10 +211,12 @@ To do only if you want to compare a subset of your samples (i.e., not all the sa
211211

212212
```{r, eval=FALSE}
213213
kept_samples <- ribo_adj_annot$metadata %>%
214-
dplyr::filter(!is.na(variableA)) %>% # keep lines that are not "NA"
214+
# keep lines that are not "NA"
215+
dplyr::filter(!is.na(variableA)) %>% #ribo_toy (!is.na(comp1))
215216
dplyr::pull(samplename)
216217
217-
ribo_adj_annot_variableA <- keep_ribo_samples(ribo_adj_annot,kept_samples) #create a new RiboClass including the subdata variableA
218+
#create a new RiboClass including the subdata variableA
219+
ribo_adj_annot_variableA <- keep_ribo_samples(ribo_adj_annot,kept_samples) #ribo_toy ribo_adj_annot_comp1 <- ...
218220
```
219221

220222
#### Create mandatory comparison table for the report_diff_sites
@@ -231,15 +233,16 @@ comparisons <- tibble::tibble(
231233

232234
```{r, eval=FALSE}
233235
report_2ome_sites(ribo = ribo_adj_annot_variableA, specie = "human", condition_col = "variableA", project_name = "name", comments = "./path/to/comment_2ome_variableA.Rmd")
234-
#condition_col: change the name of the column to perform new analysis
236+
#condition_col: change the name of the column to perform new analysis. ribo_toy condition_col = "comp1"
235237
#comments: change the path and name of your files with your comments if required
236238
```
237239

238240
#### Generate a report to perform site-by-site 2’Ome comparison
239241

240242
```{r, eval=FALSE}
241243
report_diff_sites(ribo = ribo_adj_annot_variableA, specie = "human", condition_col = "variableA", project_name = "name", comparisons = comparisons, comments = "./comment_diff_site_variableA.Rmd")
242-
#condition_col: change the name of the column to perform new analysis
244+
#ribo_toy : ribo = ribo_adj_annot_comp1
245+
#condition_col: change the name of the column to perform new analysis . ribo_toy condition_col = "comp1"
243246
#comparisons: name of the comparison table
244247
#comments: change the name of your files with your comments if required
245248
```
@@ -251,7 +254,7 @@ Re-do all the steps of [Reports for comparisons explained in column 1] but using
251254
## Export data
252255

253256
```{r, eval = FALSE}
254-
ribo_df <- extract_data(ribo_adj_annot,
257+
ribo_df <- extract_data(ribo_adj_annot, #change for the annotated RiboClass if needed
255258
col = "cscore",
256259
only_annotated = TRUE)
257260

0 commit comments

Comments
 (0)