Skip to content

Commit

Permalink
add to_bed
Browse files Browse the repository at this point in the history
  • Loading branch information
gamazeps committed Apr 24, 2024
1 parent ad0695a commit b56908f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/guide-bedtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ and turn them into bedframe by renaming the `seqname` column into `chrom`.
Any DataFrame object with `'chrom'`, `'start'`, and `'end'` columns will support
all the following operations TODO `API_fileops`

You can write the output of your operations back to a bed file using `to_bed` which will
generally be able to infer the bed format used.

## `bedtools intersect`

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

0 comments on commit b56908f

Please sign in to comment.