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

EVA-486 PopulationStatistics: add chr, start, ref, alt fields #44

Merged
merged 3 commits into from
Dec 6, 2016

Conversation

jmmut
Copy link
Contributor

@jmmut jmmut commented Nov 30, 2016

This was necessary if we want to do better queries like going
to a specific region. this would we harder if we had only the
merged vid. {vid: {$lte: 20_7000}} would not only query the
positions before 7000, but all the previous chromosomes as well.

@@ -101,9 +101,10 @@ public void shouldCreateIndexesInCollection() throws Exception {

// check vid has an index
Copy link
Contributor

Choose a reason for hiding this comment

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

This comments need to be updated to reflect the new structure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

forgot about this PR, fixed in next commit

@cyenyxe cyenyxe changed the title PopulationStatistics: add chr, start, ref, alt fields EVA-486 PopulationStatistics: add chr, start, ref, alt fields Nov 30, 2016
This was necessary if we want to do better queries like going
to a specific region. this would we harder if we had only the
merged vid. {vid: {$lte: 20_7000}} would not only query the
positions before 7000, but all the previous chromosomes as well.
".populationStatistics\"}, { \"v\" : 1 , \"unique\" : true , \"key\" : " +
"{ \"chr\" : 1 , \"start\" : 1 , \"ref\" : 1 , \"alt\" : 1 , \"sid\" : 1 , \"cid\" : 1} , " +
"\"name\" : \"vscid\" , \"ns\" : \"" + databaseName + ".populationStatistics\"}]",
statsCollection.getIndexInfo().toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

This test could compare the DBObjects extracted from getIndexInfo() using the equals() method.

@cyenyxe cyenyxe merged commit 49f4fa7 into EBIvariation:develop Dec 6, 2016
cyenyxe pushed a commit that referenced this pull request Dec 6, 2016
EVA-486 PopulationStatistics: add chr, start, ref, alt fields
@cyenyxe cyenyxe modified the milestone: 2.0-beta2 Feb 25, 2017
@jmmut jmmut deleted the feature/population-stats branch February 28, 2017 15:00
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.

2 participants