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

Cleanup GenomicsDB vid combine protobuf mapping overrides #6190

Merged
merged 4 commits into from
Oct 7, 2019

Conversation

nalinigans
Copy link
Collaborator

@nalinigans nalinigans commented Oct 1, 2019

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.

@nalinigans
Copy link
Collaborator Author

nalinigans commented Oct 1, 2019

@ldgauthier, would you like to change constant STRAND_BIAS_TABLE_COMBINE to ELEMENT_WISE_INT_SUM?

Copy link
Contributor

@ldgauthier ldgauthier left a 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";
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

@nalinigans nalinigans Oct 1, 2019

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";
Copy link
Contributor

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!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@ldgauthier ldgauthier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@droazen droazen merged commit 609dafe into master Oct 7, 2019
@droazen droazen deleted the genomicsdb_set_protobuf_fields branch October 7, 2019 20:30
droazen added a commit that referenced this pull request Oct 8, 2019
droazen added a commit that referenced this pull request Oct 8, 2019
* Revert "Cleanup GenomicsDB vid combine protobuf mapping overrides (#6190)"

This reverts commit 609dafe.

* Revert "Move to GenomicsDB 1.1.2 (#6188)"

This reverts commit 712bfc4.
nalinigans added a commit that referenced this pull request Oct 9, 2019
* 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
droazen pushed a commit that referenced this pull request Oct 24, 2019
…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
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

Successfully merging this pull request may close these issues.

3 participants