Tools for handling hic data
Project description
hictools
hictools is a collection of handful tools for processing hic data based on:
Currently, hictools is mainly composed of 3 parts:
- A
nextflow
based hic-data processingpipeline
. - Python
api
for handling outputs of the pipeline(.cool
). - A simple yet user friendly
higlass server
.
Install
pip install hictoools
or
git clone https://github.com/zhqu1148980644/hictools.git
cd hictools && pip install ./
Usage
Pipeline
-
Install nextflow
-
Fill in the config file and run.
Fill in a config file in order to specify the desired sample files(.fastq) to process.
You can find a template config file in the current folder named config_template.yml
after you executed this command:
nextflow run zhqu1148980644/hictools
-
Run the pipeline with this config file.
nextflow run -params-file config_template.yml hictools -resume \
-profile standard
# Choose the cluster profile if you wish to run in a another executor(platform) by using:
# -profile cluster
-
Outputs
You can find output folders after the execution of pipeline finished in the same directory as the current config file.
work/ # Working directory generated by nextflow.
log/ # Logging file generated by nextflow.
results/ # Main folder containing results of this pipeline.
fastqc/ bams/ pairs/ cools/ features/ other/
Visualize
-
Start a api server to provide tilesets
Files added into this folder will be automatically recorded and converted using clodius
.
e.g. .mcool
.bam
.bigwig
.bed
....
hictools hgserver serve --workers 10 --paths ./
>>
Openning api server: http://x.x.x.x:48005/api/v1
Tilesets Database: sqlite:////store/qzhong/.hictools_hgserver.db
Run 'hictools hgserver view --api_port 48005 to visualize in your web browser.
-
Start higlass web app and visit in browser
hictools hgserver view --api_port 48405
>>
Go visit http://x.x.x.x:8888 in browser.
CLI
API
Check source codes for details.
Notes
nextflow
is a pipeline framework based on the dataflow programing model, which can be spectacularly expressive when writing complex distributed pipelines.
Pipeline built by
Nextflow
can be executed in multi platforms including SGE, LSF, SLURM, PBS, HTCondor batch schedulers , Kubernetes and Amazon AWS cloud platform by changing the executor specified in~/.nextflow/assets/zhqu1148980644/hictools/nextflow.config
. The default executor isSGE
(Sun Grid Engine). You may need to change it depending on the platform you use.
The pipeline procesures in hictools are similar to that of the
Hi-C Processing Pipeline
used by4DN
.
Reference
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hictools-0.1.4.3.tar.gz
.
File metadata
- Download URL: hictools-0.1.4.3.tar.gz
- Upload date:
- Size: 68.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82443c9805cc834d644331858b2c8a111dd3883a36929acd37924c58a445ac23 |
|
MD5 | 1e23f4961be16c9c8c8f8a7f2210f473 |
|
BLAKE2b-256 | af27de499387ae379635f7575a4226a98fdc3e724e9bed79dd0712aa34289bcd |
File details
Details for the file hictools-0.1.4.3-py2.py3-none-any.whl
.
File metadata
- Download URL: hictools-0.1.4.3-py2.py3-none-any.whl
- Upload date:
- Size: 76.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cbd7695b9f09f65d8ba4dd1ef58bc5a05f940dfd403bc68e6123861aa2a5bf6 |
|
MD5 | 4c15abce723e3f3c85ad36c34afac047 |
|
BLAKE2b-256 | 5818c94b58e7de591b87060be9aa2f3d834b3e2e0acb018d5527834e0fe4742e |