-
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
Various small fixes #907
Various small fixes #907
Conversation
huitseeker
commented
Dec 29, 2015
- some better option usage
- removed some unneeded toStrings
- some use of builtin functions for when applicable
disuse of builtin functions for common reduce operations unneceessary toString risky/anti-idiomatic Option usage
Can one of the admins verify this patch? |
Jenkins, test this please. |
@@ -113,7 +113,7 @@ object VariantAnnotationConverter extends Serializable { | |||
private def createFieldMap(keys: Seq[AttrKey], schema: Schema): Map[String, (Int, Object => Object)] = { | |||
keys.filter(_.attrConverter != null).map(field => { | |||
val avroField = schema.getField(field.adamKey) | |||
field.vcfKey -> (avroField.pos, field.attrConverter) | |||
field.vcfKey -> ((avroField.pos, field.attrConverter)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, what does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compiler is in this case auto-tupling and inserting the parentheses that I'm here making more explicit. See e.g. http://stackoverflow.com/a/29252334/47978
It's an ill-documented
and now kind of deprecated feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! yeah, that shouldn't have worked before :)
Test PASSed. |
Thanks for the great changes @huitseeker! I've dropped a variety of notes inline. Thanks for making a pass over the code and cleaning up a lot of detritus. It's especially good to see a lot of the |
- retire VcfStringUtils - finer exception types in some places - more explicit Fastq error message in stringent mode - allow IUPAC codes as isRegularBase alternatives
Thanks for the updated changes, @huitseeker! They look really good. I just had one last comment about the FASTQ exception; let me know what your thoughts are, and I think we can get this merged very soon. |
Done ! Let me know what you think (and don't forget bigdatagenomics/utils#60 ) |
Jenkins, retest this please |
LGTM, thanks! |
Test FAILed. Build result: FAILUREGitHub pull request #907 of commit aac5240 automatically merged.Notifying endpoint 'HTTP:https://webhooks.gitter.im/e/ac8bb6e9f53357bc8aa8'[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos spark-test) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/907/merge^{commit} # timeout=10 > git branch -a --contains ccdd5315a7094cab7a6af1c2c95754e6cf2c496e # timeout=10 > git rev-parse remotes/origin/pr/907/merge^{commit} # timeout=10Checking out Revision ccdd5315a7094cab7a6af1c2c95754e6cf2c496e (origin/pr/907/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f ccdd5315a7094cab7a6af1c2c95754e6cf2c496eFirst time build. Skipping changelog.Triggering ADAM-prb ? 2.6.0,2.11,1.4.1,centosTriggering ADAM-prb ? 2.6.0,2.10,1.4.1,centosTouchstone configurations resulted in FAILURE, so aborting...Notifying endpoint 'HTTP:https://webhooks.gitter.im/e/ac8bb6e9f53357bc8aa8'Test FAILed. |
Sorry, there's an error with the formatter
I'm for removing this from the build but will probably be outvoted. |
@heuermh "add to whitelist" |
Should be whitespace-only. Please view on github with '?w=1' appended to the url of this commit.
Updated to something more compliant. Let me know how it goes for you. I'm happy to revert the last commit if it goes against conventions |
Thanks @huitseeker! This looks stellar from my side. @heuermh, this is good to go from your side as well, right? If so, I will squash this down later today and merge. |
Jenkins, add to whitelist |
Test FAILed. Build result: FAILUREGitHub pull request #907 of commit bb64ea6 automatically merged.Notifying endpoint 'HTTP:https://webhooks.gitter.im/e/ac8bb6e9f53357bc8aa8'[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos spark-test) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/907/merge^{commit} # timeout=10 > git branch -a --contains 144f41a # timeout=10 > git rev-parse remotes/origin/pr/907/merge^{commit} # timeout=10Checking out Revision 144f41a (origin/pr/907/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f 144f41af508a898728a0c225aa8fbc7dd47d4c91First time build. Skipping changelog.Triggering ADAM-prb ? 2.6.0,2.11,1.4.1,centosTriggering ADAM-prb ? 2.6.0,2.10,1.4.1,centosTouchstone configurations resulted in FAILURE, so aborting...Notifying endpoint 'HTTP:https://webhooks.gitter.im/e/ac8bb6e9f53357bc8aa8'Test FAILed. |
Guys, I can't really do anything re: the three last formatting errors, see:
|
Sure, I'll take a look into this. |
Squashed #907 and ran format-sources
Closing in favor of #908 |
Thanks again @huitseeker for the great change! I squashed it down and fixed the source formatting issue that was causing the build to fail as PR #908. |