-
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
Job Add labels to BQ operations from GATK (Issues-199) #7115
Merged
Merged
Changes from 10 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5af6876
Added labels to Big Query Job
81fa02d
Update BigQueryUtilsUnitTest.java
dc8057d
Cleaning up code
c8dac99
Added labels to Big Query Job
a69f802
Update BigQueryUtilsUnitTest.java
3d6911f
Cleaning up code
f032895
Change piplines labels to null
5d96c06
Merge branch 'ms_add_labels_to_BQ' of https://github.com/broadinstitu…
fccedcc
update labels
10d39e9
Clean code
9d6a339
Update date labels in test class
77d6504
Update labels with out ':' and edit comment and code for PR
b20c5aa
Remove underscores from labels
f7fa9a3
Shorten label
469d4ec
test GRADLE
e1cc30c
Format code
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,7 +174,7 @@ public void traverse() { | |
} | ||
// create the query string | ||
String q = "SELECT " + StringUtils.join(SchemaUtils.COHORT_FIELDS,",") + " FROM " + cohortTableRef.getFQTableName() + " ORDER BY " + SchemaUtils.LOCATION_FIELD_NAME; | ||
TableResult tr = BigQueryUtils.executeQuery(BigQueryUtils.getBigQueryEndPoint(), cohortTableRef.tableProject, cohortTableRef.tableDataset, q); | ||
TableResult tr = BigQueryUtils.executeQuery(BigQueryUtils.getBigQueryEndPoint(), cohortTableRef.tableProject, cohortTableRef.tableDataset, q, null); | ||
createVariantsFromSortedTableResults(tr, fullVqsLodMap, fullYngMap, noFilteringRequested); | ||
break; | ||
} | ||
|
@@ -328,8 +328,8 @@ private double getQUALapproxFromSampleRecord(GenericRecord sampleRecord) { | |
// Non-AS QualApprox (used for qualapprox filter) is simply the sum of the AS values (see GnarlyGenotyper) | ||
if (s.contains("|")) { | ||
|
||
// take the sum of all non-* alleles | ||
// basically if our alleles are '*,T' or 'G,*' we want to ignore the * part | ||
// take the average of all non-* alleles | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did this change? I don't think it's an average There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure, why that changed |
||
// basically if our alleles are '*,T' or 'G,*' we want to ignore the * part | ||
String[] alleles = sampleRecord.get(SchemaUtils.ALT_ALLELE_FIELD_NAME).toString().split(","); | ||
String[] parts = s.split("\\|"); | ||
|
||
|
@@ -389,7 +389,7 @@ private void processSampleRecordsForLocation(final long location, final Iterable | |
|
||
totalAsQualApprox += getQUALapproxFromSampleRecord(sampleRecord); | ||
|
||
// hasSnpAllele should be set to true if any sample has at least one snp (gnarly definition here) | ||
// hasSnpAllele should be set to true if any sample has at least one snp (gnarly definition here) | ||
boolean thisHasSnp = vc.getAlternateAlleles().stream().anyMatch(allele -> allele != Allele.SPAN_DEL && allele.length() == vc.getReference().length()); | ||
// logger.info("\t" + contig + ":" + currentPosition + ": calculated thisHasSnp of " + thisHasSnp + " from " + vc.getAlternateAlleles() + " and ref " + vc.getReference()); | ||
hasSnpAllele = hasSnpAllele || thisHasSnp; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Change this back to the invocation that supplied the projectId, but also includes your
null
for the labels. e.g.