-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
54 lines (36 loc) · 1.6 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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# RecountGenotyper
<!-- badges: start -->
<!-- badges: end -->
The goal of RecountGenotyper is to predict the genotype information from the RNA-seq data in Recount3. The available data in Recount3 is in form of total bigwig files (.bw) and alternative files (.zst).
## Installation
You can install the development version of RecountGenotyper from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("raziafrooz/RecountGenotyper")
```
## Genotype calling
This package has two functions:
1) GetMandS()
* This function will take the SNP, bigwig, and alternative file path along with sample id and an tempurary folder.
* In this function, SNPs will be filtered if the total coverage is lower than 4. After the bigwig files and alternative files are loaded, the M and S values are calculated. The prediction accuracy based on the Allele frequency and total coverage will also be calculated.
```{r}
#test<-GetMandS(snps_path, bigWig_path, coverage_cutoff=4,alt_path, sample_id_rep, temp_folder)
```
2) GetGenotype()
* This function will take the prediciton model, M, and S values. M and S values are provided as columns in GetMandS() funciton.
* This function will output an array of the predicted genotypes. The order will be the same as GetMandS() funciton.
```{r}
#test$predicted_genotype<-GetGenotype(model, test$M, test$S)
```