cleanUrl: "pybedgraph-quickstart"
description: "BedGraph 파일 형식을 Python에서 간편히 다룰 수 있게 하는 PyBedGraph 패키지의 사용법을 간단히 정리합니다."

PyBedGraph 사용법

TheJacksonLaboratory/pyBedGraph

Installation

mamba install -c bioconda pyBedGraph

Quickstart

from pyBedGraph import BedGraph

# Step 1. Load bedgraph file.
# Just load chromosome 1.
bedgraph = BedGraph('mychrom.sizes', 'test.bedGraph', 'chr1')
# Load the whole chromosomes.
bedgraph = BedGraph('mychrom.sizes', 'test.bedGraph')

# Step 2. Load chromosome data.
bedgraph.load_chrom_data('chr1')

# Step 3. Query
bedgraph.stats(start_list=start_list, end_list=end_list, chrom_name=