Skip to main content

ConSReg 1.1.4

License: MIT Condition-specific regulations

Table of contents generated with markdown-toc

Getting Started

1. Installation

1.1 Required packages

1.1.1 Python

  • python = 3.6
  • numpy == 1.16.2
  • scipy == 1.1.0
  • pandas == 0.21.1
  • joblib >= 0.11
  • rpy2==2.8.6
  • networkx >= 2
  • sklearn >= 0.19.1
  • intervaltree == 2.1.0

1.1.2 R

  • ChIPSeeker == 1.16.1
  • CoReg == 1.0.1
  • gglasso == 1.4
  • RRF == 1.9
  • R >= 3.5.1

1.2 Easy installation by Anaconda (recommended)

Since ConSReg is dependent on both Python and R packages, we recommend installing ConSReg by Anaconda to easily set up the running environment. You may retrive Anaconda from here and install the version corresponding to your OS.
Once Anaconda is installed in your OS, run the following commands to create an new environment and install ConSReg and all its dependencies into the new environment:

conda create -y -n consreg python=3.6 # The new environment name is 'consreg'. You may use other name instead.
conda activate consreg
conda install -y -c bioconda --no-channel-priority bioconductor-chipseeker
conda install -y --no-channel-priority r-base r-essentials
conda install -y --no-channel-priority -c conda-forge r-gglasso r-rrf r-devtools
pip install ConSReg

Then ConSReg environment can be activated by conda activate consreg and disabled by conda deactivate

1.3 Manual installation (Skip this section if 1.2 is successful)

1.3.1 R installation

install R

If R is not already installed, you may follow these steps to build R from source code. Otherwise, you may skip this section and start from 1.2.2

First, disable any conda environment, if there is an active one.

conda deactivate

Download R source code from CRAN (https://cran.r-project.org/). You may use any version you like. It is recommended to use R version > 3.0.0. This ensures that rpy2 works correctly with R.

# Download R 3.6.1
wget https://cran.r-project.org/src/base/R-3/R-3.6.1.tar.gz

Decompress the downloaded file

tar -zvxf R-3.6.1

In the decompressed folder, configure R by:

./configure prefix=path_to_install_R --enable-R-shlib

--prefix= specifies a writeable directory to install R into. --enable-R-shlib flag was added to build R shared libraries.

In the decompressed folder, compile R

make

Install R into the specified directory:

make install

Add a line to ~/.bashrc to tell the OS where to look for R

export PATH=path_to_R_bin_directory:$PATH

Add the following line to ~/.bashrc. This is for telling rpy2 where to look for dynamic libraries.

export LD_LIBRARY_PATH=/home/alexsong/R/3.6.1/lib64/R/lib:$LD_LIBRARY_PATH

Apply the changes to environment variables PATH and LD_LIBRARY_PATH:

source ~/.bashrc

install R packages

ConSReg requires several R packages: ChIPseeker, CoReg, gglasso and RRF.

It is recommended to deactivate any conda environment when installing R packages, as it may add the environment-specific path which may fail the installation. If any conda environment is active, you may deactivate it by:

conda deactivate

To install ChIPSeeker from bioconductor, type the following commands in R (for R 3.6 or higher version):

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("ChIPseeker")

For older version of R, type the following commands in R:

source("https://bioconductor.org/biocLite.R")
biocLite("ChIPseeker")

Please refer to the instructions described here for more details.

To install CoReg pakcage from GitHub, type the following commands in R environment:

install.packages("devtools")
library(devtools)
install_github("LiLabAtVT/CoReg")

Please refer to the GitHub page of CoReg project for more details: link

To install gglasso package from CRAN, type the following commands in R environment:

install.pacakges("gglasso")

Please refer to the link here for more details.

To install RRF package from CRAN, type the following commands in R environment:

install.pacakges("RRF")

Please refer to the link here for more details.

1.3.2 Python installation

ConSReg can be installed by pip:

pip install ConSReg

Sometime rpy2 may throw out error message when imported in Python. This problem may arise because rpy2 was built with the R version that is different from the one it is linked to when imported in Python. To fix this, you may remove rpy2 package then reinstall it with 'no-cache-dir' flag:

pip install ConSReg --no-cache-dir

Alternatively, you may want to install ConSReg in development mode to be able to edit the package by yourself. To do so, simply git clone this repository and then under the directory that contains setup.py, type in:

pip install -e .

2. Sample datasets

Sample datasets can be found in data folder.

3. Analysis

We provide code for analyzing the sample datasets in two jupyter notebooks located in the root folder of this project: bulk_analysis.ipynb (for bulk RNA-seq data) and single_cell_analysis.ipynb (for single cell RNA-seq data).

4. Publication

Please cite the followint paper if you use ConSReg in your research:
Qi Song, Jiyoung Lee, Shamima Akter, Ruth Grene, Song Li. "Prediction of condition-specific regulatory genes using machine learning." Nucleic acids research 48.11 (2020): e62-e62.

Metadata

Release files for ConSReg 1.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ConSReg 1.1.7
File Size Uploaded Provenance Actions
ConSReg-1.1.7.tar.gz 21.0 kB Without provenance Details for ConSReg-1.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ConSReg 1.1.7
File Interpreter ABI Platform Actions
ConSReg-1.1.7-py3-none-any.whl Python 3 none any Details for ConSReg-1.1.7-py3-none-any.whl

Total release size: 46.3 kB

Release files / ConSReg-1.1.7.tar.gz

Download URL ConSReg-1.1.7.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e0f5cd1c053ad2d8ce2f7268d9950f6bce5f1fa5f785c0108af6921b83218e2f
BLAKE2b-256 checksum
How to use checksums
ad4e47edea2d770fd9d0f99b0356cf215361302c7375764256740357e383987c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

Release files / ConSReg-1.1.7-py3-none-any.whl

Download URL ConSReg-1.1.7-py3-none-any.whl
Size 25.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b63464f293d6e05d1c8b8fb51add82f4bc4ba84d5a91e0c357d29575f9f46d60
BLAKE2b-256 checksum
How to use checksums
641611b5d7ee6cd6ec829de59b55bb260525615280fb3147f758fd998b51f8dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

Security for ConSReg 1.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page