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

Caching GenomicRDD in pyspark #1883

Closed
akmorrow13 opened this issue Jan 23, 2018 · 1 comment
Closed

Caching GenomicRDD in pyspark #1883

akmorrow13 opened this issue Jan 23, 2018 · 1 comment
Milestone

Comments

@akmorrow13
Copy link
Contributor

Can we cache a GenomicRDD in python?

@akmorrow13
Copy link
Contributor Author

I try

reads = ac.loadAlignments(readsPath)
x = reads.toDF().rdd.cache() 
cachedReads = reads._replaceRdd(x)
cachedReads.toDF().rdd.first()

Which errors as:

ValueError: Some of types cannot be determined by the first 100 rows, please try again with sampling

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