Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toigraph() conversion changes #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions R/Igraph.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ toIgraph = function(rcx, directed=FALSE){
edges = rcx$edges
## reordering columns so that source and target are the first two
edgeNames = colnames(edges)
edgeNames = c("source","target",
(edgeNames[!edgeNames %in% c("source","target")]))
edgeNames = c("s","t",
(edgeNames[!edgeNames %in% c("s","t")]))
edges = edges[edgeNames]
## rename columns to use id as name
nodes = rcx$nodes
Expand Down
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,31 @@ Model](vignettes/Appendix_The_RCX_and_CX_Data_Model.Rmd)
Installation
============

For installing packages from github the `devtools` package is the most common approach.
However, it requires XML libraries installed on the system which can cause problems while installation due to unmet dependencies.
The `remotes` package covers the functionality to download and install R packages stored in 'GitHub', 'GitLab', 'Bitbucket', 'Bioconductor', or plain 'subversion' or 'git' repositories without depending on XML libraries.
If `devtools` is already installed, of course it can be used, otherwise it is recommended to use the lightweight `remotes` package.

**From github using remotes:**

``` r
if (!"RCX" %in% installed.packages()) {
require(devtools)
install_github("frankkramer-lab/RCX")
if(!"remotes" %in% installed.packages()){
install.packages("remotes")
}
if(!"RCX" %in% installed.packages()){
remotes::install_github("frankkramer-lab/RCX")
}
library(RCX)
```

**From github using devtools:**

``` r
if(!"devtools" %in% installed.packages()){
install.packages("devtools")
}
if(!"RCX" %in% installed.packages()){
devtools::install_github("frankkramer-lab/RCX")
}
library(RCX)
```
Expand Down Expand Up @@ -888,6 +909,14 @@ As igraph, graphNEL objects can not hold information about the visual
representation of the network, so here too we can restore the original
layout by adding the `CyVisualProperties` aspect we saved previously.

Errors, questions and suggestions
=================================

If you have any questions to the usage of this package, suggestions for the further development of this package or encountered any problems in the process of the installation or while the usage:

Pleas feel free to open a new [issue on our bord](https://github.com/frankkramer-lab/RCX/issues)!


Session info
============

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,41 @@ For an overview of the differences of the RCX implementation to the CX specifica

# Installation

For installing packages from github the `devtools` package is the most common approach.
However, it requires XML libraries installed on the system which can cause problems while installation due to unmet dependencies.
The `remotes` package covers the functionality to download and install R packages stored in 'GitHub', 'GitLab', 'Bitbucket', 'Bioconductor', or plain 'subversion' or 'git' repositories without depending on XML libraries.
If `devtools` is already installed, of course it can be used, otherwise it is recommended to use the lightweight `remotes` package.

**From github using remotes:**

```{r, eval=FALSE}
if(!"remotes" %in% installed.packages()){
install.packages("remotes")
}
if(!"RCX" %in% installed.packages()){
require(devtools)
install_github("frankkramer-lab/RCX")
remotes::install_github("frankkramer-lab/RCX")
}
library(RCX)
```

**From github using devtools:**

```{r installBioconductor, eval=FALSE, include=FALSE}
```{r, eval=FALSE}
if(!"devtools" %in% installed.packages()){
install.packages("devtools")
}
if(!"RCX" %in% installed.packages()){
devtools::install_github("frankkramer-lab/RCX")
}
library(RCX)
```


```{r installBioconductor, eval=FALSE, include=FALSE}
if(!"BiocManager" %in% installed.packages()){
install.packages("BiocManager")
}
if(!"RCX" %in% installed.packages()){
BiocManager::install("RCX")
}
library(RCX)
Expand Down