Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for data that is not time series #266

Open
matt-sd-watson opened this issue Oct 31, 2023 · 4 comments
Open

Support for data that is not time series #266

matt-sd-watson opened this issue Oct 31, 2023 · 4 comments
Labels
enhancement New feature or request new feature A new feature (request)

Comments

@matt-sd-watson
Copy link

I came across your tool and am quite impressed with the API and examples!

I would like to apply something of this sort to a dash app with a UMAP scatter plot that will have a highly variable number of points (between 10,000-500,000+) each of which represents a human cell in a biological system.

However, since UMAP data is inherently unordered (the order is merely the order at which different entities in a data frame come ordered), and that the coordinates can be either positive or negative, this type of data is not directly compatible with the FigureResampler class.

I was wondering if there was any way to provide support for unordered and non times series data with similar functionality for dash apps?

@jonasvdd jonasvdd added enhancement New feature or request new feature A new feature (request) labels Nov 9, 2023
@domerich
Copy link

domerich commented Nov 30, 2023

I am the same, I have temperature data on the x axis, it is strictly monotonically increasing but it starts in the negative °C range so I get this error.

AssertionError: In order to perform time series aggregation, the data must be sorted in time; i.e., the x-data must be (non-strictly) monotonically increasing.

<style> </style>
peak temp_interpolated
0.976562 -4.434
0.024796 -4.434
0 -4.434
1.953125 -4.434
0.031471 -4.434
... ...
0.137329 -4.403
0 -4.402
0.047684 -4.402
0.976562 -4.402
0.124931 -4.402

The only work around seems to convert from °C to Kelvin

@JotaKas
Copy link

JotaKas commented Aug 16, 2024

Any news on this enhancement? I am in a similar situation.

Thank you for the tool!

@domerich
Copy link

It seems to be working with the latest version

@matt-sd-watson
Copy link
Author

@domerich Are you able to provide a dataset or minimal example to show this? With the latest version I still require data that are strictly monotonically increasing.

As an example, the dataset attached does not work in dash with v0.10.0

umap_coordinates.csv

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request new feature A new feature (request)
Projects
None yet
Development

No branches or pull requests

4 participants