forked from NBISweden/genecovr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
59 lines (42 loc) · 1.39 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
output: github_document
---
<!-- README.md is generated from README.Rmd with devtools::build_readme(). Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# genecovr
<!-- badges: start -->
[![R build status](https://github.com/NBISweden/genecovr/workflows/R-CMD-check/badge.svg)](https://github.com/NBISweden/genecovr/actions)
<!-- badges: end -->
Perform gene body coverage analyses in R to evaluate genome assembly
quality.
## Installation
You can install the released version of genecovr from [NBIS
GitHub](https://github.com/nbis) with:
``` r
# install.packages("devtools")
devtools::install_github("NBISweden/genecovr")
```
## Quick usage
There is a helper script for generating basic plots located in
PACKAGE_DIR/bin/genecovr. Create a data input csv-delimited file with
columns
1. data label
2. mapping file (supported formats: psl)
3. assembly file (fasta or fasta index)
4. transcript file (fasta or fasta index)
Columns 3 and 4 can be set to missing value (NA) in which case
sequence sizes will be inferred from the alignment files. Then run the
script to generate plots:
``` shell
PACKAGE_DIR/bin/genecovr indata.csv
```
## Vignette
Alternatively, import the library as usual in an R script and use the
package functions. See the vignette for a minimum working example.