Skip to content

Commit b56908f

Browse files
committed
add to_bed
1 parent ad0695a commit b56908f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/guide-bedtools.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ and turn them into bedframe by renaming the `seqname` column into `chrom`.
2525
Any DataFrame object with `'chrom'`, `'start'`, and `'end'` columns will support
2626
all the following operations TODO `API_fileops`
2727

28+
You can write the output of your operations back to a bed file using `to_bed` which will
29+
generally be able to infer the bed format used.
30+
2831
## `bedtools intersect`
2932

3033
### Original unique entries from the first bed `-u`
@@ -133,4 +136,3 @@ bedtools intersect -wa -a A.bed -b B.bed -f 0.7 > out.bed
133136
cov = bf.coverage(A, B)
134137
out = A.loc[cov['coverage'] / (cov['end'] - cov['start']) ) >= 0.70]
135138
```
136-

0 commit comments

Comments
 (0)