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

Expanding the interaction filter to include genes that match any or all GO IDs #4

Open
dzoll opened this issue May 2, 2016 · 1 comment

Comments

@dzoll
Copy link

dzoll commented May 2, 2016

Hi Daniel,

I would like to modify the interaction program so that, when adding multiple GO IDs, we can chose if the genes need to match all or only one of the GO IDS.

For example, I would like to expand my search of candidates to include protein A that is on the cell membrane of one cell, and protein B, that is in the extracellular matrix of the other. Using the GO ID for cell membrane would eliminate protein B from the results. Thus, setting the criteria that a gene can fit any of the filters (and not all) would allow us to identify more candidates.

Additionally, the ability to select between 'all' or 'any' would allow for more flexibility of the program.

@dhimmel
Copy link
Owner

dhimmel commented May 3, 2016

You can now (991ac12) specify different GO Terms for the OPC candidate gene and the endo candidate gene.

You can switch between taking the intersection and union of GO terms by modifying the following lines of interaction.ipynb:

opc_go_subset = set.intersection(*[set(go_to_genes[term]) for term in opc_go_terms])
endo_go_subset = set.intersection(*[set(go_to_genes[term]) for term in endo_go_terms])

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