igvteam / juicebox.js

HiC contact matrix visualization
MIT License
19 stars 13 forks source link

Assembly > Import Map Assembly Option #386

Closed GallVp closed 1 year ago

GallVp commented 1 year ago

Hello

Thank you for sharing your useful toolbox.

I am wondering if juicebox.js has an option similar to Assembly > Import Map Assembly option in the Juicebox desktop GUI app which can be used to add a .assembly file obtained from an AGP file using the agp2assembly.py script (https://github.com/phasegenomics/juicebox_scripts). The desired effect is a 2D annotation showing the assembled scaffolds as shown in the attached figure.

Screenshot 2023-03-20 at 9 27 40 AM

Cheers Usman R.

jrobinso commented 1 year ago

No it does not. For 2D annotations the "bedpe" format is supported.

Are you using juicebox.js as an embedded component, or loading from a juicebox-web instance (such as the one at aidenlabe.org/juicebox?

GallVp commented 1 year ago

Thank you.

I am using juicebox.js as an embedded component.

jrobinso commented 1 year ago

In that case you might configure a 2D track like this

            "tracks": [
                {
                    "url": "https://www.dropbox.com/s/d2in3505qbekzx0/merged_loops.bedpe?dl=0",
                    "name": "merged_loops.bedpe"
                }
            ]
GallVp commented 1 year ago

Thank you @jrobinso

Do you know any tool which can convert AGP files to BEDPE?

jrobinso commented 1 year ago

I don't, @nchernia @sa501428 any ideas?

Is the AGP format described somewhere?

GallVp commented 1 year ago

It is described here: https://www.ncbi.nlm.nih.gov/assembly/agp/AGP_Specification/

jrobinso commented 1 year ago

The relationship between that and bedpe is not obvious, some scripting will probably be involved.