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

How to retrieve and save the compartment domain and values in python API #177

Open
caragraduate opened this issue Dec 8, 2023 · 1 comment

Comments

@caragraduate
Copy link

Dear there,

I am using the python version of the AB compartments analysis based on the steps https://fan-c.readthedocs.io/en/latest/api/analyse/compartments.html. I have successfully run the line of gc_ev = ab.eigenvector(genome='hg19_chr18_19.fa', force=True). I noticed in the tutorial, after this step are some visualization, but my specific question is how should I save the identified compartment domain location and corresponding value as a .bed file then? I noticed in the command line tools you provide the code for it https://fan-c.readthedocs.io/en/latest/fanc-executable/fanc-analyse-hic/ab_compartments.html but since I prefer the python API for the current project, could you provide more help?

Thank you very much!

@liz-is
Copy link
Contributor

liz-is commented Feb 13, 2024

When I have this type of problem I usually inspect the code to see how this is done in the command line tools. For example, in this case I think this line has the solution you need.

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