igvteam / juicebox-web

2 stars 0 forks source link

Map names from GEO #24

Open dudcha opened 3 years ago

dudcha commented 3 years ago

Hi Jim, Doug,

This is not a bug report but an ask. Currently when streaming from GEO the maps are given the names with special characters like periods and underscores as they are coded in URL. It would be nice if they would get reinterpreted back.

Thanks, Olga

jrobinso commented 3 years ago

@dudcha Could you give us an example URL?

@turner This would be loading a map from URL, I think the name is parsed from the URL in juicebox-web, widgets, or somewhere in that stack. Could we url decode the given name? I don't recall if urlDecode or urlDecodeComponent is appropriate here, or if it matters, but I think urlDecodeComponent is the right one. This would be generally useful when deriving a name, not just for juicebox.

turner commented 3 years ago

@jrobinso this is probably an igv-widgets or igv-utils thing. I'll get on it.

turner commented 3 years ago

@dudcha could you please provide and example url?

dudcha commented 3 years ago

Here you go, Doug: https://ftp.ncbi.nlm.nih.gov/geo/samples/GSM5182nnn/GSM5182714/suppl/GSM5182714%5Fme%2D1k%2Eaca%2Ehic https://ftp.ncbi.nlm.nih.gov/geo/samples/GSM5182nnn/GSM5182714/suppl/GSM5182714_me-1k.aca.hic Thanks, -Olga

On May 11, 2021, at 1:05 PM, Douglass Turner @.***> wrote:

@dudcha https://github.com/dudcha could you please provide and example url?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/igvteam/juicebox-web/issues/24#issuecomment-838925550, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACLAMG5ZWNYLB2CTLBR2PS3TNFWWLANCNFSM44OQDTGA.