Skip to content
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

Running tSPACE on large datasets. Issues with igraph: Weight vector must be non-negative #1

Open
ccp77 opened this issue Mar 22, 2019 · 5 comments

Comments

@ccp77
Copy link

ccp77 commented Mar 22, 2019

Hi,

Thanks a lot for your great work. I'm trying to run tSpace on a dataset of 200'000 cells x 15 PCs (on Mac iOS). However I get the following error [Error in { :
task 1 failed - "At structural_properties.c:4295 : Weight vector must be non-negative, Invalid value"], which I believe is a problem with the igraph dependency. When I run tSpace on a downsample of the dataset (2'000 cells x 15 PCs), I'm able to obtain my ts_file. I tried to install previous version of igraph (1.1.2) as suggested, but I still get the same error. Thank you very much!

@ccp77 ccp77 changed the title Running tSPACE on large datasets: Running tSPACE on large datasets. Issues with igraph: Weight vector must be non-negative Mar 22, 2019
@hylasD
Copy link
Owner

hylasD commented Mar 22, 2019 via email

@ccp77
Copy link
Author

ccp77 commented Mar 25, 2019

Hi Denis,

Thank you very much for your reply.
Yes I would be happy if you could have a look at my data. Please find attached my matrix with the 15 PCs (Flow data auto-logicle transformation) and my script. Thank you very much!
Best,

Cecile

@hylasD
Copy link
Owner

hylasD commented Mar 29, 2019 via email

@ccp77
Copy link
Author

ccp77 commented Mar 30, 2019 via email

@hylasD
Copy link
Owner

hylasD commented Apr 2, 2019

Hi ccp70,

I examined your data and indeed, as I suspected during knn graph calculation, few cell-cell pairs have negative distances, which I have not seen before in biological data. Shortest distances path algorithm does not accept negative distances, and that is the reason for tSpace to fail. When examining the values in detail these are very close to zero (all are with the exponent -15), so I would just suggest to proceed with the data as it is and use updated tSpace version.

I modified the core tSpace algorithm to report a message if negative distances are detected. They will be automatically approximated to zero, and trajectory inference analysis will run until the end. Additionally all cell-cell pairs with negative distances will be reported so user can examine them.

Please update the tSpace version and let me know if you run in to any other issues.
Please let me know if I can close this issue as solved.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants