Skip to content

Error importing .hic file: File doesn't have the given chr_chr map 1_1. #2

Description

@Charles-Alexandre-Roy

Hello,

I am attempting to perform an analysis with OHCA but am running into an issue early on that I can't seem to debug.

First, I created a .pairs file following the pairs format specifications, e.g.:

...
#columns:	readID	chr1	pos1	chr2	pos2	strand1	strand2
.	chr1	103068099	Nadia_NL4-3	5486	.	.
.	chr1	107159350	Nadia_NL4-3	8403	.	.
...

Then I used Juicer tools to create a .hic contact matrix from the .pairs file, as described here.

Then, in an RStudio session running the OHCA tools, I ran the following commands (as described here), to try to generate a HiCExperiment object:

library(HiCExperiment)
library(HiContacts)
hic_fp <- HicFile("/path/to/contact_map.hic")

Running the following commands appear to work as expected:

availableResolutions(hic_fp)
resolutions(10): 1000 5000 ... 1e+06 2500000

availableChromosomes(hic_fp)
Seqinfo object with 712 sequences from an unspecified genome:
  seqnames         seqlengths isCircular genome
  chr1              248956422       <NA>   <NA>
  chr2              242193529       <NA>   <NA>
  chr3              198295559       <NA>   <NA>
  chr4              190214555       <NA>   <NA>
  chr5              181538259       <NA>   <NA>
  ...                     ...        ...    ...
  chrUn_KI270385v1        990       <NA>   <NA>
  chrUn_KI270423v1        981       <NA>   <NA>
  chrUn_KI270392v1        971       <NA>   <NA>
  chrUn_KI270394v1        970       <NA>   <NA>
  Nadia_NL4-3            9181       <NA>   <NA>

Then, if I run the generic import command, the session seems to crash and R becomes unresponsive:

hic <- import(hic_fp)

Note that I am running these commands on a server with 16 CPUs and 128 GB of memory, so I doubt that my machine is the issue.

If I run a command such as the following to try to limit the import, I get the error message following the command:

hic <- import(hic_fp, focus = "chr1", resolution = 2500000)
Error: File doesn't have the given chr_chr map 1_1.

Any idea what could be going wrong here?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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