-
Notifications
You must be signed in to change notification settings - Fork 596
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
Cleanup GenomicsDB vid combine protobuf mapping overrides #6190
Conversation
@ldgauthier, would you like to change constant STRAND_BIAS_TABLE_COMBINE to ELEMENT_WISE_INT_SUM? |
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.
This is a big improvement that should eliminate a lot of the confusion I had when we were working on the AS_QUAL annotation.
@@ -36,6 +37,50 @@ | |||
private static final String STRAND_BIAS_TABLE_COMBINE = "strand_bias_table"; | |||
private static final String GDB_TYPE_FLOAT = "float"; | |||
private static final String GDB_TYPE_INT = "int"; | |||
// private static final String MOVE_TO_FORMAT = "move_to_FORMAT"; |
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.
I'd rather leave this because I have some work in development that does use it.
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.
Actually, I added this based on the email thread and left it commented out to stop the compiler complaining about unused variables. Please feel free to uncomment as necessary.
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.
I have uncommented MOVE_TO_FORMAT too.
@@ -36,6 +37,50 @@ | |||
private static final String STRAND_BIAS_TABLE_COMBINE = "strand_bias_table"; |
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.
@nalinigans -- yes, changing this to ELEMENT_WISE_INT_SUM is a great idea!
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.
Done.
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.
Looks great, thanks!
)" This reverts commit 609dafe.
* Move vid combine protobuf mapping overrides from GenomicsDB ExportConfiguration to Import * Comment out MOVE_TO_FORMAT as it is not used as yet * Change AS_QUALapprox combine operation to element wise int sum
…ckaged (#6206) * Use GenomicsDB 1.1.2.2. Also add junit to check if native Linux and Mac OSX shared libraries are included in genomicsdb.jar * Revert back 712bfc4 with move to GenomicsDB 1.1.2.2 * Cleanup GenomicsDB vid combine protobuf mapping overrides (#6190) * Move vid combine protobuf mapping overrides from GenomicsDB ExportConfiguration to Import * Comment out MOVE_TO_FORMAT as it is not used as yet * Change AS_QUALapprox combine operation to element wise int sum
Move vid combine protobuf mapping overrides from GenomicsDB ExportConfiguration to Import. Overrides can still be performed via ExportConfiguration, but recommended to modify the mappings during the import phase as not all mappings can be effectively modified during export/queries.
There is a whole bunch of hardcoded allele-specific fields whose vid mappings are hardcoded in GenomicsDB - see https://github.com/GenomicsDB/GenomicsDB/blob/master/src/main/java/org/genomicsdb/importer/Constants.java. There is no harm in specifying the mappings in gatk as well. But, at some point we should move the mappings from GenomicsDB to gatk, as these are gatk-specific annotations.