{"action":"created","comment":{"url":"https://api.github.com/repos/broadinstitute/picard/pulls/comments/47920960","id":47920960,"diff_hunk":"@@ -0,0 +1,171 @@\n+package picard.analysis;\n+\n+import htsjdk.samtools.SAMException;\n+import htsjdk.samtools.SAMFileHeader;\n+import htsjdk.samtools.SAMFileWriter;\n+import htsjdk.samtools.SAMFileWriterFactory;\n+import htsjdk.samtools.SAMReadGroupRecord;\n+import htsjdk.samtools.SAMRecord;\n+import htsjdk.samtools.SAMRecordSetBuilder;\n+import htsjdk.samtools.metrics.MetricsFile;\n+import htsjdk.variant.utils.SAMSequenceDictionaryExtractor;\n+import org.testng.Assert;\n+import org.testng.annotations.BeforeTest;\n+import org.testng.annotations.DataProvider;\n+import org.testng.annotations.Test;\n+import picard.cmdline.CommandLineProgramTest;\n+import picard.sam.SortSam;\n+\n+import java.io.*;\n+import java.util.Random;\n+\n+/**\n+ * Tests for methods in CollectWgsMetrics\n+ *\n+ *\n+ * @author Kylee Bergin\n+ */\n+\n+public class CollectWgsMetricsTest extends CommandLineProgramTest {\n+\n+    private final static File DICT_DIR = new File(\"testdata/picard/sam/CollectGcBiasMetrics/\");","path":"src/tests/java/picard/analysis/CollectWgsMetricsTest.java","position":31,"original_position":31,"commit_id":"e2eda4d32ff26f16a7114ccf15b745228e405c91","original_commit_id":"e2eda4d32ff26f16a7114ccf15b745228e405c91","user":{"login":"davidbenjamin","id":8438890,"avatar_url":"https://avatars.githubusercontent.com/u/8438890?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbenjamin","html_url":"https://github.com/davidbenjamin","followers_url":"https://api.github.com/users/davidbenjamin/followers","following_url":"https://api.github.com/users/davidbenjamin/following{/other_user}","gists_url":"https://api.github.com/users/davidbenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbenjamin/subscriptions","organizations_url":"https://api.github.com/users/davidbenjamin/orgs","repos_url":"https://api.github.com/users/davidbenjamin/repos","events_url":"https://api.github.com/users/davidbenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/davidbenjamin/received_events","type":"User","site_admin":false},"body":"Make this variable name more descriptive -- what kind of dict?","created_at":"2015-12-17T15:48:04Z","updated_at":"2015-12-17T15:48:04Z","html_url":"https://github.com/broadinstitute/picard/pull/355#discussion_r47920960","pull_request_url":"https://api.github.com/repos/broadinstitute/picard/pulls/355","_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/picard/pulls/comments/47920960"},"html":{"href":"https://github.com/broadinstitute/picard/pull/355#discussion_r47920960"},"pull_request":{"href":"https://api.github.com/repos/broadinstitute/picard/pulls/355"}}},"pull_request":{"url":"https://api.github.com/repos/broadinstitute/picard/pulls/355","id":52900262,"html_url":"https://github.com/broadinstitute/picard/pull/355","diff_url":"https://github.com/broadinstitute/picard/pull/355.diff","patch_url":"https://github.com/broadinstitute/picard/pull/355.patch","issue_url":"https://api.github.com/repos/broadinstitute/picard/issues/355","number":355,"state":"open","locked":false,"title":"Add Theoretical Het SNP Sensitivity metric to picard tools","user":{"login":"kbergin","id":9449764,"avatar_url":"https://avatars.githubusercontent.com/u/9449764?v=3","gravatar_id":"","url":"https://api.github.com/users/kbergin","html_url":"https://github.com/kbergin","followers_url":"https://api.github.com/users/kbergin/followers","following_url":"https://api.github.com/users/kbergin/following{/other_user}","gists_url":"https://api.github.com/users/kbergin/gists{/gist_id}","starred_url":"https://api.github.com/users/kbergin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbergin/subscriptions","organizations_url":"https://api.github.com/users/kbergin/orgs","repos_url":"https://api.github.com/users/kbergin/repos","events_url":"https://api.github.com/users/kbergin/events{/privacy}","received_events_url":"https://api.github.com/users/kbergin/received_events","type":"User","site_admin":false},"body":"Theoretical Het SNP Sensitivity and Het SNP Sensitivity Q Score metrics added to HS metrics, WGS metrics, Targeted PCR metrics, and Sampled WGS metrics (RapidQC). Added tests for each in Theoretical Het Test and added this metric to the respective tests for each collector. \r\n\r\nThe length of time added by the calculation of the Theoretical Het Sensitivity metrics is laid out in the table below. These times are from running the unit tests on full sized metrics files in IntelliJ with -Xmx1G as a VM setting. The part that takes the longest is the random sampling. In the standard settings in the code it performs 10,000 samplings, which takes longer with less data in the targeted metrics. The standards in the tests are 1,000 samplings so that the unit tests are not unnecessarily long.\r\n \r\nSample Type | Time \r\n--- | --- \r\nWGS | 7 seconds\r\nHybrid Selection | 1 minute 20 seconds\r\nTargeted PCR | 1 minute 2 seconds\r\nWGS Sampled | 9 seconds\r\n","created_at":"2015-12-07T21:02:12Z","updated_at":"2015-12-17T15:48:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bc6717a19d8fcb3ac64e2124a2e7dee1b9c96f8","assignee":{"login":"davidbenjamin","id":8438890,"avatar_url":"https://avatars.githubusercontent.com/u/8438890?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbenjamin","html_url":"https://github.com/davidbenjamin","followers_url":"https://api.github.com/users/davidbenjamin/followers","following_url":"https://api.github.com/users/davidbenjamin/following{/other_user}","gists_url":"https://api.github.com/users/davidbenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbenjamin/subscriptions","organizations_url":"https://api.github.com/users/davidbenjamin/orgs","repos_url":"https://api.github.com/users/davidbenjamin/repos","events_url":"https://api.github.com/users/davidbenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/davidbenjamin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/broadinstitute/picard/pulls/355/commits","review_comments_url":"https://api.github.com/repos/broadinstitute/picard/pulls/355/comments","review_comment_url":"https://api.github.com/repos/broadinstitute/picard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/broadinstitute/picard/issues/355/comments","statuses_url":"https://api.github.com/repos/broadinstitute/picard/statuses/e2eda4d32ff26f16a7114ccf15b745228e405c91","head":{"label":"broadinstitute:db_het_snp","ref":"db_het_snp","sha":"e2eda4d32ff26f16a7114ccf15b745228e405c91","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":18225913,"name":"picard","full_name":"broadinstitute/picard","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadinstitute/picard","description":"A set of tools (in Java) for working with next generation sequencing data in the BAM (http://samtools.github.io/hts-specs) format.","fork":false,"url":"https://api.github.com/repos/broadinstitute/picard","forks_url":"https://api.github.com/repos/broadinstitute/picard/forks","keys_url":"https://api.github.com/repos/broadinstitute/picard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/picard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/picard/teams","hooks_url":"https://api.github.com/repos/broadinstitute/picard/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/picard/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/picard/events","assignees_url":"https://api.github.com/repos/broadinstitute/picard/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/picard/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/picard/tags","blobs_url":"https://api.github.com/repos/broadinstitute/picard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/picard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/picard/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/picard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/picard/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/picard/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/picard/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/picard/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/picard/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/picard/subscription","commits_url":"https://api.github.com/repos/broadinstitute/picard/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/picard/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/picard/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/picard/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/picard/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/picard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/picard/merges","archive_url":"https://api.github.com/repos/broadinstitute/picard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/picard/downloads","issues_url":"https://api.github.com/repos/broadinstitute/picard/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/picard/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/picard/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/picard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/picard/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/picard/releases{/id}","created_at":"2014-03-28T20:43:35Z","updated_at":"2015-12-16T02:23:05Z","pushed_at":"2015-12-16T18:21:31Z","git_url":"git://github.com/broadinstitute/picard.git","ssh_url":"git@github.com:broadinstitute/picard.git","clone_url":"https://github.com/broadinstitute/picard.git","svn_url":"https://github.com/broadinstitute/picard","homepage":"http://broadinstitute.github.io/picard/","size":54019,"stargazers_count":138,"watchers_count":138,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":92,"mirror_url":null,"open_issues_count":51,"forks":92,"open_issues":51,"watchers":138,"default_branch":"master"}},"base":{"label":"broadinstitute:master","ref":"master","sha":"6e2dfa9dd0bda3fe8bface92483251db2314a58c","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":18225913,"name":"picard","full_name":"broadinstitute/picard","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadinstitute/picard","description":"A set of tools (in Java) for working with next generation sequencing data in the BAM (http://samtools.github.io/hts-specs) format.","fork":false,"url":"https://api.github.com/repos/broadinstitute/picard","forks_url":"https://api.github.com/repos/broadinstitute/picard/forks","keys_url":"https://api.github.com/repos/broadinstitute/picard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/picard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/picard/teams","hooks_url":"https://api.github.com/repos/broadinstitute/picard/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/picard/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/picard/events","assignees_url":"https://api.github.com/repos/broadinstitute/picard/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/picard/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/picard/tags","blobs_url":"https://api.github.com/repos/broadinstitute/picard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/picard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/picard/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/picard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/picard/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/picard/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/picard/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/picard/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/picard/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/picard/subscription","commits_url":"https://api.github.com/repos/broadinstitute/picard/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/picard/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/picard/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/picard/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/picard/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/picard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/picard/merges","archive_url":"https://api.github.com/repos/broadinstitute/picard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/picard/downloads","issues_url":"https://api.github.com/repos/broadinstitute/picard/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/picard/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/picard/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/picard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/picard/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/picard/releases{/id}","created_at":"2014-03-28T20:43:35Z","updated_at":"2015-12-16T02:23:05Z","pushed_at":"2015-12-16T18:21:31Z","git_url":"git://github.com/broadinstitute/picard.git","ssh_url":"git@github.com:broadinstitute/picard.git","clone_url":"https://github.com/broadinstitute/picard.git","svn_url":"https://github.com/broadinstitute/picard","homepage":"http://broadinstitute.github.io/picard/","size":54019,"stargazers_count":138,"watchers_count":138,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":92,"mirror_url":null,"open_issues_count":51,"forks":92,"open_issues":51,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/picard/pulls/355"},"html":{"href":"https://github.com/broadinstitute/picard/pull/355"},"issue":{"href":"https://api.github.com/repos/broadinstitute/picard/issues/355"},"comments":{"href":"https://api.github.com/repos/broadinstitute/picard/issues/355/comments"},"review_comments":{"href":"https://api.github.com/repos/broadinstitute/picard/pulls/355/comments"},"review_comment":{"href":"https://api.github.com/repos/broadinstitute/picard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/broadinstitute/picard/pulls/355/commits"},"statuses":{"href":"https://api.github.com/repos/broadinstitute/picard/statuses/e2eda4d32ff26f16a7114ccf15b745228e405c91"}}}}