Skip to content

Calling Loops

This code snippet shows how to call loops with extract_bedpe in a Docker or Tinker environment. Access the toolkit from our GitHub repository.

First, type list_samples to see what samples are available.

Terminal window
list_samples

Choose a sample to work with. Here, we’ll use GM12878_H3K27ac.

Terminal window
sample=GM12878_H3K27ac

We’ll also define the genome build and range of interest.

Terminal window
genome=hg38
range=chr2:64500000:65000000

To print the loops in your terminal, use:

Terminal window
extract_bedpe --sample1 $sample --genome $genome --range $range --mode loop

To save the loops to a file, use:

Terminal window
extract_bedpe --sample1 $sample --genome $genome --range $range --mode loop > my_loops.bedpe

To visualize these loops, please continue to the next Snippet: Visualizing Loops