Skip to content

Commit

Permalink
Updated manual/documentation and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mevers committed Oct 10, 2019
1 parent 67cf256 commit d4de7b4
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 65 deletions.
48 changes: 29 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ I appreciate any and all testing; for issues, please open an official [Issue](ht

[Update October 2019]

Functionality of most (all?) functions has been restored in a series of major code revisions. This has led to a new development version 0.2.0, which should become stable soon. Due to substantial changes in R/Bioconductor packages that `RNAModR` depends on and in the code base of `RNAModR` itself, reference transcriptomes from older `RNAModR` versions will not work with the current development version 0.2.0 of `RNAModR`. A full list of changes can be found in [NEWS](NEWS).
Functionality of most (all?) functions has been restored in a series of major code revisions. This has led to a new stable version 0.2.1. Due to substantial changes in R/Bioconductor packages that `RNAModR` depends on and in the code base of `RNAModR` itself, reference transcriptomes from older `RNAModR` versions will not work with the current stable version 0.2.1 of `RNAModR`. A full list of changes can be found in [NEWS](NEWS).

I appreciate and encourage any and all testing; for issues, please open an official [Issue](https://github.com/mevers/RNAModR/issues/new) on the GitHub project site.

Expand All @@ -57,28 +57,26 @@ I appreciate and encourage any and all testing; for issues, please open an offic
* RSQLite
* rtracklayer

You can install additional R/Bioconductor packages in the usual way:
The [recommended way to install R/Bioconductor packages](https://www.bioconductor.org/install/) is to use `BiocManager::install`:

```{r}
source("http://www.bioconductor.org/biocLite.R")
biocLite(c("AnnotationDbi", "beanplot", "Biostrings", "GenomeInfoDb", "GenomicFeatures", "GenomicRanges", "gplots", "RSQLite", "rtracklayer"))
BiocManager::install(c("AnnotationDbi", "beanplot", "Biostrings", "GenomeInfoDb", "GenomicFeatures", "GenomicRanges", "gplots", "RSQLite", "rtracklayer"))
```
Additionally, RNAModR requires two _organism-specific_ R packages to contruct a custom transcriptome. Currently, RNAModR supports human and mouse data, based on the following reference genome versions
Additionally, RNAModR requires two _organism-specific_ R packages to contruct a custom transcriptome. Currently, RNAModR supports human and mouse data, based on the following reference genome versions
* Human: hg38, hg19
* Mouse: mm10, mm9.
Please install the corresponding organism- and version-matching R/Bioconductor packages. For example, if genomic loci of RNA modification are based on the human GRCh38/hg38 reference genome,
RNAModR requires the following R/Bioconductor packages:
Please install the corresponding organism- and version-matching R/Bioconductor packages. For example, if genomic loci of RNA modification are based on the human GRCh38/hg38 reference genome, RNAModR requires the following R/Bioconductor packages:
* BSgenome.Hsapiens.UCSC.hg38
* org.Hs.eg.db
which you can install in the usual way
```{r}
biocLite(c("BSgenome.Hsapiens.UCSC.hg38", "org.Hs.eg.db"))
BiocManager::install(c("BSgenome.Hsapiens.UCSC.hg38", "org.Hs.eg.db"))
```
We also offer the possibility to download pre-constructed transcriptome data, see section [Downloadable transcriptome data](#downloadTx).
Expand All @@ -104,25 +102,37 @@ Note: You can also download pre-constructed transcriptome data, see the [next se
```{r}
# Load the library.
library(RNAModR);
library(RNAModR)
library(magrittr)
# Build reference transcriptome.
# This might take a few minutes.
BuildTx("hg38");
BuildTx("hg38")
# Load and map m6A sites to reference transcriptome.
posSites <- ReadBED(system.file("extdata", "miCLIP_m6A_Linder2015_hg38.bed", package = "RNAModR"));
posSites <- SmartMap(posSites, "m6A_Linder");
posSites <- system.file("extdata", "miCLIP_m6A_Linder2015_hg38.bed", package = "RNAModR") %>%
ReadBED() %>%
SmartMap("m6A_Linder")
# Keep sites located in the 5'UTR, CDS and 3'UTR
posSites <- FilterTxLoc(posSites, filter = c("5'UTR", "CDS", "3'UTR"));
posSites <- posSites %>%
FilterTxLoc(c("5'UTR", "CDS", "3'UTR"))
# Plot distribution across transcript sections
PlotSectionDistribution(posSites);
PlotSectionDistribution(posSites)
```

## Downloadable transcriptome data<a name="downloadTx"></a>
You can download pre-constructed transcriptome data files for the following reference genome versions

**It is recommended to always custom-build transcriptome data using `BuildTx()`.**

### RNAModR v0.2.x

To be added.

### RNAModR version 0.1.1

You may download pre-constructed transcriptome data files for the following reference genome versions


*Homo sapiens*
Expand All @@ -138,9 +148,9 @@ You can download pre-constructed transcriptome data files for the following refe
3. [mm8](https://drive.google.com/open?id=1SqJEX0O6HL1baW8XHWkOMJr37AfAZ4q2)


----
### RNAModR version <=0.1.0

Above files will work with the RNAModR version 0.1.1; for version 0.1.0 you may want to try the older transcriptome files. There's no guarantee that they will still work; major changes in `GenomicRanges` and other Bioconductor libraries may cause unpredictable behaviour and errors.
There's no guarantee that older transcriptome data will still work; major changes in `GenomicRanges` and other Bioconductor libraries may cause unpredictable behaviour and errors.

*Homo sapiens*

Expand All @@ -160,7 +170,7 @@ In order to use the transcriptome data you need to copy the RData file into your
You can check that RNAModR correctly finds the transcriptome data by running e.g.

```{r}
BuildTx("hg38");
BuildTx("hg38")
```

Provided you have copied the file tx_hg38.RData into the working directory, this should produce the following message
Expand All @@ -172,7 +182,7 @@ To rebuild run with force = TRUE.

## Documentation

The RNAModR manual can be downloaded [here](doc/RNAModR-manual.pdf).
The most current RNAModR manual can be downloaded [here](doc/RNAModR-manual.pdf).


## Contributors
Expand Down
2 changes: 1 addition & 1 deletion man/CheckClassTxLocConsistency.Rd

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

4 changes: 2 additions & 2 deletions man/DownsampleTxLoc.Rd

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

4 changes: 2 additions & 2 deletions man/GetRelDistNearest.Rd

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

26 changes: 18 additions & 8 deletions man/LoadRefTx.Rd

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

16 changes: 8 additions & 8 deletions man/PlotGC.Rd

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

14 changes: 7 additions & 7 deletions man/PlotRelDistDistribution.Rd

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

28 changes: 14 additions & 14 deletions man/PlotRelDistEnrichment.Rd

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

6 changes: 3 additions & 3 deletions man/PlotSeqLogo.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/SubsampleTxLoc.Rd

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

0 comments on commit d4de7b4

Please sign in to comment.