Giter Site home page Giter Site logo

Comments (9)

AndreaLGardner avatar AndreaLGardner commented on August 9, 2024

I had the same issue and it was solved by changing the delimiter on my data; csv worked great

from cellphonedb.

mvento avatar mvento commented on August 9, 2024

Hi @Jiam1ng,

Did you fix it? Please, send us the input data if it didn't work.

Best

from cellphonedb.

Jiam1ng avatar Jiam1ng commented on August 9, 2024

from cellphonedb.

mvento avatar mvento commented on August 9, 2024

Hi @Jiam1ng,

Perfect! Thanks for using CellPhoneDB.

Best

from cellphonedb.

wangjiawen2013 avatar wangjiawen2013 commented on August 9, 2024

I had the same issue and it was solved by changing the delimiter on my data; csv worked great

I met this error and how to change the delimiter of my meta.csv? I rename meta.csv to meta.txt, then it worked.

from cellphonedb.

PernilleYR avatar PernilleYR commented on August 9, 2024

I have the same issue, I tried both .txt or .csv and it doesn't solve the problem.
Weirdly it works perfectly fine with other dataset that I processed exactly the same way.
Any idea...?

Here is the error:
[ ][CORE][09/04/21-15:33:30][INFO] Launching Method cpdb_statistical_analysis_launcher
[ ][APP][09/04/21-15:33:30][ERROR] Unexpected error
Traceback (most recent call last):
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/cellphonedb/src/core/preprocessors/method_preprocessors.py", line 28, in meta_preprocessor
meta = pd.DataFrame(data={'cell_type': meta_raw.iloc[:, 1]})
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/pandas/core/indexing.py", line 873, in getitem
return self._getitem_tuple(key)
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/pandas/core/indexing.py", line 1443, in _getitem_tuple
self._has_valid_tuple(tup)
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/pandas/core/indexing.py", line 702, in _has_valid_tuple
self._validate_key(k, i)
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/pandas/core/indexing.py", line 1352, in _validate_key
self._validate_integer(key, axis)
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/pandas/core/indexing.py", line 1437, in _validate_integer
raise IndexError("single positional indexer is out-of-bounds")
IndexError: single positional indexer is out-of-bounds

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/cellphonedb/src/api_endpoints/terminal_api/method_terminal_api_endpoints/method_terminal_commands.py", line 144, in statistical_analysis
subsampler,
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/cellphonedb/src/local_launchers/local_method_launcher.py", line 64, in cpdb_statistical_analysis_local_method_launcher
subsampler
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/cellphonedb/src/core/methods/method_launcher.py", line 50, in cpdb_statistical_analysis_launcher
meta = method_preprocessors.meta_preprocessor(raw_meta)
File "/Users/pernillerainer/cpdb/lib/python3.7/site-packages/cellphonedb/src/core/preprocessors/method_preprocessors.py", line 35, in meta_preprocessor
raise ProcessMetaException
cellphonedb.src.core.exceptions.ProcessMetaException.ProcessMetaException: Error processing Meta data

Thanks!

Best

from cellphonedb.

prete avatar prete commented on August 9, 2024

Hi @PernilleYR could you please provide:

  • the command you used to launch CellphoneDB
  • your meta file or a sample of it

Thanks!

from cellphonedb.

PernilleYR avatar PernilleYR commented on August 9, 2024

Hi @prete,

Thanks for your answer!

Here is a sample of the metadata:
metadata_example.txt

And the command:
cellphonedb method statistical_analysis data/metadata_example.txt data/normdata_EP0.csv --output-path EP0/

I also tried to use a .csv but it also didn't work, even if I tried other datasets and it worked perfectly

Thank you so much for having a look, let me know if you need more info,

Best,

Pernille

from cellphonedb.

Genki-YAN avatar Genki-YAN commented on August 9, 2024

I also met this error and checked my files. I found there was a line which not split by a tab.

from cellphonedb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.