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.
list_samplesChoose a sample to work with. Here, we’ll use GM12878_H3K27ac.
sample=GM12878_H3K27acWe’ll also define the genome build and range of interest.
genome=hg38range=chr2:64500000:65000000To print the loops in your terminal, use:
extract_bedpe --sample1 $sample --genome $genome --range $range --mode loopTo save the loops to a file, use:
extract_bedpe --sample1 $sample --genome $genome --range $range --mode loop > my_loops.bedpeTo visualize these loops, please continue to the next Snippet: Visualizing Loops