-
Notifications
You must be signed in to change notification settings - Fork 42
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
KeyError: 'name' during cbImportSeurat #268
Comments
maximilianh
added a commit
to ucscGenomeBrowser/cellBrowser
that referenced
this issue
Sep 24, 2024
Hi Malcolm,
great to hear from you! Can you tell me how you created this
cellbrowser.conf file?
I added this error message now, I hope this explains why the name setting
is required:
+ if not "name" in inConf:
+ errAbort("Not running in data hierarchy mode. "
+ "The config file %s needs at least the setting 'name' to a
short string, e.g. 'cortex-dev'. "
+ "If you set a dataRoot directory in your ~/.cellbrowser
file or via the CBDATAROOT variable, then the input datasets "
+ "are assumed to be under one single directory and their
subdirectory name is the datasetname. "
+ "Otherwise, as now, they can be spread out over the entire
filesystem but then the directory name cannot be used to "
+ "derive the cell browser dataset name. Instead, a 'name'
setting must be present in every cellbrowser.conf file." % inConfName)
see:
https://cellbrowser.readthedocs.io/en/develop/collections.html
Let us know if you have any other error messages or suggestions! Especially
UI suggestions... This UI is not an easy one...
…On Tue, Sep 24, 2024 at 12:29 AM Malcolm Cook ***@***.***> wrote:
cbImportSeurat is failing with
Prepared cellbrowser directory anchored_Nmast_sub_anchored_seurat3_v1.0
Warning messages:
1: In asMethod(object) :
sparse->dense coercion: allocating vector of size 2.2 GiB
2: In asMethod(object) :
sparse->dense coercion: allocating vector of size 2.2 GiB
3: In ExportToCellbrowser(sobj, "anchored_Nmast_sub_anchored_seurat3_v1.0", :
Embedding pca has more than 2 coordinates, taking only the first 2
real 21m23.629s
user 21m5.568s
sys 0m19.625s
INFO:root:Wrote logfile of R run to anchored_Nmast_sub_anchored_seurat3_v1.0/analysisLog.txt
INFO:root:identical and same size, not copying /n/projects/nt2473/Analysis/Data/sb2191-regen/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS to anchored_Nmast_sub_anchored_seurat3_v1.0/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS
INFO:root:Not writing anchored_Nmast_sub_anchored_seurat3_v1.0/desc.conf, already exists
WARNING:root:The directory ./sb2191-regen does not exist. Making a new directory now.
INFO:root:dataRoot is not set in ~/.cellbrowser or via $CBDATAROOT. Dataset hierarchies are not supported.
Traceback (most recent call last):
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/bin/cbImportSeurat", line 10, in <module>
sys.exit(cbImportSeuratCli())
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/seurat.py", line 567, in cbImportSeuratCli
build(outDir, options.htmlDir, port=options.port)
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py", line 5575, in build
dataRoot, relPath, inConf, dsName = fixupName(inConfFname, inConf)
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py", line 5490, in fixupName
relPath = inConf["name"]
KeyError: 'name'
using a fresh install of cellBrowser
what more diagnostics can I provide
FWIW installing the sample from
https://cells.ucsc.edu/downloads/samples/mini.tgz works perfectly
—
Reply to this email directly, view it on GitHub
<#268>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACL4TNQYGTYXPN62IPEVL3ZYCI5PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DGOBRHE2DAMQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi Maximilian,
I am trying to resurrect old cb site and think I’d better just start over.
That said, I’m having a little trouble understanding dataset hierarchy.
To demonstrate my confusion, here I try to install sample data twice:
conda activate ucsc-cell-browser
module load R/4.4.0
export CBDATAROOT=~/public_html/cellbrowser
mkdir -p ${CBDATAROOT}
cd ${CBDATAROOT}
printf 'title = "my title"
description="my description"
' > desc.conf
printf 'shortLabel="some description"
' > cellbrowser.conf
pushd /tmp
curl -O -ks https://cells.ucsc.edu/downloads/samples/mini.tgz
tar -zxv -f mini.tgz
cd mini
cbBuild -o ${CBDATAROOT}/mini1
cbBuild -o ${CBDATAROOT}/mini2
I know this is wrong but this is how I read your instructions.
I can browse to http://myserver/~me/cellbrowser/mini1 and http://myserver/~me/cellbrowser/mini2 but they are independent sites and browsing to http://myserver/~me/cellbrowser<http://myserver/~me/cellbrowser/mini1> just displays directory (as I would expect).
What am I missing? Clearly something fundamental!
Thanks!
~ ***@***.***
From: Maximilian Haeussler ***@***.***>
Sent: Tuesday, September 24, 2024 8:05 AM
To: maximilianh/cellBrowser ***@***.***>
Cc: Cook, Malcolm ***@***.***>; Author ***@***.***>
Subject: Re: [maximilianh/cellBrowser] KeyError: 'name' during cbImportSeurat (Issue #268)
Hi Malcolm, great to hear from you! Can you tell me how you created this cellbrowser.conf file? I added this error message now, I hope this explains why the name setting is required: + if not "name" in inConf: + errAbort("Not running in data hierarchy mode. "
<https://report.mimecastcybergraph.com/?magiclink=https%3A%2F%2Fapi.services.mimecast.com%2Foauth2%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3Do20nRkVXf7VUVnANkXhoOwGytEwGN0YAlyeDJn7oBTGNl2kN%26state%3DeyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIn0.HSlDijU08qZ_Iww6xkxCDUd530QxXR32CsRtmeUrjik0pH5JdrO6u79rIV2gvm5houB8dbDTQgrLFwdeNgAhwdOFlRwDyKolon9InJSom5G8Lu89FW34OR_ngJCb_C9NB4N-b_HLzgwAucG7cApAVSLjWCCgV1_3xYBHJnBI0Q0mzc_m86HUXU0X8AYhNTDNpgYrw8NyaIz9QaaCVVUganQhq1ZXl2HFr-scgFc-ts-7jvtU6_3tbMdKK848hClWakDXLJ259dFbUXTKVi0CIrBXY8Q4JYisyZ2vBY8mL0NnWQnWUYMb5Y--0FJ7itVM2s01vVokO0jltI5dgmkjiA.dxGAmMbjRV8UcgJU.U5bRXl14HSISjkjHDgUyuSnwzxEOwXpXYtZKaz0zquMTQ8GSbsMCGJ5DE1gbBQ3IHU1oW5FgGooikzTXpwJgoGcUbCFCuwtGRXXS4Qqxns-15PTgkmuXfsUKDXu6qvrnw4r3fCm9YdvDqkhymFMGsCzOD-LBlbKgKi96ZPnWVy4q3DvsX_EbFpn6rXoTaZl4nozY0jHIjomRZ20cJToMpazepc-c2pbwDk-l-vyNt7kundkUAojEm3Drjak3WagAy7UtukkNnAp-afG5yGvBVDKU2Rstf_b-6c0RJA-HnlfGV9tRF3lT1SR1OnMjFq2a2Qohioz4BdrX9RXGVPUv2DhfBdZzbKOTepX582dBQAEi0OlxakjbaabxHg7IQigANJfiLUboLd0eOucKjB_YKkHTgV04MJ585pXTLLBfDVPT1yMMjGJ7Qg_Mzdj4EOj1MySeNXwtl7Fq6t5uOjD8q-swoxyXH7YPXucq6YUFMc7ilWTmvOKed6jlTtTL6phbvkUNslEry0PEY_OXVvNhYk_DoC1aYJRYy1y1jZ8A8NIscAlK4awJH-8UTICuCq3cNq1EAwGkIgKJTDp1kSX3oIAIcsn6PJcAIyLoXCuJ92w_csRMk1y4sxxO5uiwgnxbuPuViSUY4nHMPfKUT1Abzm3Fv8MZ4gFmaaCb00cmHD30DRT3O1TxD7AvFB2iiBpNG-JVcdJl90u-igWDl1osBq9QjQD87OFo8fJqvLVQFIysFpiN22A2lKl4TToedPcG0lt-eZpD8LiZ9xKPnp4NGRqg4IboOKA8x3lflzuN7QTWvvLN7-IsfIQ2OAnrBsKWkK-_VLB8G1M__sWWhIX2kBroiY0Iorhbe_fM_4RLgC0C.lpqu645EreUM4_9JByj7ow%26redirect_uri%3Dhttps%3A%2F%2Freport.mimecastcybergraph.com%2Fcallback>
CGBANNERINDICATOR
Hi Malcolm,
great to hear from you! Can you tell me how you created this
cellbrowser.conf file?
I added this error message now, I hope this explains why the name setting
is required:
+ if not "name" in inConf:
+ errAbort("Not running in data hierarchy mode. "
+ "The config file %s needs at least the setting 'name' to a
short string, e.g. 'cortex-dev'. "
+ "If you set a dataRoot directory in your ~/.cellbrowser
file or via the CBDATAROOT variable, then the input datasets "
+ "are assumed to be under one single directory and their
subdirectory name is the datasetname. "
+ "Otherwise, as now, they can be spread out over the entire
filesystem but then the directory name cannot be used to "
+ "derive the cell browser dataset name. Instead, a 'name'
setting must be present in every cellbrowser.conf file." % inConfName)
see:
https://cellbrowser.readthedocs.io/en/develop/collections.html<https://cellbrowser.readthedocs.io/en/develop/collections.html>
Let us know if you have any other error messages or suggestions! Especially
UI suggestions... This UI is not an easy one...
On Tue, Sep 24, 2024 at 12:29 AM Malcolm Cook ***@***.***<mailto:***@***.***>> wrote:
cbImportSeurat is failing with
Prepared cellbrowser directory anchored_Nmast_sub_anchored_seurat3_v1.0
Warning messages:
1: In asMethod(object) :
sparse->dense coercion: allocating vector of size 2.2 GiB
2: In asMethod(object) :
sparse->dense coercion: allocating vector of size 2.2 GiB
3: In ExportToCellbrowser(sobj, "anchored_Nmast_sub_anchored_seurat3_v1.0", :
Embedding pca has more than 2 coordinates, taking only the first 2
real 21m23.629s
user 21m5.568s
sys 0m19.625s
INFO:root:Wrote logfile of R run to anchored_Nmast_sub_anchored_seurat3_v1.0/analysisLog.txt
INFO:root:identical and same size, not copying /n/projects/nt2473/Analysis/Data/sb2191-regen/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS to anchored_Nmast_sub_anchored_seurat3_v1.0/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS
INFO:root:Not writing anchored_Nmast_sub_anchored_seurat3_v1.0/desc.conf, already exists
WARNING:root:The directory ./sb2191-regen does not exist. Making a new directory now.
INFO:root:dataRoot is not set in ~/.cellbrowser or via $CBDATAROOT. Dataset hierarchies are not supported.
Traceback (most recent call last):
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/bin/cbImportSeurat", line 10, in <module>
sys.exit(cbImportSeuratCli())
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/seurat.py", line 567, in cbImportSeuratCli
build(outDir, options.htmlDir, port=options.port)
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py", line 5575, in build
dataRoot, relPath, inConf, dsName = fixupName(inConfFname, inConf)
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py", line 5490, in fixupName
relPath = inConf["name"]
KeyError: 'name'
using a fresh install of cellBrowser
what more diagnostics can I provide
FWIW installing the sample from
https://cells.ucsc.edu/downloads/samples/mini.tgz<https://cells.ucsc.edu/downloads/samples/mini.tgz> works perfectly
—
Reply to this email directly, view it on GitHub
<#268<https://github.com/maximilianh/cellBrowser/issues/268>>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACL4TNQYGTYXPN62IPEVL3ZYCI5PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DGOBRHE2DAMQ<https://github.com/notifications/unsubscribe-auth/AACL4TNQYGTYXPN62IPEVL3ZYCI5PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DGOBRHE2DAMQ>>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***<mailto:***@***.***>>
—
Reply to this email directly, view it on GitHub<#268 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADWHOTS535TLJQ4H3AVAETZYFPPPAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRGIYTONBUGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
The -o option specifies the htdocs directory with your html files. Where in
the docs should I explain this better ? Someone else here has the same
problem. I probably should make this clearer somehow …
CBDATAROOT is where the input files are stored it has little to do with
the final html output files. The files get converted from
CBDATAROOT/datasetName to htmlDirectory/datasetName.
…On Tue, Sep 24, 2024 at 23:23 Malcolm Cook ***@***.***> wrote:
Hi Maximilian,
I am trying to resurrect old cb site and think I’d better just start over.
That said, I’m having a little trouble understanding dataset hierarchy.
To demonstrate my confusion, here I try to install sample data twice:
conda activate ucsc-cell-browser
module load R/4.4.0
export CBDATAROOT=~/public_html/cellbrowser
mkdir -p ${CBDATAROOT}
cd ${CBDATAROOT}
printf 'title = "my title"
description="my description"
' > desc.conf
printf 'shortLabel="some description"
' > cellbrowser.conf
pushd /tmp
curl -O -ks https://cells.ucsc.edu/downloads/samples/mini.tgz
tar -zxv -f mini.tgz
cd mini
cbBuild -o ${CBDATAROOT}/mini1
cbBuild -o ${CBDATAROOT}/mini2
I know this is wrong but this is how I read your instructions.
I can browse to http://myserver/~me/cellbrowser/mini1 and
http://myserver/~me/cellbrowser/mini2 but they are independent sites and
browsing to http://myserver/~me/cellbrowser<
http://myserver/~me/cellbrowser/mini1> just displays directory (as I
would expect).
What am I missing? Clearly something fundamental!
Thanks!
~ ***@***.***
From: Maximilian Haeussler ***@***.***>
Sent: Tuesday, September 24, 2024 8:05 AM
To: maximilianh/cellBrowser ***@***.***>
Cc: Cook, Malcolm ***@***.***>; Author ***@***.***>
Subject: Re: [maximilianh/cellBrowser] KeyError: 'name' during
cbImportSeurat (Issue #268)
Hi Malcolm, great to hear from you! Can you tell me how you created this
cellbrowser.conf file? I added this error message now, I hope this explains
why the name setting is required: + if not "name" in inConf: +
errAbort("Not running in data hierarchy mode. "
<
https://report.mimecastcybergraph.com/?magiclink=https%3A%2F%2Fapi.services.mimecast.com%2Foauth2%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3Do20nRkVXf7VUVnANkXhoOwGytEwGN0YAlyeDJn7oBTGNl2kN%26state%3DeyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIn0.HSlDijU08qZ_Iww6xkxCDUd530QxXR32CsRtmeUrjik0pH5JdrO6u79rIV2gvm5houB8dbDTQgrLFwdeNgAhwdOFlRwDyKolon9InJSom5G8Lu89FW34OR_ngJCb_C9NB4N-b_HLzgwAucG7cApAVSLjWCCgV1_3xYBHJnBI0Q0mzc_m86HUXU0X8AYhNTDNpgYrw8NyaIz9QaaCVVUganQhq1ZXl2HFr-scgFc-ts-7jvtU6_3tbMdKK848hClWakDXLJ259dFbUXTKVi0CIrBXY8Q4JYisyZ2vBY8mL0NnWQnWUYMb5Y--0FJ7itVM2s01vVokO0jltI5dgmkjiA.dxGAmMbjRV8UcgJU.U5bRXl14HSISjkjHDgUyuSnwzxEOwXpXYtZKaz0zquMTQ8GSbsMCGJ5DE1gbBQ3IHU1oW5FgGooikzTXpwJgoGcUbCFCuwtGRXXS4Qqxns-15PTgkmuXfsUKDXu6qvrnw4r3fCm9YdvDqkhymFMGsCzOD-LBlbKgKi96ZPnWVy4q3DvsX_EbFpn6rXoTaZl4nozY0jHIjomRZ20cJToMpazepc-c2pbwDk-l-vyNt7kundkUAojEm3Drjak3WagAy7UtukkNnAp-afG5yGvBVDKU2Rstf_b-6c0RJA-HnlfGV9tRF3lT1SR1OnMjFq2a2Qohioz4BdrX9RXGVPUv2DhfBdZzbKOTepX582dBQAEi0OlxakjbaabxHg7IQigANJfiLUboLd0eOucKjB_YKkHTgV04MJ585pXTLLBfDVPT1yMMjGJ7Qg_Mzdj4EOj1MySeNXwtl7Fq6t5uOjD8q-swoxyXH7YPXucq6YUFMc7ilWTmvOKed6jlTtTL6phbvkUNslEry0PEY_OXVvNhYk_DoC1aYJRYy1y1jZ8A8NIscAlK4awJH-8UTICuCq3cNq1EAwGkIgKJTDp1kSX3oIAIcsn6PJcAIyLoXCuJ92w_csRMk1y4sxxO5uiwgnxbuPuViSUY4nHMPfKUT1Abzm3Fv8MZ4gFmaaCb00cmHD30DRT3O1TxD7AvFB2iiBpNG-JVcdJl90u-igWDl1osBq9QjQD87OFo8fJqvLVQFIysFpiN22A2lKl4TToedPcG0lt-eZpD8LiZ9xKPnp4NGRqg4IboOKA8x3lflzuN7QTWvvLN7-IsfIQ2OAnrBsKWkK-_VLB8G1M__sWWhIX2kBroiY0Iorhbe_fM_4RLgC0C.lpqu645EreUM4_9JByj7ow%26redirect_uri%3Dhttps%3A%2F%2Freport.mimecastcybergraph.com%2Fcallback>
CGBANNERINDICATOR
Hi Malcolm,
great to hear from you! Can you tell me how you created this
cellbrowser.conf file?
I added this error message now, I hope this explains why the name setting
is required:
+ if not "name" in inConf:
+ errAbort("Not running in data hierarchy mode. "
+ "The config file %s needs at least the setting 'name' to a
short string, e.g. 'cortex-dev'. "
+ "If you set a dataRoot directory in your ~/.cellbrowser
file or via the CBDATAROOT variable, then the input datasets "
+ "are assumed to be under one single directory and their
subdirectory name is the datasetname. "
+ "Otherwise, as now, they can be spread out over the entire
filesystem but then the directory name cannot be used to "
+ "derive the cell browser dataset name. Instead, a 'name'
setting must be present in every cellbrowser.conf file." % inConfName)
see:
https://cellbrowser.readthedocs.io/en/develop/collections.html<
https://cellbrowser.readthedocs.io/en/develop/collections.html>
Let us know if you have any other error messages or suggestions!
Especially
UI suggestions... This UI is not an easy one...
On Tue, Sep 24, 2024 at 12:29 AM Malcolm Cook ***@***.***<mailto:***@***.***>>
wrote:
> cbImportSeurat is failing with
>
> Prepared cellbrowser directory anchored_Nmast_sub_anchored_seurat3_v1.0
> Warning messages:
> 1: In asMethod(object) :
> sparse->dense coercion: allocating vector of size 2.2 GiB
> 2: In asMethod(object) :
> sparse->dense coercion: allocating vector of size 2.2 GiB
> 3: In ExportToCellbrowser(sobj,
"anchored_Nmast_sub_anchored_seurat3_v1.0", :
> Embedding pca has more than 2 coordinates, taking only the first 2
>
> real 21m23.629s
> user 21m5.568s
> sys 0m19.625s
> INFO:root:Wrote logfile of R run to
anchored_Nmast_sub_anchored_seurat3_v1.0/analysisLog.txt
> INFO:root:identical and same size, not copying
/n/projects/nt2473/Analysis/Data/sb2191-regen/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS
to
anchored_Nmast_sub_anchored_seurat3_v1.0/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS
> INFO:root:Not writing
anchored_Nmast_sub_anchored_seurat3_v1.0/desc.conf, already exists
> WARNING:root:The directory ./sb2191-regen does not exist. Making a new
directory now.
> INFO:root:dataRoot is not set in ~/.cellbrowser or via $CBDATAROOT.
Dataset hierarchies are not supported.
> Traceback (most recent call last):
> File
"/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/bin/cbImportSeurat",
line 10, in <module>
> sys.exit(cbImportSeuratCli())
> File
"/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/seurat.py",
line 567, in cbImportSeuratCli
> build(outDir, options.htmlDir, port=options.port)
> File
"/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py",
line 5575, in build
> dataRoot, relPath, inConf, dsName = fixupName(inConfFname, inConf)
> File
"/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py",
line 5490, in fixupName
> relPath = inConf["name"]
> KeyError: 'name'
>
> using a fresh install of cellBrowser
>
> what more diagnostics can I provide
>
> FWIW installing the sample from
> https://cells.ucsc.edu/downloads/samples/mini.tgz<
https://cells.ucsc.edu/downloads/samples/mini.tgz> works perfectly
>
> —
> Reply to this email directly, view it on GitHub
> <#268<
#268>>, or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AACL4TNQYGTYXPN62IPEVL3ZYCI5PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DGOBRHE2DAMQ
<
https://github.com/notifications/unsubscribe-auth/AACL4TNQYGTYXPN62IPEVL3ZYCI5PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DGOBRHE2DAMQ>>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***<mailto:***@***.***>>
>
—
Reply to this email directly, view it on GitHub<
#268 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AADWHOTS535TLJQ4H3AVAETZYFPPPAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRGIYTONBUGQ>.
You are receiving this because you authored the thread.Message ID:
***@***.******@***.***>>
—
Reply to this email directly, view it on GitHub
<#268 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACL4TIAZUXJDNFKXYVBXVLZYHJ3PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZSGQYTANJZGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi again!
I’m still not understanding.
One source of my confusion is the following:
First, you write
Add a statement like the following to your ~/.cellbrowser.conf: …
dataRoot='/celldata/'
Then later you write
Then, create a “stub” cellbrowser.conf into this directory, it should only contain a single line like shortLabel="some description".
This confuses me. How many cellbrowers.conf files are we talking about here? Only one?
Another source of confusion for me is that `cbBuild` takes its default value for`-o` from `CBOUT` whereas `cbImportSeurat` does not take a default for `-o`.
Q: Do I understand correctly that, the -o option to cbBuild is an htmlDir whereas the -o option to ` cbImportSeurat` is a data directory?
If so, then do you agree that if I am calling `cbImportSeurat -i /path/to/my_wellnamed_experiment.rds` then a reasonable value of -o is might be “${CBDATAROOT}/my_wellnamed_experiment”?
Perhaps your documentation could benefit from an example wherein you go from absolutely nothing to having a cellbrowser configured with multiple datasets arranged in a hierarchy. The example might:
* Use environment variables (CBDATAROOT, CBOUT) throughout
* illustrate deploying https://cells.ucsc.edu/downloads/samples/mini.tgz<https://cells.ucsc.edu/downloads/samples/mini.tgz>
* illustrate command-line deploying in a different manner (e.g. using cbImportSeurat)
I took another pass at doing this and maybe got further but still have an error executing the last line (the second cbBuild) when running
export CB=~/public_html/cellbrowser
export CBOUT=${CB}/www
export CBDATAROOT=${CB}/data
mkdir -p ${CBOUT} ${CBDATAROOT}
cd ${CBDATAROOT}
printf 'shortLabel="some description"' > cellbrowser.conf
cd ${CBDATAROOT}
curl -O -ks https://cells.ucsc.edu/downloads/samples/mini.tgz
tar -zxv -f mini.tgz
cd mini
cbBuild
i='/n/projects/nt2473/Analysis/Data/sb2191-regen/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS'
b=$(basename ${i} _.RDS)
cbImportSeurat -i ${i} -o ${CBDATAROOT}/${b}
cd ${CBDATAROOT}/${b}
cbBuild
The error is:
INFO:root:input directory cellbrowser.conf is not located under dataRoot /home/mec/public_html/cellbrowser/data. Deactivating hierarchies.
(<class 'KeyError'>, KeyError('name'), <traceback object at 0x7fb81a2105c0>)
<class 'type'>
<class 'KeyError'>
ERROR:root:Unexpected error: (<class 'KeyError'>, KeyError('name'), <traceback object at 0x7fb81a2105c0>)
Traceback (most recent call last):
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py", line 5775, in cbBuildCli
build(confFnames, outDir, port, redo=options.redo)
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py", line 5575, in build
dataRoot, relPath, inConf, dsName = fixupName(inConfFname, inConf)
File "/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py", line 5490, in fixupName
relPath = inConf["name"]
KeyError: 'name'
Which confuses me since is appears to me that the conf file is within the dataRoot directory
(ucsc-cell-browser) ***@***.***:$ pwd
/home/mec/public_html/cellbrowser/data/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0
(ucsc-cell-browser) ***@***.***:$ ls -lah
total 3.4G
drwxrwx---. 2 mec domain users 437 Sep 25 10:19 .
drwxrwxr-x. 4 mec domain users 148 Sep 25 10:19 ..
-rw-r-----. 1 mec domain users 3.2G Sep 25 09:47 SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS
-rw-r-----. 1 mec domain users 5.8K Sep 25 09:46 analysisLog.txt
-rw-r-----. 1 mec domain users 0 Sep 25 09:46 cellbrowser.conf
-rw-r-----. 1 mec domain users 17M Sep 25 09:35 counts_exprMatrix.tsv.gz
-rw-r-----. 1 mec domain users 112M Sep 25 09:40 data_exprMatrix.tsv.gz
-rw-r-----. 1 mec domain users 2.7K Sep 25 09:47 desc.conf
-rw-r-----. 1 mec domain users 68K Sep 25 09:46 markers.tsv
-rw-r-----. 1 mec domain users 1.8M Sep 25 09:46 meta.tsv
-rw-r-----. 1 mec domain users 997K Sep 25 09:46 pca.coords.tsv
-rw-r-----. 1 mec domain users 22K Sep 25 09:30 runSeurat.R
-rw-r-----. 1 mec domain users 142M Sep 25 09:46 scale_exprMatrix.tsv.gz
-rw-r-----. 1 mec domain users 1010K Sep 25 09:46 umap.coords.tsv
Sorry to ask you to wade through all this. Is there a better set of diagnostics I should provide?
Finally,
Q: you write “Make sure that you have the same major version of Seurat installed that was used to create the object. You cannot open Seurat2 objects with Seurat3 or vice versa.” But my log seems to say this is OK:
SeuratVersion installed = 5.1.00
ObjectVersion Seurat object was created with Seurat version = 3.1.0
The installed major version of Seurat is different from Seurat input object. Running the UpdateSeuratObject() function now
Is this no longer a concern so long as after doing this
Object representation is consistent with the most current Seurat version
Cheers,
~ ***@***.***
From: Maximilian Haeussler ***@***.***>
Sent: Tuesday, September 24, 2024 4:42 PM
To: maximilianh/cellBrowser ***@***.***>
Cc: Cook, Malcolm ***@***.***>; Author ***@***.***>
Subject: Re: [maximilianh/cellBrowser] KeyError: 'name' during cbImportSeurat (Issue #268)
The -o option specifies the htdocs directory with your html files. Where in the docs should I explain this better ? Someone else here has the same problem. I probably should make this clearer somehow … CBDATAROOT is where the input files are stored it has little to do with the fi
<https://report.mimecastcybergraph.com/?magiclink=https%3A%2F%2Fapi.services.mimecast.com%2Foauth2%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3Do20nRkVXf7VUVnANkXhoOwGytEwGN0YAlyeDJn7oBTGNl2kN%26state%3DeyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIn0.O0id2UNS0LQW4hmul-YefUk3ElFbeYMDjyfRq9zQWrPLt9h51YCtrU2tzb0iTmrNB7C4cBTmb-dtCGmU2fTbNntrj0KwcJvJ03JrVOoC4P_21wyPBqfnLowMjP0xSsnW9A_jjFMu5luFww6SihV8_HcxVvdqztW0ACEjU_ibtiTv2hv1aFizKTR__qnX26P6Tf785YNdWqaMkxOMRRJoohpSU8-UQ10HmWiTOoTC8be-ULGPoE8R4iqudjUoKI7ErQYwVm3OhuZr3314IaHTqTm-jSOIp2P6OCgZc3Wb7EzH9p86A65G_y9HKF3_1DXIJpg8ds7JWX2_cvKW8TjWgA.FNsRVmjEXAPc0-xp.jSXUppNmjiKJndroQW0n6KN9OPz3AM8H6r1z0oQa30kzRdrKfLIhfV6-eIdH_khcKEFoZk3Xp9XQJzBxzSaaJYvGBbV-PARwNyirOevuRbE5e0oKZeuJgrty4GloBTc4wtZR4koXixSNwDJkBhhO-urhsCU6gpguSsdg9Qnf6jN4G8WVqdReUV8clYdINxDSjEC3Cf1HQNKt_84bTBfoycURKoQOuVCSBb79dX8HQfrsRtxH-xjat_MdI1AiAxabAiLSYfA9sCK1Mndrp19dsfmd9_CL6U4qjKsuBT4wNZ04-JvUI0Ki535W0VaN2g0WDV_ipDCEHmJVJX6vY2SfksygCKkDh1n2E0PrivdJhCIFLE7CMC7vYJ_esZ57yBUWfOUO_kbNmMKvp2NHvl2hI6-ZZk9STjTbVlECDKfRbLAz2eCZPcKK1PkI-C7MhhlavWdN0sft54YJoE7Mutd1SX_6AdED9BmmETewr9bLr54-bTVpuVErWMQVQeRZ9T2YLeO63bOeoxcfUyNm7JWNhz1mq-t23W-NePelaXUrvRExcbjwjkNRpylyxZMFAW3R0Je5HQOSRHKkv07QYETa10LxwC4MlqW5Iaep6z2Nhbb4VuGV2wCpdzv0YBMpyYnQ552KkCq3392B6Awb_hcIjbGKa_Q7wxKOiX1bb8oVZAyghvYA4bunx00yB4FzwzhexTYXNmh7DBONtes1BumkE1IknVSwnTiP7Txv9sd6p7K8Wm2YV7N1rFIzdlGRMu-khkVc-MObB2QU-0YVd1KwRJynCx9W-D-iFyw9ZoWFb1bdjNVTC35F3JkMJoYlyvIrsTBTHiYgWa5n_WkGjwu3ER_z1waXRurnto-1kMgyK9qs.VOszBFV3Dk5Lx4q3y0nV_g%26redirect_uri%3Dhttps%3A%2F%2Freport.mimecastcybergraph.com%2Fcallback>
CGBANNERINDICATOR
The -o option specifies the htdocs directory with your html files. Where in
the docs should I explain this better ? Someone else here has the same
problem. I probably should make this clearer somehow …
CBDATAROOT is where the input files are stored it has little to do with
the final html output files. The files get converted from
CBDATAROOT/datasetName to htmlDirectory/datasetName.
On Tue, Sep 24, 2024 at 23:23 Malcolm Cook ***@***.***<mailto:***@***.***>> wrote:
Hi Maximilian,
I am trying to resurrect old cb site and think I’d better just start over.
That said, I’m having a little trouble understanding dataset hierarchy.
To demonstrate my confusion, here I try to install sample data twice:
conda activate ucsc-cell-browser
module load R/4.4.0
export CBDATAROOT=~/public_html/cellbrowser
mkdir -p ${CBDATAROOT}
cd ${CBDATAROOT}
printf 'title = "my title"
description="my description"
' > desc.conf
printf 'shortLabel="some description"
' > cellbrowser.conf
pushd /tmp
curl -O -ks https://cells.ucsc.edu/downloads/samples/mini.tgz<https://cells.ucsc.edu/downloads/samples/mini.tgz>
tar -zxv -f mini.tgz
cd mini
cbBuild -o ${CBDATAROOT}/mini1
cbBuild -o ${CBDATAROOT}/mini2
I know this is wrong but this is how I read your instructions.
I can browse to http://myserver/~me/cellbrowser/mini1 and
http://myserver/~me/cellbrowser/mini2 but they are independent sites and
browsing to http://myserver/~me/cellbrowser<<http://myserver/~me/cellbrowser%3c>
http://myserver/~me/cellbrowser/mini1> just displays directory (as I
would expect).
What am I missing? Clearly something fundamental!
Thanks!
~ ***@***.***<mailto:***@***.***>
From: Maximilian Haeussler ***@***.***<mailto:***@***.***>>
Sent: Tuesday, September 24, 2024 8:05 AM
To: maximilianh/cellBrowser ***@***.***<mailto:***@***.***>>
Cc: Cook, Malcolm ***@***.***<mailto:***@***.***>>; Author ***@***.***<mailto:***@***.***>>
Subject: Re: [maximilianh/cellBrowser] KeyError: 'name' during
cbImportSeurat (Issue #268)
Hi Malcolm, great to hear from you! Can you tell me how you created this
cellbrowser.conf file? I added this error message now, I hope this explains
why the name setting is required: + if not "name" in inConf: +
errAbort("Not running in data hierarchy mode. "
<
https://report.mimecastcybergraph.com/?magiclink=https%3A%2F%2Fapi.services.mimecast.com%2Foauth2%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3Do20nRkVXf7VUVnANkXhoOwGytEwGN0YAlyeDJn7oBTGNl2kN%26state%3DeyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIn0.HSlDijU08qZ_Iww6xkxCDUd530QxXR32CsRtmeUrjik0pH5JdrO6u79rIV2gvm5houB8dbDTQgrLFwdeNgAhwdOFlRwDyKolon9InJSom5G8Lu89FW34OR_ngJCb_C9NB4N-b_HLzgwAucG7cApAVSLjWCCgV1_3xYBHJnBI0Q0mzc_m86HUXU0X8AYhNTDNpgYrw8NyaIz9QaaCVVUganQhq1ZXl2HFr-scgFc-ts-7jvtU6_3tbMdKK848hClWakDXLJ259dFbUXTKVi0CIrBXY8Q4JYisyZ2vBY8mL0NnWQnWUYMb5Y--0FJ7itVM2s01vVokO0jltI5dgmkjiA.dxGAmMbjRV8UcgJU.U5bRXl14HSISjkjHDgUyuSnwzxEOwXpXYtZKaz0zquMTQ8GSbsMCGJ5DE1gbBQ3IHU1oW5FgGooikzTXpwJgoGcUbCFCuwtGRXXS4Qqxns-15PTgkmuXfsUKDXu6qvrnw4r3fCm9YdvDqkhymFMGsCzOD-LBlbKgKi96ZPnWVy4q3DvsX_EbFpn6rXoTaZl4nozY0jHIjomRZ20cJToMpazepc-c2pbwDk-l-vyNt7kundkUAojEm3Drjak3WagAy7UtukkNnAp-afG5yGvBVDKU2Rstf_b-6c0RJA-HnlfGV9tRF3lT1SR1OnMjFq2a2Qohioz4BdrX9RXGVPUv2DhfBdZzbKOTepX582dBQAEi0OlxakjbaabxHg7IQigANJfiLUboLd0eOucKjB_YKkHTgV04MJ585pXTLLBfDVPT1yMMjGJ7Qg_Mzdj4EOj1MySeNXwtl7Fq6t5uOjD8q-swoxyXH7YPXucq6YUFMc7ilWTmvOKed6jlTtTL6phbvkUNslEry0PEY_OXVvNhYk_DoC1aYJRYy1y1jZ8A8NIscAlK4awJH-8UTICuCq3cNq1EAwGkIgKJTDp1kSX3oIAIcsn6PJcAIyLoXCuJ92w_csRMk1y4sxxO5uiwgnxbuPuViSUY4nHMPfKUT1Abzm3Fv8MZ4gFmaaCb00cmHD30DRT3O1TxD7AvFB2iiBpNG-JVcdJl90u-igWDl1osBq9QjQD87OFo8fJqvLVQFIysFpiN22A2lKl4TToedPcG0lt-eZpD8LiZ9xKPnp4NGRqg4IboOKA8x3lflzuN7QTWvvLN7-IsfIQ2OAnrBsKWkK-_VLB8G1M__sWWhIX2kBroiY0Iorhbe_fM_4RLgC0C.lpqu645EreUM4_9JByj7ow%26redirect_uri%3Dhttps%3A%2F%2Freport.mimecastcybergraph.com%2Fcallback>
CGBANNERINDICATOR
Hi Malcolm,
great to hear from you! Can you tell me how you created this
cellbrowser.conf file?
I added this error message now, I hope this explains why the name setting
is required:
+ if not "name" in inConf:
+ errAbort("Not running in data hierarchy mode. "
+ "The config file %s needs at least the setting 'name' to a
short string, e.g. 'cortex-dev'. "
+ "If you set a dataRoot directory in your ~/.cellbrowser
file or via the CBDATAROOT variable, then the input datasets "
+ "are assumed to be under one single directory and their
subdirectory name is the datasetname. "
+ "Otherwise, as now, they can be spread out over the entire
filesystem but then the directory name cannot be used to "
+ "derive the cell browser dataset name. Instead, a 'name'
setting must be present in every cellbrowser.conf file." % inConfName)
see:
https://cellbrowser.readthedocs.io/en/develop/collections.html<https://cellbrowser.readthedocs.io/en/develop/collections.html><
https://cellbrowser.readthedocs.io/en/develop/collections.html<https://cellbrowser.readthedocs.io/en/develop/collections.html>>
Let us know if you have any other error messages or suggestions!
Especially
UI suggestions... This UI is not an easy one...
On Tue, Sep 24, 2024 at 12:29 AM Malcolm Cook ***@***.***<mailto:***@***.***<mailto:***@***.***%3cmailto:***@***.***>>>
wrote:
> cbImportSeurat is failing with
>
> Prepared cellbrowser directory anchored_Nmast_sub_anchored_seurat3_v1.0
> Warning messages:
> 1: In asMethod(object) :
> sparse->dense coercion: allocating vector of size 2.2 GiB
> 2: In asMethod(object) :
> sparse->dense coercion: allocating vector of size 2.2 GiB
> 3: In ExportToCellbrowser(sobj,
"anchored_Nmast_sub_anchored_seurat3_v1.0", :
> Embedding pca has more than 2 coordinates, taking only the first 2
>
> real 21m23.629s
> user 21m5.568s
> sys 0m19.625s
> INFO:root:Wrote logfile of R run to
anchored_Nmast_sub_anchored_seurat3_v1.0/analysisLog.txt
> INFO:root:identical and same size, not copying
/n/projects/nt2473/Analysis/Data/sb2191-regen/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS
to
anchored_Nmast_sub_anchored_seurat3_v1.0/SeurObj_anchored_Nmast_sub_anchored_seurat3_v1.0_.RDS
> INFO:root:Not writing
anchored_Nmast_sub_anchored_seurat3_v1.0/desc.conf, already exists
> WARNING:root:The directory ./sb2191-regen does not exist. Making a new
directory now.
> INFO:root:dataRoot is not set in ~/.cellbrowser or via $CBDATAROOT.
Dataset hierarchies are not supported.
> Traceback (most recent call last):
> File
"/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/bin/cbImportSeurat",
line 10, in <module>
> sys.exit(cbImportSeuratCli())
> File
"/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/seurat.py",
line 567, in cbImportSeuratCli
> build(outDir, options.htmlDir, port=options.port)
> File
"/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py",
line 5575, in build
> dataRoot, relPath, inConf, dsName = fixupName(inConfFname, inConf)
> File
"/n/projects/mec/SRSCHPC2/local/inst/Mambaforge/24.3.0-0/envs/ucsc-cell-browser/lib/python3.9/site-packages/cellbrowser/cellbrowser.py",
line 5490, in fixupName
> relPath = inConf["name"]
> KeyError: 'name'
>
> using a fresh install of cellBrowser
>
> what more diagnostics can I provide
>
> FWIW installing the sample from
> https://cells.ucsc.edu/downloads/samples/mini.tgz<https://cells.ucsc.edu/downloads/samples/mini.tgz><
https://cells.ucsc.edu/downloads/samples/mini.tgz<https://cells.ucsc.edu/downloads/samples/mini.tgz>> works perfectly
>
> —
> Reply to this email directly, view it on GitHub
> <#268<https://github.com/maximilianh/cellBrowser/issues/268><
#268<https://github.com/maximilianh/cellBrowser/issues/268>>>, or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AACL4TNQYGTYXPN62IPEVL3ZYCI5PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DGOBRHE2DAMQ<https://github.com/notifications/unsubscribe-auth/AACL4TNQYGTYXPN62IPEVL3ZYCI5PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DGOBRHE2DAMQ>
<
https://github.com/notifications/unsubscribe-auth/AACL4TNQYGTYXPN62IPEVL3ZYCI5PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DGOBRHE2DAMQ<https://github.com/notifications/unsubscribe-auth/AACL4TNQYGTYXPN62IPEVL3ZYCI5PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DGOBRHE2DAMQ>>>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***<mailto:***@***.***<mailto:***@***.***%3cmailto:***@***.***>>>
>
—
Reply to this email directly, view it on GitHub<
#268 (comment)<https://github.com/maximilianh/cellBrowser/issues/268#issuecomment-2371217444>>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AADWHOTS535TLJQ4H3AVAETZYFPPPAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRGIYTONBUGQ<https://github.com/notifications/unsubscribe-auth/AADWHOTS535TLJQ4H3AVAETZYFPPPAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRGIYTONBUGQ>>.
You are receiving this because you authored the thread.Message ID:
***@***.******@***.***<mailto:***@***.******@***.***>>>
—
Reply to this email directly, view it on GitHub
<#268 (comment)<https://github.com/maximilianh/cellBrowser/issues/268#issuecomment-2372410591>>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACL4TIAZUXJDNFKXYVBXVLZYHJ3PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZSGQYTANJZGE<https://github.com/notifications/unsubscribe-auth/AACL4TIAZUXJDNFKXYVBXVLZYHJ3PAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZSGQYTANJZGE>>
.
You are receiving this because you commented.Message ID:
***@***.***<mailto:***@***.***>>
—
Reply to this email directly, view it on GitHub<#268 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADWHOVGXIWMPKR6M6FB5STZYHMBXAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZSGQZTSNRVGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
maximilianh
added a commit
to ucscGenomeBrowser/cellBrowser
that referenced
this issue
Sep 26, 2024
First, you write
Add a statement like the following to your ~/.cellbrowser.conf: …
dataRoot='/celldata/'
This defines the root directory under which all future cell browser data
files will be located. Does this help?
Then later you write
Then, create a “stub” cellbrowser.conf into this directory, it should only
contain a single line like shortLabel="some description".
This is only a stub to make sure that the root directory has a label.
This confuses me. How many cellbrowers.conf files are we talking about
here? Only one?
So far, no single dataset has been defined. Only the root directory has
been set. Does this help? (I'm asking so I can improve the documentation)
Another source of confusion for me is that `cbBuild` takes its default
value for`-o` from `CBOUT` whereas `cbImportSeurat` does not take a default
for `-o`.
cbBuild outputs html files. cbImportSeurat outputs .tsv files and a matrix
file and config files for cbBuild. The output of cbImportSeurat is the
input for cbBuild.
Q: Do I understand correctly that, the -o option to cbBuild is an htmlDir
whereas the -o option to ` cbImportSeurat` is a data directory?
YES! I don't think I can still change the letters of these options, but I
can change the usage messages and the documentation html pages.
If so, then do you agree that if I am calling `cbImportSeurat -i
/path/to/my_wellnamed_experiment.rds` then a reasonable value of -o is
might be “${CBDATAROOT}/my_wellnamed_experiment”?
YES!
Perhaps your documentation could benefit from an example wherein you go
from absolutely nothing to having a cellbrowser configured with multiple
datasets arranged in a hierarchy. The example might:
* Use environment variables (CBDATAROOT, CBOUT) throughout
* illustrate deploying https://cells.ucsc.edu/downloads/samples/mini.tgz<
https://cells.ucsc.edu/downloads/samples/mini.tgz>
* illustrate command-line deploying in a different manner (e.g. using
cbImportSeurat)
Thanks!
INFO:root:input directory cellbrowser.conf is not located under dataRoot
/home/mec/public_html/cellbrowser/data. Deactivating hierarchies.
I see... I wonder if public_html is a symlink or some sort of linkin is
going on there in the file system. To find out if cellbrowser.conf is
located under the dataRoot, it's trying if abspath(indir) starts with
dataRoot, like this, in cellbrowser.py:findRoot()
if inDir is not None and not abspath(inDir).startswith(dataRoot):
logging.info("input directory %s is not located under dataRoot %s.
Deactivating hierarchies." % (inDir, dataRoot))
return None
Not sure how this can fail here.
I've improved this error message, it should now output the full input
directory, rather than just the filename of cellbrowser.conf, can you do a
git pull and retry the same command? Thanks! The new error message will
output both directories, not just one.
Which confuses me since is appears to me that the conf file is within the
dataRoot directory
Yes. It is confusing me, too.
Sorry to ask you to wade through all this. Is there a better set of
diagnostics I should provide?
This is awesome.
Is this no longer a concern so long as after doing this
This is solved! Seurat can import anything now. Updated the docs.
…
Message ID: ***@***.***>
|
public_html was a symlink! I made it hoping it would make my example easier to follow. Alas, it exposed a different issue. Hah! Playing whack-a-mole with myself.
I will try again next Monday.
Taking a holiday tomorrow. Have a great weekend.
~ ***@***.***
From: Maximilian Haeussler ***@***.***>
Sent: Thursday, September 26, 2024 9:03 AM
To: maximilianh/cellBrowser ***@***.***>
Cc: Cook, Malcolm ***@***.***>; Author ***@***.***>
Subject: Re: [maximilianh/cellBrowser] KeyError: 'name' during cbImportSeurat (Issue #268)
> > First, you write > Add a statement like the following to your ~/.cellbrowser.conf: … > dataRoot='/celldata/' This defines the root directory under which all future cell browser data files will be located. Does this help? Then later you write > Then
First, you write
Add a statement like the following to your ~/.cellbrowser.conf: …
dataRoot='/celldata/'
This defines the root directory under which all future cell browser data
files will be located. Does this help?
Then later you write
Then, create a “stub” cellbrowser.conf into this directory, it should only
contain a single line like shortLabel="some description".
This is only a stub to make sure that the root directory has a label.
This confuses me. How many cellbrowers.conf files are we talking about
here? Only one?
So far, no single dataset has been defined. Only the root directory has
been set. Does this help? (I'm asking so I can improve the documentation)
Another source of confusion for me is that `cbBuild` takes its default
value for`-o` from `CBOUT` whereas `cbImportSeurat` does not take a default
for `-o`.
cbBuild outputs html files. cbImportSeurat outputs .tsv files and a matrix
file and config files for cbBuild. The output of cbImportSeurat is the
input for cbBuild.
Q: Do I understand correctly that, the -o option to cbBuild is an htmlDir
whereas the -o option to ` cbImportSeurat` is a data directory?
YES! I don't think I can still change the letters of these options, but I
can change the usage messages and the documentation html pages.
If so, then do you agree that if I am calling `cbImportSeurat -i
/path/to/my_wellnamed_experiment.rds` then a reasonable value of -o is
might be “${CBDATAROOT}/my_wellnamed_experiment”?
YES!
Perhaps your documentation could benefit from an example wherein you go
from absolutely nothing to having a cellbrowser configured with multiple
datasets arranged in a hierarchy. The example might:
* Use environment variables (CBDATAROOT, CBOUT) throughout
* illustrate deploying https://cells.ucsc.edu/downloads/samples/mini.tgz<https://cells.ucsc.edu/downloads/samples/mini.tgz><
https://cells.ucsc.edu/downloads/samples/mini.tgz<https://cells.ucsc.edu/downloads/samples/mini.tgz>>
* illustrate command-line deploying in a different manner (e.g. using
cbImportSeurat)
Thanks!
INFO:root:input directory cellbrowser.conf is not located under dataRoot
/home/mec/public_html/cellbrowser/data. Deactivating hierarchies.
I see... I wonder if public_html is a symlink or some sort of linkin is
going on there in the file system. To find out if cellbrowser.conf is
located under the dataRoot, it's trying if abspath(indir) starts with
dataRoot, like this, in cellbrowser.py:findRoot()
if inDir is not None and not abspath(inDir).startswith(dataRoot):
logging.info("input directory %s is not located under dataRoot %s.
Deactivating hierarchies." % (inDir, dataRoot))
return None
Not sure how this can fail here.
I've improved this error message, it should now output the full input
directory, rather than just the filename of cellbrowser.conf, can you do a
git pull and retry the same command? Thanks! The new error message will
output both directories, not just one.
Which confuses me since is appears to me that the conf file is within the
dataRoot directory
Yes. It is confusing me, too.
Sorry to ask you to wade through all this. Is there a better set of
diagnostics I should provide?
This is awesome.
Is this no longer a concern so long as after doing this
This is solved! Seurat can import anything now. Updated the docs.
Message ID: ***@***.***<mailto:***@***.***>>
—
Reply to this email directly, view it on GitHub<#268 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADWHORZLGNHVDWGWU3JS6DZYQHZLAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXGA3DQOBVHE>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Nice, so that may explain it. But, according to
https://stackoverflow.com/questions/37863476/why-would-one-use-both-os-path-abspath-and-os-path-realpath,
abspath doesn't resolve symlinks, so now I'm confused. I'm not using
realpath(), which would resolve the symlink...hmmm. If you use git and you
can do a git pull and use the master branch of cbBuild, we will know more
on Monday. Happy weekend!
…On Fri, Sep 27, 2024 at 12:13 AM Malcolm Cook ***@***.***> wrote:
public_html was a symlink! I made it hoping it would make my example
easier to follow. Alas, it exposed a different issue. Hah! Playing
whack-a-mole with myself.
I will try again next Monday.
Taking a holiday tomorrow. Have a great weekend.
~ ***@***.***
From: Maximilian Haeussler ***@***.***>
Sent: Thursday, September 26, 2024 9:03 AM
To: maximilianh/cellBrowser ***@***.***>
Cc: Cook, Malcolm ***@***.***>; Author ***@***.***>
Subject: Re: [maximilianh/cellBrowser] KeyError: 'name' during
cbImportSeurat (Issue #268)
> > > First, you write > Add a statement like the following to your
~/.cellbrowser.conf: … > dataRoot='/celldata/' This defines the root
directory under which all future cell browser data files will be located.
Does this help? Then later you write > Then
<
https://report.mimecastcybergraph.com/?magiclink=https%3A%2F%2Fapi.services.mimecast.com%2Foauth2%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3Do20nRkVXf7VUVnANkXhoOwGytEwGN0YAlyeDJn7oBTGNl2kN%26state%3DeyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIn0.E-ooh5ITEYmFPq1o6MjGmo1_cU_UVkTWBvnpJetfp-RJlzzr0EgsmstLVDewqIefoEV4xeltsIVHd8sixgJN6uyyXCHCNvwdcaCVz30pM7br5-03TA1uy1W7p5bFvQ99Oi6AFpMMK6d-dICPp4BEIplj6R8BaYWsWY-tdxO0ld5JiE90bDrQPjSazk7a491yXkXxESg_12XpJuqXj3EB5I6b2Md-TpXhDiBs3YSNsHsp-QEt3dgv244gJouWctgqI54E-eFoP24LhyJvBXLiML9ns0XiUqmNMmmO--aTxoSjGwJjh4CHVGbrQoeZI5D840XvbcgNO00wqB94B2PUoA.Wf25gbeIRtHuDoIg.9-SzBjGut7wl-ENdkNAwB8qxBoJxYMFNQSMJNdKLJSK3Tz5VIMt80223iF_8cuidgEb9XVS6l9g51EUR74ddtDNC8Dg8Ek-pnyqwXP-4jEQ7o_753XUDcvbd463EoPnqhHCW77tjn8-hS1ARJsBaTduEMK1rQXHveh3tloy2C_uDD6fisyYfwVGS2R9lloLANewDNmiF99TTyMkc7D_aw1Jl7gCSiqiddBpfNPUWey373Z-dDNx0NxtVST5D0V8V9EzDiaskGJdmZuUcXnWSqnpeWliXnIHYP20L3ByfBcVieMVnU6p7ce0OALvgACOKdCM7fnPScJyVC2Trqk3RY-iTTOmTDDTXsBz4cEiNffcj7FeAac3ublu1iFV_MBt78eOF_0PYQJFpg_lGMt6Sl_xqcmsm6kHAC1se_j8heG3cATJ0TG-M5SG0mcJYgaska5JvjpxFfdNzzP2VBHdUTQg_5HFOh5ghMnR-8MIPvYBGdbjdzqrU-RNmtlcWcuOQ_7hi_zN2wvJeTenDc1VzhLTkhUziniNjg_fbXLNi07eV8OR1bWOAjB7xww-2DYiRKXx8SIQ--Gw18TsJhNYc8wR-v_mbb-t1S1jX3Tdl6j39DEhnga-ujPlgxllAfiqG_QMI9Gh0BKN_yERxCIx8DCYVo8NIsiinJFruzBQfJUJur6hIglleP4Xp0BX6O3s6IKH6h4aro87OPxzGGpeUYxaAI2uhoUg_YbOQTXB1FICEkatl7uO08V11UZxF8g573LU4-q0y2vO5dM8eiJRcD5vaTr90a1e5yC2Hl8LEioZuypdfadmjztmP0OLog9hS64CQNlJHLyzFBqX_zer2l4MLNdhzIJqgu5bCn6Pms9ev.F2FSW13nAWf0dVneLugtAg%26redirect_uri%3Dhttps%3A%2F%2Freport.mimecastcybergraph.com%2Fcallback>
CGBANNERINDICATOR
>
>
> First, you write
> Add a statement like the following to your ~/.cellbrowser.conf: …
> dataRoot='/celldata/'
This defines the root directory under which all future cell browser data
files will be located. Does this help?
Then later you write
> Then, create a “stub” cellbrowser.conf into this directory, it should
only
> contain a single line like shortLabel="some description".
This is only a stub to make sure that the root directory has a label.
This confuses me. How many cellbrowers.conf files are we talking about
> here? Only one?
So far, no single dataset has been defined. Only the root directory has
been set. Does this help? (I'm asking so I can improve the documentation)
Another source of confusion for me is that `cbBuild` takes its default
> value for`-o` from `CBOUT` whereas `cbImportSeurat` does not take a
default
> for `-o`.
cbBuild outputs html files. cbImportSeurat outputs .tsv files and a matrix
file and config files for cbBuild. The output of cbImportSeurat is the
input for cbBuild.
Q: Do I understand correctly that, the -o option to cbBuild is an htmlDir
> whereas the -o option to ` cbImportSeurat` is a data directory?
YES! I don't think I can still change the letters of these options, but I
can change the usage messages and the documentation html pages.
> If so, then do you agree that if I am calling `cbImportSeurat -i
> /path/to/my_wellnamed_experiment.rds` then a reasonable value of -o is
> might be “${CBDATAROOT}/my_wellnamed_experiment”?
YES!
Perhaps your documentation could benefit from an example wherein you go
> from absolutely nothing to having a cellbrowser configured with multiple
> datasets arranged in a hierarchy. The example might:
> * Use environment variables (CBDATAROOT, CBOUT) throughout
> * illustrate deploying https://cells.ucsc.edu/downloads/samples/mini.tgz
<https://cells.ucsc.edu/downloads/samples/mini.tgz><
> https://cells.ucsc.edu/downloads/samples/mini.tgz<
https://cells.ucsc.edu/downloads/samples/mini.tgz>>
> * illustrate command-line deploying in a different manner (e.g. using
> cbImportSeurat)
Thanks!
> INFO:root:input directory cellbrowser.conf is not located under dataRoot
> /home/mec/public_html/cellbrowser/data. Deactivating hierarchies.
>
I see... I wonder if public_html is a symlink or some sort of linkin is
going on there in the file system. To find out if cellbrowser.conf is
located under the dataRoot, it's trying if abspath(indir) starts with
dataRoot, like this, in cellbrowser.py:findRoot()
if inDir is not None and not abspath(inDir).startswith(dataRoot):
logging.info("input directory %s is not located under dataRoot %s.
Deactivating hierarchies." % (inDir, dataRoot))
return None
Not sure how this can fail here.
I've improved this error message, it should now output the full input
directory, rather than just the filename of cellbrowser.conf, can you do a
git pull and retry the same command? Thanks! The new error message will
output both directories, not just one.
Which confuses me since is appears to me that the conf file is within the
> dataRoot directory
Yes. It is confusing me, too.
>
> Sorry to ask you to wade through all this. Is there a better set of
> diagnostics I should provide?
This is awesome.
>
> Is this no longer a concern so long as after doing this
This is solved! Seurat can import anything now. Updated the docs.
>
> Message ID: ***@***.***<mailto:***@***.***>>
>
—
Reply to this email directly, view it on GitHub<
#268 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AADWHORZLGNHVDWGWU3JS6DZYQHZLAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXGA3DQOBVHE>.
You are receiving this because you authored the thread.Message ID:
***@***.******@***.***>>
—
Reply to this email directly, view it on GitHub
<#268 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACL4TJ5ZXGF3CB5V7QARHLZYSBJTAVCNFSM6AAAAABOXANNXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZYGAZDONRQGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cbImportSeurat is failing with
using a fresh install of cellBrowser
what more diagnostics can I provide
FWIW installing the sample from
https://cells.ucsc.edu/downloads/samples/mini.tgz
works perfectlyThe text was updated successfully, but these errors were encountered: