Comments (9)
Just curious, why do we need to convert the predicate to a Spark filter rather than just not ignoring the parquet predicate in the BAM/SAM/VCF code path?
from adam.
Ah, please disregard. I thought the predicate was being ignored for BAM/SAM data inside ADAM files (the name adamLoad is confusing in this respect)
from adam.
I took an attempt at this here: https://github.com/hammerlab/adam/compare/predicate-bam?expand=1 Would love some feedback or alternative approaches - right now this only supports boolean equality filters.
from adam.
This looks good! Are you intentionally only starting with booleans for the
value to sketch out the broader approach, or am I missing something and
that will encompass all possible filters?
On Wed, Apr 16, 2014 at 2:54 PM, Arun Ahuja [email protected]:
I took an attempt at this here:
https://github.com/hammerlab/adam/compare/predicate-bam?expand=1 Would
love some feedback or alternative approaches - right now this only supports
boolean equality filters.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-40637624
.
from adam.
Yea it was for simplicity, pushed an update now for more general equality support. I hadn't realized that Parquet only supported equality filters. @fnothaft I saw you were the last contributor to Parquet on that - is there support elsewhere for other types of ColumnFilters?
Also, I see what I did only supports AND's of conditions as well.
from adam.
Good stuff. I wonder if it would be worth it to generalize and let people
pass in arbitrary boolean functions rather than specific values to match
against. The function could take as input the Parquet value. Would that
work? Then you could express arbitrary computation as a condition for the
record to pass.
Neal
On Wed, Apr 16, 2014 at 7:32 PM, Arun Ahuja [email protected]:
Yea it was for simplicity, pushed an update now for more general equality
support. I hadn't realized that Parquet only supported equality filters.
@fnothaft https://github.com/fnothaft I saw you were the last
contributor to Parquet on that - is there support elsewhere for other types
of ColumnFilters?Also, I see what I did only supports AND's of conditions as well.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-40665152
.
from adam.
Nice! Indeed, this does look cool, and like a nice approach.
@arahuja I've actually added code to Parquet that supports arbitrary predicate functions. These are the "applyFunctionTo*" predicates. If you've got any questions about the predicate functions, or would like any changes made to them, let me know. I'd be glad to help on this, or to work on anything that'd make the predicates easier to use.
from adam.
@arahuja @fnothaft Is this issue still live, or can it be closed?
from adam.
Closed by #234.
from adam.
Related Issues (20)
- error when saveAsPairedFastq files HOT 2
- Update Spark dependency version to 3.2.1
- Parse error in interval list header
- Features without strand NPE in printFeatureAttributes
- Kmers overcounted in Slice countKmers
- Add sort output parameter to countKmers/countSliceKmers
- Add references parameter to transformSequences/transformSequences/countKmers etc. HOT 2
- Add maximum length parameter to countSliceKmers
- Update bdg-utils dependency version to 1.0
- Update bdg-formats dependency version to 1.0
- Update Spark dependency version to 3.3.0 HOT 1
- BAM/BED to parquet HOT 5
- Update Spark dependency version to 3.3.1
- Update Avro dependency version to 1.11.1
- Parameter warnings for scala-maven-plugin
- Update Spark dependency version to 3.3.2
- Missing Fastq reads HOT 1
- Parquet/Avro schema mismatch in transformFragments HOT 1
- Duplicate 1.0.1 entry in CHANGES.md
- Update Spark dependency version to 3.5.x HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adam.