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

Plink new xarray rep #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eric-czech
Copy link
Collaborator

No description provided.

ds_fam = dataframe_to_dataset(df_fam, dim='sample', compute_lengths=True, add_coord=False)
ds_bim = dataframe_to_dataset(df_bim, dim='variant', compute_lengths=True, add_coord=False)
# TODO: either avoid computing Dask arrays, or just use Pandas
df_bin_pd = df_bim.compute()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @tomwhite, some of these dataframes will have 10s of millions of rows (maybe closer to 100M even for PLINK) so I wanted to see why you wanted to move away from chunked arrays here. Was this just for temporary simplicity or is there something fundamentally very inefficient in the dask.Series to dask.Array conversion?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just for temporary simplicity to check that the representation was feasible. Not intended to be merged, so feel free to throw away or do what you want with it!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok makes sense, ty

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

Successfully merging this pull request may close these issues.

2 participants