Skip to content

intersecting multiple files produces different default output that bedtools #285

@keoughkath

Description

@keoughkath

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions