maximilianh/cellBrowser

Running CBBuild on Autism Data

itskhurrams opened this issue · 7 comments

Hi,
I have successfully build and run "Mini" and its working fine.

Now i download Autism Data place it in a folder. but when i try to run cbbuild on "Autism" it gives me following error. Please help. because i have to build mutiple datasets.

PS D:\CellBrowser\cellBrowser\src\Autism> python ../cbbuild --init
INFO:root:Wrote D:\CellBrowser\cellBrowser\src\Autism\cellbrowser.conf
INFO:root:Wrote D:\CellBrowser\cellBrowser\src\Autism\desc.conf
PS D:\CellBrowser\cellBrowser\src\Autism> python ../cbbuild -o D:\CellBrowser\cellBrowser\src\public_html -p 8888
INFO:root:dataRoot is not set in ~/.cellbrowser.conf or via $CBDATAROOT. Dataset hierarchies are not supported.
INFO:root:Determining if D:\CellBrowser\cellBrowser\src\public_html\sample\exprMatrix.tsv.gz needs to be created
INFO:root:D:\CellBrowser\cellBrowser\src\public_html\sample\exprMatrix.tsv.gz does not exist. Must build matrix now.
INFO:root:Checking and reordering meta data to D:\CellBrowser\cellBrowser\src\public_html\sample\meta.tsv
INFO:root:Reading sample names from D:\CellBrowser\cellBrowser\src\Autism\meta.tsv
INFO:root:Reading headers from file D:\CellBrowser\cellBrowser\src\Autism\exprMatrix.tsv.gz
INFO:root:Data contains 104559 samples/cells
INFO:root:Converting to numbers and compressing meta data fields
WARNING:root:File colors.tsv does not exist
WARNING:root:D:\CellBrowser\cellBrowser\src\Autism\acronyms.tsv specified in config file, but does not exist, skipping
INFO:root:Field cell: type uniqueString, 104559 different values
INFO:root:Field cluster: type enum, 17 different values
INFO:root:Field sample: type enum, 41 different values
INFO:root:Field individual: type int, 31 different values
INFO:root:Field region: type enum, 2 different values
INFO:root:Field age: type int, 14 different values
INFO:root:Field sex: type enum, 2 different values
INFO:root:Field diagnosis: type enum, 2 different values
INFO:root:Field Capbatch: type enum, 8 different values
INFO:root:Field Seqbatch: type enum, 3 different values
INFO:root:Field postMinusmortemintervalhours: type int, 18 different values
INFO:root:Field RNAIntegrityNumber: type float, 18 different values
INFO:root:Field genes: type int, 8202 different values
INFO:root:Field UMIs: type int, 20938 different values
INFO:root:Field RNAmitochondrpercent: type float, 64073 different values
INFO:root:Field RNAribosomalpercent: type float, 62056 different values
INFO:root:Indexing meta file D:\CellBrowser\cellBrowser\src\public_html\sample\meta.tsv to D:\CellBrowser\cellBrowser\src\public_html\sample\meta.index
INFO:root:Kept 104559 cells present in both meta data file and expression matrix
WARNING:root:Gunzip not in PATH, falling back to Python's built-in
INFO:root:Auto-detecting number type of D:\CellBrowser\cellBrowser\src\Autism\exprMatrix.tsv.gz
INFO:root:Auto-detect: Numbers in matrix are of type 'float'
INFO:root:Auto-detected gene IDs type: gencode-human
INFO:root:Reading gene,symbol mapping from D:\CellBrowser\cellBrowser\cellbrowserData\genes\gencode-human.symbols.tsv.gz
INFO:root:Copying/compressing D:\CellBrowser\cellBrowser\src\Autism\exprMatrix.tsv.gz to D:\CellBrowser\cellBrowser\src\public_html\sample\exprMatrix.tsv.gz
'cp' is not recognized as an internal or external command,
operable program or batch file.
ERROR:root:Could not run: cp "D:\CellBrowser\cellBrowser\src\Autism\exprMatrix.tsv.gz" "D:\CellBrowser\cellBrowser\src\public_html\sample\exprMatrix.tsv.gz"
ERROR:root:Unexpected error: (<class 'SystemExit'>, SystemExit(1), <traceback object at 0x000001E5A624A900>)
Traceback (most recent call last):
File "D:\CellBrowser\cellBrowser\src\cbPyLib\cellbrowser\cellbrowser.py", line 4783, in cbBuildCli
build(confFnames, outDir, port, redo=options.redo)
File "D:\CellBrowser\cellBrowser\src\cbPyLib\cellbrowser\cellbrowser.py", line 4598, in build
convertDataset(inDir, inConf, outConf, datasetDir, redo)
File "D:\CellBrowser\cellBrowser\src\cbPyLib\cellbrowser\cellbrowser.py", line 3955, in convertDataset
convertExprMatrix(inConf, outMatrixFname, outConf, sampleNames, geneToSym, datasetDir, needFilterMatrix)
File "D:\CellBrowser\cellBrowser\src\cbPyLib\cellbrowser\cellbrowser.py", line 3285, in convertExprMatrix
matType = copyMatrixTrim(matrixFname, outMatrixFname, metaSampleNames, needFilterMatrix, geneToSym, outConf, matType)
File "D:\CellBrowser\cellBrowser\src\cbPyLib\cellbrowser\cellbrowser.py", line 2525, in copyMatrixTrim
ret = runCommand(cmd)
File "D:\CellBrowser\cellBrowser\src\cbPyLib\cellbrowser\cellbrowser.py", line 2459, in runCommand
errAbort("Could not run: %s" % cmd)
File "D:\CellBrowser\cellBrowser\src\cbPyLib\cellbrowser\cellbrowser.py", line 168, in errAbort
sys.exit(1)
SystemExit: 1

Thanks in Advance.
Khurram

Hi Max,
Thank you for your support i really appreciate. Actually i am running it from code so should i download the developer branch in order to get this fixed ?

No Luck.
I downloaded the developer repo and run the command and i can see CP is still showing.

PS D:\CellBrowser\cellBrowserdevelop\src> cd .\Autism
PS D:\CellBrowser\cellBrowserdevelop\src\Autism> python ../cbbuild --init
INFO:root:Wrote D:\CellBrowser\cellBrowserdevelop\src\Autism\cellbrowser.conf
INFO:root:Wrote D:\CellBrowser\cellBrowserdevelop\src\Autism\desc.conf
PS D:\CellBrowser\cellBrowserdevelop\src\Autism> python ../cbbuild -o D:\CellBrowser\cellBrowserdevelop\src\public_html -p 8888
WARNING:root:The directory D:\CellBrowser\cellBrowserdevelop\src\public_html does not exist. Making a new directory now.
INFO:root:dataRoot is not set in ~/.cellbrowser.conf or via $CBDATAROOT. Dataset hierarchies are not supported.
INFO:root:Creating D:\CellBrowser\cellBrowserdevelop\src\public_html\sample
INFO:root:Determining if D:\CellBrowser\cellBrowserdevelop\src\public_html\sample\exprMatrix.tsv.gz needs to be created
INFO:root:D:\CellBrowser\cellBrowserdevelop\src\public_html\sample\exprMatrix.tsv.gz does not exist. Must build matrix now.
INFO:root:Creating D:\CellBrowser\cellBrowserdevelop\src\public_html\sample\metaFields
INFO:root:Checking and reordering meta data to D:\CellBrowser\cellBrowserdevelop\src\public_html\sample\meta.tsv
INFO:root:Reading sample names from D:\CellBrowser\cellBrowserdevelop\src\Autism\meta.tsv
INFO:root:Reading headers from file D:\CellBrowser\cellBrowserdevelop\src\Autism\exprMatrix.tsv.gz
INFO:root:Data contains 104559 samples/cells
INFO:root:Converting to numbers and compressing meta data fields
WARNING:root:File colors.tsv does not exist
WARNING:root:D:\CellBrowser\cellBrowserdevelop\src\Autism\acronyms.tsv specified in config file, but does not exist, skipping
INFO:root:Field cell: type uniqueString, 104559 different values
INFO:root:Field cluster: type enum, 17 different values
INFO:root:Field sample: type enum, 41 different values
INFO:root:Field individual: type int, 31 different values
INFO:root:Field region: type enum, 2 different values
INFO:root:Field age: type int, 14 different values
INFO:root:Field sex: type enum, 2 different values
INFO:root:Field diagnosis: type enum, 2 different values
INFO:root:Field Capbatch: type enum, 8 different values
INFO:root:Field Seqbatch: type enum, 3 different values
INFO:root:Field postMinusmortemintervalhours: type int, 18 different values
INFO:root:Field RNAIntegrityNumber: type float, 18 different values
INFO:root:Field genes: type int, 8202 different values
INFO:root:Field UMIs: type int, 20938 different values
INFO:root:Field RNAmitochondrpercent: type float, 64073 different values
INFO:root:Field RNAribosomalpercent: type float, 62056 different values
INFO:root:Indexing meta file D:\CellBrowser\cellBrowserdevelop\src\public_html\sample\meta.tsv to D:\CellBrowser\cellBrowserdevelop\src\public_html\sample\meta.index
INFO:root:Kept 104559 cells present in both meta data file and expression matrix
WARNING:root:Gunzip not in PATH, falling back to Python's built-in
INFO:root:Auto-detecting number type of D:\CellBrowser\cellBrowserdevelop\src\Autism\exprMatrix.tsv.gz
INFO:root:Auto-detect: Numbers in matrix are of type 'float'
INFO:root:Auto-detected gene IDs type: gencode-human
INFO:root:Reading gene,symbol mapping from D:\CellBrowser\cellBrowserdevelop\cellbrowserData\genes\gencode-human.symbols.tsv.gz
INFO:root:Copying/compressing D:\CellBrowser\cellBrowserdevelop\src\Autism\exprMatrix.tsv.gz to D:\CellBrowser\cellBrowserdevelop\src\public_html\sample\exprMatrix.tsv.gz
'cp' is not recognized as an internal or external command,
operable program or batch file.
ERROR:root:Could not run: cp "D:\CellBrowser\cellBrowserdevelop\src\Autism\exprMatrix.tsv.gz" "D:\CellBrowser\cellBrowserdevelop\src\public_html\sample\exprMatrix.tsv.gz"
ERROR:root:Unexpected error: (<class 'SystemExit'>, SystemExit(1), <traceback object at 0x000001B5EDCC6DC0>)
Traceback (most recent call last):
File "D:\CellBrowser\cellBrowserdevelop\src\cbPyLib\cellbrowser\cellbrowser.py", line 4783, in cbBuildCli
build(confFnames, outDir, port, redo=options.redo)
File "D:\CellBrowser\cellBrowserdevelop\src\cbPyLib\cellbrowser\cellbrowser.py", line 4598, in build
convertDataset(inDir, inConf, outConf, datasetDir, redo)
File "D:\CellBrowser\cellBrowserdevelop\src\cbPyLib\cellbrowser\cellbrowser.py", line 3955, in convertDataset
convertExprMatrix(inConf, outMatrixFname, outConf, sampleNames, geneToSym, datasetDir, needFilterMatrix)
File "D:\CellBrowser\cellBrowserdevelop\src\cbPyLib\cellbrowser\cellbrowser.py", line 3285, in convertExprMatrix
matType = copyMatrixTrim(matrixFname, outMatrixFname, metaSampleNames, needFilterMatrix, geneToSym, outConf, matType)
File "D:\CellBrowser\cellBrowserdevelop\src\cbPyLib\cellbrowser\cellbrowser.py", line 2525, in copyMatrixTrim
ret = runCommand(cmd)
File "D:\CellBrowser\cellBrowserdevelop\src\cbPyLib\cellbrowser\cellbrowser.py", line 2459, in runCommand
errAbort("Could not run: %s" % cmd)
File "D:\CellBrowser\cellBrowserdevelop\src\cbPyLib\cellbrowser\cellbrowser.py", line 168, in errAbort
sys.exit(1)
SystemExit: 1
PS D:\CellBrowser\cellBrowserdevelop\src\Autism>