Commit Graph

12710 Commits (80ed1869719ce0da4e7a29afa917a16162b2fff2)

Author SHA1 Message Date
Geraldine Van der Auwera 80ed186971 More detailed labels for arguments in the gakdocs (requested by David) 2013-08-16 14:25:53 -04:00
Geraldine Van der Auwera 3841635fcb Changed 'depreciated' to the more correct 'deprecated' 2013-08-16 13:06:41 -04:00
Eric Banks 1a5e4cc4e7 Merge pull request #375 from broadinstitute/rp_queue_jobreport_rscript
Something changed with the ggtitle syntax in the latest version of ggplo...
2013-08-14 12:48:42 -07:00
Eric Banks 7f48f991cc Merge pull request #376 from broadinstitute/gg_AR_gatkdocfix
Made AR an Advanced argument...
2013-08-14 12:48:05 -07:00
Geraldine Van der Auwera 19a4bf9ff0 made AR an Advanced argument to discourage basic users from fiddling with it 2013-08-14 14:46:56 -04:00
Ryan Poplin d4ac183580 Something changed with the ggtitle syntax in the latest version of ggplot2. 2013-08-14 14:40:03 -04:00
Eric Banks 928a9779db Merge pull request #374 from broadinstitute/mc_dpp_updates
Updated Full Processing Pipeline
2013-08-14 04:50:25 -07:00
Mauricio Carneiro 765f5450ac Updated Full Processing Pipeline
* add interleaved fastq option to sam2fastq
    * add optional adapter trimming path
    * add "skip_revert" option to skip reverting the bams (sometimes useful -- hidden parameter)
    * add a walker that reads in one bam file and outputs N bam files, one for each read group in the original bam. This is a very important step in any BAM reprocessing pipeline.

I am using this new pipeline to process the CEU and YRI PCR Free WGS
trios.
2013-08-13 23:35:32 -04:00
Eric Banks 69e78efeae Merge pull request #366 from broadinstitute/gg_gatkdocfixes
More gatkdoc fixes
2013-08-13 04:52:03 -07:00
Eric Banks bcf9a1cda5 Merge pull request #370 from broadinstitute/rp_dont_output_filtered_variants_in_VQSR
Adding mode to VQSR to not output variant records that are filtered out ...
2013-08-12 12:01:50 -07:00
Eric Banks 4aeb37e1e7 Merge pull request #373 from broadinstitute/rp_vqsr_numbad_docs
Cleaning up help text for the -numBad argument.
2013-08-12 10:56:46 -07:00
Ryan Poplin a45011d7e7 Adding mode to VQSR to not output variant records that are filtered out after applying the recalibration. Necessary for 1000G calling. 2013-08-12 11:22:59 -04:00
Ryan Poplin 59f56bef30 Cleaning up help text for the -numBad argument. 2013-08-12 09:51:56 -04:00
Eric Banks 163d796ae7 Merge pull request #372 from broadinstitute/eb_add_zook_reviews_to_script
Forgot to add this in the previous commit to add J Zook's reviews
2013-08-12 06:51:31 -07:00
Eric Banks b86742903b Forgot to add this in the previous commit to add J Zook's reviews 2013-08-12 09:50:41 -04:00
Eric Banks a2134a92fb Merge pull request #371 from broadinstitute/eb_add_zook_reviews
Adding Justin Zook's review file to the KB
2013-08-12 06:45:11 -07:00
Eric Banks 8071862af8 Adding Justin Zook's review file to the KB 2013-08-12 09:37:46 -04:00
Geraldine Van der Auwera a09831489b Disabled emission of doc URLs for external codecs to avoid broken links 2013-08-10 10:04:04 -07:00
Geraldine Van der Auwera 4d20c71e09 Improvements to various gatkdocs
- Make -rod required
    - Document that contaminationFile is currently not functional with HC
    - Document liftover process more clearly
    - Document VariantEval combinations of ST and VE that are incompatible
    - Added a caveat about using MVLR from HC and UG.
    - Added caveat about not using -mte with -nt
    - Clarified masking options
    - Fixed docs based on Erics comments
2013-08-10 10:01:31 -07:00
Mark DePristo 8b5178bd59 Merge pull request #368 from broadinstitute/md_incremental_caller
UG and script changes to make accessing the value of joint calling easier
2013-08-09 08:21:03 -07:00
Mark DePristo 415aee2be2 Two scripts to enable assessment of the value of joint calling and the effectiveness of the joint caller 2013-08-09 11:00:15 -04:00
Mark DePristo b7d1096ced Added onlyEmitSamples argument to UnifiedGenotyper
-- When provided, this argument causes us to only emit the selected samples into the VCF.  No INFO field annotations (AC for example) or other features are modified.  It's current primary use is for efficiently evaluating joint calling.
-- Add integration test for onlyEmitSamples
2013-08-09 11:00:15 -04:00
Ryan Poplin cf5dd58303 Merge pull request #369 from broadinstitute/eb_small_updates_to_kb
Various small improvements to the KB assessments.
2013-08-09 06:09:27 -07:00
Eric Banks dd85646067 Various small improvements to the KB assessments.
1) TP reviews with 0/0 genotypes were killing those sites and making them appear as assessed FPs even when correctly called!
Fixed this by changing the logic in the assessor to allow discordant genotypes through as FPs.
Also, isMonomorphic() in the MongoGenotype needs to check whether the genotype is discordant.
Added unit test for this case.

2) Minor code cleanup in the Assessor class.
The most important being the renaming of isUsableCall() to isNotUsableCall() since that's what it is returning.
2013-08-08 23:37:45 -04:00
Mark DePristo ccf0df0fea Misc. debugging functionality to FS calculation (disabled by default) 2013-08-08 12:06:23 -04:00
kshakir 1f86cf13d1 Merge pull request #359 from lbergelson/lb_relax_add_parameter
Trivial update to QScript.scala
2013-08-07 06:45:01 -07:00
Eric Banks 6d67795916 Merge pull request #365 from broadinstitute/md_kb_improvements
Fix multiple critical bugs in NA12878 KB
2013-08-07 06:38:21 -07:00
Mark DePristo 66e1b75118 Critical bugfix for OneChunkIterator
-- Previous version used overlaps on the full GenomeLoc of the variant in the KB, which meant that deletions that didn't start in an interval would be included in an interval, which isn't the behavior of the tribble and so caused a mismatch when assessing variants in the knowledgebase
2013-08-07 08:08:37 -04:00
Mark DePristo 7aba5a2f9f Several improvements to AssessNA12878 and KB
-- Bugfix for BAMs containing reads without real (M,I,D,N) operators.  Simply needed to set validation stringency to SILENT in the read. Added a BadCigar filter to the SAMRecord stream anyway
-- Add capture all sites mode to AssessNA12878: will write all sites to the badSites VCF, regardless of whether they are bad.  It's useful if you essentially want to annotate a VCF with KB information for later analysis, such as computing ROC curves
-- Add ignore filters mode to AssessNA12878: will as expected treat all sites in the input VCF calls as PASS, even if the site has a FILTER field setting
-- Add minPNonRef argument to AssessNA12878: this will consider a site not called even if the NA12878 genotype is not 0/0 if the PLs are present and the PL for 0/0 isn't greater than this value.  It allows us to easily differentiate low confidence non-ref sites obtained via multi-sample calling from highly confident non-ref calls that might be real TP or FPs
2013-08-07 08:08:37 -04:00
Mark DePristo 00f4d767e4 Merge pull request #364 from broadinstitute/md_vqsr_improvements
Separate num Gaussians for + and - GMM in VQSR
2013-08-07 04:37:45 -07:00
Mark DePristo c21402d4af Separate num Gaussians for + and - GMM in VQSR
-- The previous approach in VQSR was to build a GMM with the same max. number of Gaussians for the positive and negative models.  However, we usually have many more positive sites than negative, so we'd prefer to use a more detailed GMM for the positive model and a less well defined model using few sites for the negative model.
-- Now the maxGaussians argument only applies to the positive model
-- This update builds a GMM for the negative model with a default 4 max gaussians (though this can be controlled via command line parameter)
-- Removes the percentBadVariants argument.  The only way to control how many variants are included in the negative model is with minNumBad
-- Reduced the minNumBad argument default to 1000 from 2500
-- Update MD5s for VQSR.  md5s changed significantly due to underlying changes in the default GMM model.  Only sites with NEGATIVE_TRAINING_LABELs and the resulting VQSLOD are different, as expected.
-- minNumBad is now numBad
-- Plot all negative training points as well, since this significantly changes our view of the GMM PDF
2013-08-07 07:36:50 -04:00
Mark DePristo 44348a3761 Merge pull request #363 from broadinstitute/md_het_docs
Better docs on the meaning of heterozygosity
2013-08-07 04:28:16 -07:00
Mark DePristo 318f7e74e4 Better docs on the meaning of heterozygosity
-- [delivers #53522209]
2013-08-07 07:27:45 -04:00
Eric Banks dd0e6409c6 Merge pull request #367 from broadinstitute/md_hc_ref_fix
Bugfix for ReferenceConfidenceModel
2013-08-06 20:37:08 -07:00
Mark DePristo 40bc7d6a9c Bugfix for ReferenceConfidenceModel
-- In the case where there's some variation to assembly and evaluate but the resulting haplotypes don't result in any called variants, the reference model would exception out with "java.lang.IllegalArgumentException: calledHaplotypes must contain the refHaplotype".  Now we detect this case and emit the standard no variation output.
-- [delivers #54625060]
2013-08-06 16:00:32 -04:00
Ryan Poplin 6dfd17122f Merge pull request #362 from broadinstitute/rp_single_sample_hc_pipeline
Adding single sample HC qscript for Mauricio.
2013-08-06 12:11:50 -07:00
Ryan Poplin ee0aba224c Adding single sample HC qscript for Mauricio. 2013-08-06 15:10:15 -04:00
Mark DePristo 81a74351fd Merge pull request #360 from broadinstitute/rp_vqsr_ordering_of_annotations_bug
Fix for the VQSR visualization script with the new ordering of annotatio...
2013-08-03 09:49:42 -07:00
Ryan Poplin a46f633bd6 Fix for the VQSR visualization script with the new ordering of annotations. 2013-08-02 19:10:45 -04:00
lbergelson af36c7ce9a Update QScript.scala
Relaxing addAll parameter type from Seq to Traversable to make it slightly more flexible.
2013-08-02 14:09:26 -04:00
Eric Banks 08a7ef6620 Merge pull request #358 from broadinstitute/md_tribble_reuse_query_stream
Rev picard to get optimized tribble feature reads
2013-08-02 10:29:39 -07:00
Mark DePristo d5dd3b23db Rev picard to get optimized tribble feature reads
-- The previous version of TribbleIndexedFeatureReader.query() would open a RandomAccessFile each time the GATK crossed a shard boundary.  When running with -L wex.intervals (or any time there were lots of intervals) we'd be opening and closing enormous numbers of files, radically slowing down the GATK.  With these patched versions of Tribble we see something like the following performance improvements:

SelectVariants with -L wex.intervals on my local machine against non-local file

pre-patch => 3 hours
post-patch => 30 seconds
2013-08-02 10:31:36 -04:00
jmthibault79 9316a70d1e Merge pull request #355 from broadinstitute/eb_add_error_handling_to_kb
Added error handling to the newly added sites iterator so that it doesn't NPE when it encounters a bad record
2013-08-02 06:40:41 -07:00
Eric Banks ae5fc4c726 Merge pull request #356 from broadinstitute/mc_refbias
Reference bias walker
2013-08-02 06:30:56 -07:00
Eric Banks 8a1e2d58ef Merge pull request #357 from broadinstitute/mc_resort_haplotypes
Better caching for the HaplotypeCaller (significant speed up on NA12878 chr20!!)
2013-08-02 06:29:41 -07:00
Mauricio Carneiro 3e75262a3e Reference bias walker
Calculates reference bias based on the AD genotype field instead of AB. This is slightly more meaningful for indels and still a good estimator for snps.
2013-08-02 01:44:57 -04:00
Mauricio Carneiro 285ab2ac62 Better caching for the HaplotypeCaller
Problem
-------
Caching strategy is incompatible with the current sorting of the haplotypes, and is rendering the cache nearly useless.

Before the PairHMM updates, we realized that a lexicographically sorted list of haplotypes would optimize the use of the cache. This was only true until we've added the initial condition to the first row of the deletion matrix, which depends on the length of the haplotype. Because of that, every time the haplotypes differ in length, the cache has to be wiped. A lexicographic sorting of the haplotypes will put different lengths haplotypes clustered together therefore wasting *tons* of re-compute.

Solution
-------
Very simple. Sort the haplotypes by LENGTH and then in lexicographic order.
2013-08-02 01:27:29 -04:00
Eric Banks 0b062e7f22 Merge pull request #354 from broadinstitute/eb_fix_rr_count_encoding
Two reduce reads updates/fixes
2013-08-01 12:34:19 -07:00
Eric Banks e5be038f1a Added error handling to the newly added sites iterator so that it doesn't NPE when it encounters a bad record.
Added a unit test that exactly replicates the behavior.
2013-08-01 15:25:20 -04:00
Eric Banks 1e396af4d0 Two reduce reads updates/fixes:
1. Removing old legacy code that was capping the positional depth for reduced reads to 127.

Unfortunately this cap affectively performs biased down-sampling and throws off e.g. FS numbers.
Added end to end unit test that depth counts in RR can be higher than max byte.

Some md5s change in the RR tests because depths are now (correctly) no longer capped at 127.

2. Down-sampling in ReduceReads was not safe as it could remove het compressed consensus reads.

Refactored it so that it can only remove non-consensus reads.
2013-08-01 14:34:59 -04:00