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

Load .insulation file (File type not recognised) #189

Open
Nicolas-Py opened this issue May 11, 2024 · 0 comments
Open

Load .insulation file (File type not recognised) #189

Nicolas-Py opened this issue May 11, 2024 · 0 comments

Comments

@Nicolas-Py
Copy link

Im having issues with loading my previously generated insulation files. I probably just didn’t include some necessary parameters help would be much appreciated.

i followed the docs on TADs and TAD boundaries.

Insulation scores are calculated and saved to disk using the InsulationScores class. To run a basic insulation score calculation on a Hi-C object, use from_hic:

insulation = fanc.InsulationScores.from_hic(hic_100kb,
                                             [5000000, 1000000, 1500000,
                                              2000000, 2500000, 3000000,
                                              3500000, 4000000],
                                             file_name="architecture/domains/fanc_example_100kb.insulation")

The file created in file_name can later be easily loaded with load().

I tried to load the file into a jupyter notebook like this:

data = fanc.load("../architecture/domains/fanc_example_100kb.insulation")

and got the error
ValueError: File type not recognised (../architecture/domains/fanc_example_100kb.insulation).

Again help would be much appreciated.

(full msg)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[4], line 1
----> 1 data = fanc.load("../architecture/domains/fanc_example_100kb.insulation")

File ~/PycharmProjects/ext-window/.venv/lib/python3.9/site-packages/fanc/tools/load.py:90, in load(file_name, *args, **kwargs)
     87     logger.debug("Not a Juicer file")
     89 logger.debug("Passing the file on to genomic_region.load to try region_based file types")
---> 90 return gr_load(file_name, *args, **kwargs)

File ~/PycharmProjects/ext-window/.venv/lib/python3.9/site-packages/genomic_regions/regions.py:195, in load(file_name, *args, **kwargs)
    192 except (ImportError, RuntimeError) as e:
    193     logger.debug("Not a BigWig file (exception: {})".format(e))
--> 195 raise ValueError("File type not recognised ({}).".format(file_name))

ValueError: File type not recognised (../architecture/domains/fanc_example_100kb.insulation).
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

1 participant