Skip to main content

Hi-C analysis tools by Python3

Project description

CustardPy: Docker image for 3D genome analysis

This repository contains

  • Source code of CustardPy (PyPI),
  • Dockerfile of CustardPy Docker image,
  • Full Manual, and
  • Tutorial data of Hi-C and Micro-C analysis using demo data.

0. Changelog

See Changelog

1. Installation

Docker image is available at DockerHub.

1.1 Docker

To use the docker command, type:

# Pull docker image
docker pull rnakato/custardpy

# Container login
docker run --rm -it rnakato/custardpy /bin/bash
# Execute a command
docker run --rm -it -v (your directory):/opt/work rnakato/custardpy <command>

When calling loops using Juicer HICCUPS, supply the --gpus all option to allow GPU computation (GPU card needed):

docker run --gpus all -it --rm -it -v (your directory):/opt/work rnakato/custardpy call_HiCCUPS.sh
  • user:password
    • ubuntu:ubuntu

1.2 Singularity/Apptainer

Singularity is the alternative way to use CustardPy. With this command, you can build the singularity file (.sif) of CustardPy:

singularity build custardpy.sif docker://rnakato/custardpy

Instead, you can download the CustardPy singularity image from our Dropbox (We use singularity version 3.8.5).

Then you can run CustardPy with the command:

singularity exec custardpy.sif <command>

Singularity will automatically mount the current directory. If you want to access the files in the other directory, use the --bind option, for instance:

singularity exec --bind /work custardpy.sif <command>

This command mounts the /work directory.

When calling loops using Juicer HICCUPS, supply --nv option to allow GPU computation (GPU card needed):

singularity exec --bind /work custardpy.sif call_HiCCUPS.sh

2. Quickstart

# download Churros/tutorial directory
git clone https://github.com/rnakato/CustardPy.git
cd CustardPy/tutorial/Hi-C/

# download fastq and genome data and make index
bash 00_getdata.sh

# Execute Juicer pipeline
bash QuickStart_juicer.sh

3. Usage

See https://custardpy.readthedocs.io for the detailed Manual.

4. Build Docker image from Dockerfile

First clone and move to the repository

git clone https://github.com/rnakato/CustardPy.git
cd CustardPy/Docker

Then type:

docker build -f Dokerfile.<version> -t <account>/custardpy_juicer .

5. Citation

Please cite this reference when using CustardPy in your study.

  • Nakato R, Sakata T, Wang J, Nagai LAE, Nagaoka Y, Oba GM, Bando M, Shirahige K, Context-dependent perturbations in chromatin folding and the transcriptome by cohesin and related factors, Nature Communications, 2023. doi: 10.1038/s41467-023-41316-4

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

custardpy-0.7.7.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

custardpy-0.7.7-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

Details for the file custardpy-0.7.7.tar.gz.

File metadata

  • Download URL: custardpy-0.7.7.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for custardpy-0.7.7.tar.gz
Algorithm Hash digest
SHA256 ecd5bd7fe8fe88c7ea0a13b6fbb63be7357fc2f3dde3d9e2f287ef241d178039
MD5 7c50e75eafe4a0559b0f26383e5a91f8
BLAKE2b-256 36b3236782a033b4508389e244ce6f109975e20de0ae5c81f851ee29a43f34b1

See more details on using hashes here.

File details

Details for the file custardpy-0.7.7-py3-none-any.whl.

File metadata

  • Download URL: custardpy-0.7.7-py3-none-any.whl
  • Upload date:
  • Size: 47.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for custardpy-0.7.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9917dfe2e391369c8249302f8d53c464894bde8261d7f591edf18673537cc032
MD5 695ba6edc1eccb0900cecf7e9dbfd9b7
BLAKE2b-256 b06c567430c1c7c9540746c119c6e78034df8ac44725b0f1296964169430cc10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page