-
Notifications
You must be signed in to change notification settings - Fork 311
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
[ADAM-937] Adding check for aligned read predicate or limit projection flags and non-parquet input path #938
Conversation
… non-parquet input path, fixes bigdatagenomics#937
I'm not sure this is comprehensive enough, e.g. sometimes even Parquet files won't have $ ./bin/adam-submit fasta2adam \
adam-cli/src/test/resources/contigs.fa contigs.contig.adam
$ ./bin/adam-submit transform -aligned_read_predicate \
contigs.contig.adam output.adam
Command body threw exception:
java.io.FileNotFoundException: File contigs.contig.adam.seqdict does not exist
Exception in thread "main" java.io.FileNotFoundException:
File contigs.contig.adam.seqdict does not exist |
Test PASSed. |
Sorry; should be checking that the file is a Parquet file of alignment records. Alternatively, we could make this a |
What do you mean by this, flipping the logic of |
Oh, I just meant that it shouldn't check for any Parquet dataset. Rather, the check should be more specific and check that it is a Parquet dataset of |
Can't do that by filename check, so it would have to come later, instead of fail fast in the cli class. |
Ah, yes, fair. I think we suggest "*.contig.adam" as a convention for files of Do you want to do any of the |
Yep, I cribbed from here I can add the check for |
This is probably sufficient for now. We can add the two later if need be. I'll merge this shortly. |
Thanks, Michael. |
Merged manually. |
Fixes #937