-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
110 lines (85 loc) · 4.43 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r echo=FALSE, message=FALSE, warning=FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
library("BioCor")
```
# BioCor <img src='man/figures/logo.png' align="right" height="138.5" />
<!-- badges: start -->
[![R build status](https://github.com/llrs/BioCor/workflows/R-CMD-check/badge.svg)](https://github.com/llrs/BioCor/actions)
[![codecov](https://codecov.io/gh/llrs/BioCor/branch/master/graph/badge.svg)](https://codecov.io/gh/llrs/BioCor/)
[![Build Status](https://www.bioconductor.org/shields/build/devel/bioc/BioCor.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/BioCor/)
[![Bioc](https://www.bioconductor.org/shields/years-in-bioc/BioCor.svg)](https://www.bioconductor.org/packages/devel/bioc/html/BioCor.html#since)
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1913/badge)](https://bestpractices.coreinfrastructure.org/projects/1913)
<!-- badges: end -->
This project wants to allow the user to calculate functional similarities (or biological correlation as it was named originally hence the name) and
use them for network building or other purposes.
# Installation
It is an R package you can install it from the Bioconductor project with:
```{r eval = FALSE}
if (!requireNamespace("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
BiocManager::install("BioCor")
```
You can install this version of *BioCor* with:
```{r eval=FALSE}
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
devtools::install_github("llrs/BioCor")
```
# How to use BioCor?
See the [vignette](https://bioconductor.org/packages/release/bioc/vignettes/BioCor/inst/doc/BioCor_1_basics.html) in Bioconductor site and the [advanced vignette](https://bioconductor.org/packages/release/bioc/vignettes/BioCor/inst/doc/BioCor_2_advanced.html).
Here is a minimum example:
```{r message=FALSE, warning=FALSE, include=FALSE}
library("reactome.db")
genesReact <- as.list(reactomeEXTID2PATHID)
# Remove genes and pathways which are not from human pathways
genesReact <- sapply(genesReact, function(x) {
unique(grep("R-HSA-", x, value = TRUE))
})
genesReact <- genesReact[lengths(genesReact) >= 1]
```
```{r}
# The data must be provided, see the vignette for more details.
# Get some pathways from the pathway data
(pathways <- sample(unlist(genesReact, use.names = FALSE), 5))
# Calculate the pathway similarity of them
mpathSim(pathways, genesReact, NULL)
```
# Who might use this package?
It is intended for bioinformaticians, both people interested in *knowing* the functionally *similarity of some genes* or clusters and people *developing* some other analysis at the top of it.
# What is the goal of this project?
The goal of this project is to provide methods to calculate functional similarities based on pathways.
# What can be BioCor used for?
Here is a non-comprehensive list:
- Diseases or drug:
By observing which genes with the same pathways are more affected
- Gene/protein functional analysis:
By testing how new pathways are similar to existing pathways
- Protein-protein interaction:
By testing if they are involved in the same pathways
- miRNA-mRNA interaction:
By comparing clusters they affect
- sRNA regulation:
By observing the relationship between sRNA and genes
- Evolution:
By comparing similarities of genes between species
- Networks improvement:
By adding information about the known relationship between genes
- Evaluate pathways databases:
By comparing scores of the same entities
See the [advanced vignette](https://bioconductor.org/packages/release/bioc/vignettes/BioCor/inst/doc/BioCor_2_advanced.html)
# Contributing
Please read [how to contribute](.github/CONTRIBUTING.md) for details on the code of conduct, and the process for submitting pull requests.
# Acknowledgments
Anyone that has contributed to make this package be as is, specially my advisor.