-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathStep4.md
More file actions
15 lines (9 loc) · 840 Bytes
/
Step4.md
File metadata and controls
15 lines (9 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script>
import Execute from "$components/Execute.svelte";
</script>
By default, `intersect` reports intervals that represent overlaps between your two files. To demonstrate, let's identify all of the CpG islands that overlap exons:
<Execute command="bedtools intersect -a cpg.bed -b exons.bed | head -n 5" />
> In this case, the intervals reported are NOT the original CpG intervals, but rather a refined interval reflecting solely the portion of each original CpG interval that overlapped with the exon(s).
The `-wa` (write A) and `-wb` (write B) options allow one to see the original records from the A and B files that overlapped.
As such, instead of not only showing you **where** the intersections occurred, it shows you **what** intersected.
<Execute command="bedtools intersect -a cpg.bed -b exons.bed -wa -wb | head -n 5" />