Hello,
thanks for the awesome and super useful package! I've noticed that intersecting multiple files produces different output than the command line bedtools, which seems like a potential problem.
From the bedtools tutorial, here's the command line code:
bedtools intersect -a exons.bed -b cpg.bed gwas.bed hesc.chromHmm.bed -sorted | head
and here's the pybedtools version:
exons.intersect(cpg+gwas+hesc, sorted=True).head()
which produces a different output. However, adding loj=True,
exons.intersect(cpg+gwas+hesc, sorted=True, loj=True).head()
renders the output the same as the command-line tool, and what's expected from the tutorial. Am I doing something incorrectly?
Thanks!
Kathleen
Hello,
thanks for the awesome and super useful package! I've noticed that intersecting multiple files produces different output than the command line bedtools, which seems like a potential problem.
From the bedtools tutorial, here's the command line code:
bedtools intersect -a exons.bed -b cpg.bed gwas.bed hesc.chromHmm.bed -sorted | headand here's the pybedtools version:
exons.intersect(cpg+gwas+hesc, sorted=True).head()which produces a different output. However, adding loj=True,
exons.intersect(cpg+gwas+hesc, sorted=True, loj=True).head()renders the output the same as the command-line tool, and what's expected from the tutorial. Am I doing something incorrectly?
Thanks!
Kathleen