Closed pcm32 closed 5 years ago
To follow up on this @maximilianh I forked and tagged the last commit that was working fine (a20c4d0533a623f6d2b2b357ef94d75a2b87c569) with 0.1.9, however I still get other errors... the only difference between this and the previous time that the container was built (unfortunately that container was lost due to some changes in our CI) with that version seem to be the version of some dependencies pulled by conda. Before it was numpy 1.14.3 and now 1.15.x. I pinned down to 1.14.3, but errors I get with 0.1.9 are:
INFO:root:Copying+reordering+trimming /export/galaxy-central/database/files/000/dataset_42.dat to /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.tsv, keeping only the 4261 columns with a sample name in the meta data
INFO:root:converting /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.tsv.gz to /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.bin and writing index to /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.json
INFO:root:Compressing gene expression vectors...
INFO:root:Auto-detecting number type of /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.tsv.gz
INFO:root:Numbers in matrix are of type 'float'
Traceback (most recent call last):
File "/usr/local/bin/cbBuild", line 10, in <module>
cellbrowser.convertAndCopyCli()
File "/usr/local/bin/cbPyLib/cellbrowser.py", line 2145, in convertAndCopyCli
convertAndCopy(confFnames, outDir, port)
File "/usr/local/bin/cbPyLib/cellbrowser.py", line 2119, in convertAndCopy
convertDataset(inConf, outConf, datasetDir)
File "/usr/local/bin/cbPyLib/cellbrowser.py", line 1962, in convertDataset
convertExprMatrix(inConf, outMatrixFname, outConf, sampleNames, geneToSym, datasetDir, needFilterMatrix)
File "/usr/local/bin/cbPyLib/cellbrowser.py", line 1696, in convertExprMatrix
matType = matrixToBin(outMatrixFname, geneToSym, binMat, binMatIndex, discretBinMat, discretMatrixIndex)
File "/usr/local/bin/cbPyLib/cellbrowser.py", line 1035, in matrixToBin
matType, sampleNames = matReader.open(fname)
TypeError: 'NoneType' object is not iterable
Any ideas? I'm happy to move to something above 0.25 again, but currently 0.25's cbBuild is not working either (see first comment above) :-(. Thanks!
I can fix this, I can fix this, just give me a day or so...
On Tue, Sep 18, 2018 at 11:36 AM, Pablo Moreno notifications@github.com wrote:
To follow up on this @maximilianh https://github.com/maximilianh I forked and tagged the last commit that was working fine (a20c4d0 https://github.com/maximilianh/cellBrowser/commit/a20c4d0533a623f6d2b2b357ef94d75a2b87c569) with 0.1.9, however I still get other errors... the only difference between this and the previous time that the container was built (unfortunately that container was lost due to some changes in our CI) with that version seem to be the version of some dependencies pulled by conda. Before it was numpy 1.14.3 and now 1.15.x. I pinned down to 1.14.3, but errors I get with 0.1.9 are:
INFO:root:Copying+reordering+trimming /export/galaxy-central/database/files/000/dataset_42.dat to /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.tsv, keeping only the 4261 columns with a sample name in the meta data INFO:root:converting /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.tsv.gz to /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.bin and writing index to /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.json INFO:root:Compressing gene expression vectors... INFO:root:Auto-detecting number type of /export/galaxy-central/database/job_working_directory/000/40/dataset_45_files/sample/exprMatrix.tsv.gz INFO:root:Numbers in matrix are of type 'float' Traceback (most recent call last): File "/usr/local/bin/cbBuild", line 10, in
cellbrowser.convertAndCopyCli() File "/usr/local/bin/cbPyLib/cellbrowser.py", line 2145, in convertAndCopyCli convertAndCopy(confFnames, outDir, port) File "/usr/local/bin/cbPyLib/cellbrowser.py", line 2119, in convertAndCopy convertDataset(inConf, outConf, datasetDir) File "/usr/local/bin/cbPyLib/cellbrowser.py", line 1962, in convertDataset convertExprMatrix(inConf, outMatrixFname, outConf, sampleNames, geneToSym, datasetDir, needFilterMatrix) File "/usr/local/bin/cbPyLib/cellbrowser.py", line 1696, in convertExprMatrix matType = matrixToBin(outMatrixFname, geneToSym, binMat, binMatIndex, discretBinMat, discretMatrixIndex) File "/usr/local/bin/cbPyLib/cellbrowser.py", line 1035, in matrixToBin matType, sampleNames = matReader.open(fname) TypeError: 'NoneType' object is not iterable Any ideas? I'm happy to move to something above 0.25 again, but currently 0.25's cbBuild is not working either (see first comment above) :-(. Thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/25#issuecomment-422325679, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS-TXXDpkWypxUCEnPa0kYxdQpXaws2ks5ucL6wgaJpZM4WstOW .
Does this really fail on the sample file?
What is dataset_35 ?
2018-09-17T20:44:08.097421065Z INFO:root:Parsing coordinates from /export/galaxy-central/database/files/000/dataset_35.dat. FlipY=False, useTwoBytes=False
Can you send me the full input that you're running on?
The error means that dataset_35 has too many columns. It should only have three. I can add a better error message, but I need to reproduce it myself (also to understand what the misunderstanding is, so I can properly document it and have better error messages).
Sorry, just notice that when I tried 0.25 I mistakenly linked the matrix in two different slots... let me retry, it might be that 0.25 is ok!
Ok, 0.25 works, this was a late night working error, apologies for the extra issue! Thanks!
Phew! Thanks!
I imagine you specified the expression matrix where it wanted the coordinates. Good to know. Maybe I should add a more obvious error message here.
On Tue, Sep 18, 2018 at 6:14 AM, Pablo Moreno notifications@github.com wrote:
Ok, 0.25 works, this was a late night working error, apologies for the extra issue! Thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/25#issuecomment-422336657, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS-TTOHBnB8eyguBYeUGeTDuZ7egYJ4ks5ucMd7gaJpZM4WstOW .
Added:
if len(headers)>=255:
errAbort("Cannot read more than 255 columns. Are you sure that this
file is in the correct format?"
" It may have the wrong line endings and may require
treatment with dos2unix or mac2unix. "
" Or it may be the wrong file type for this input, e.g. an
expression matrix instead of a "
" coordinate file.")
On Tue, Sep 18, 2018 at 6:18 AM, Pablo Moreno notifications@github.com wrote:
Closed #25 https://github.com/maximilianh/cellBrowser/issues/25.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/25#event-1851972047, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS-TdCkKgk-hGsfXuq80vmnslIEPWL7ks5ucMh4gaJpZM4WstOW .
Sounds good. There are other things that we could improve for the Galaxy spin up, but will come back to that later. Thanks for your prompt help on all of these.
Execution as described in #24 fails with the following error: