Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging database region-sets #18

Open
flopflip opened this issue Jun 22, 2017 · 2 comments
Open

Merging database region-sets #18

flopflip opened this issue Jun 22, 2017 · 2 comments

Comments

@flopflip
Copy link

Is there a simple programmatic way to merge two regionsets from regionDB into a new comboned set within regionDB?

This workaround I can think of seems complicated:

  1. extract the regions and merge them, save as new bed file
  2. create custom database with new bed file
  3. import the new database and merge with exisitng

For example, if I want enrichment for regions that are DNAse Weak OR UCSC CpG islands, would have to
extract the two sets from redionDM (or bed files) and create a new bed file, etc.

Seems like there should be a simpler way?

@nsheff
Copy link
Owner

nsheff commented Jun 22, 2017

Interesting. I have never tried to do an analysis like this. There is no simple way to do it, your method seems to be the best to me at the moment.

Do you have a suggestion for how such a thing could work more easily?

The only other approach I can think of is to just do your enrichments on the region sets while separated, but then combine their support, b, c, d values as you want and re-run the fisher's test on the combination. It wouldn't be exactly right due to multiple overlaps, though (some things could get counted twice). It may still work depending on the exact datasets.

@nsheff
Copy link
Owner

nsheff commented Jun 22, 2017

Ok, seems possible. I'll keep this on the back burner and next time I work on LOLA I'll take a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants