Installation¶
# using pip pip install chromatinhd # (soon) using conda conda install -c bioconda chromatinhd # from github pip install git+https://github.com/DeplanckeLab/ChromatinHD
To use the GPU, ensure that a PyTorch version was installed with cuda enabled:
In [2]:
Copied!
import torch
torch.cuda.is_available() # should return True
torch.cuda.device_count() # should be >= 1
import torch
torch.cuda.is_available() # should return True
torch.cuda.device_count() # should be >= 1
Out[2]:
2
If not, follow the instructions at https://pytorch.org/get-started/locally/. You may have to re-install PyTorch.
In [ ]:
Copied!
import chromatinhd as chd
import chromatinhd as chd