{"action":"created","comment":{"url":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/comments/68030371","id":68030371,"diff_hunk":"@@ -0,0 +1,175 @@\n+/*\n+ * The MIT License\n+ *\n+ * Copyright (c) 2016 Fulcrum Genomics LLC\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in\n+ * all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+ * THE SOFTWARE.\n+ */\n+\n+package dagr.tasks\n+\n+import dagr.core.tasksystem.{Pipeline, Task}\n+\n+import scala.collection.mutable.ListBuffer\n+\n+/**\n+ * Provides a set of objects and classes for composing Scatter/Gather tasks and pipelines.\n+ */\n+object ScatterGather {\n+\n+  /**\n+   * A type of Task that, when run, partitions some kind of input, and produces one or more outputs\n+   * of type A that should be parallelized (scattered) over.\n+   */\n+  trait Scatterer[A] extends Task {\n+    def scatters: Seq[A]\n+  }\n+\n+  /** Provides a factory method to create a Scatter object from a Scatterer. */\n+  object Scatter {\n+    def apply[A](scatterer: Scatterer[A]): Scatter[A] = {\n+      new ScattererWrapper(scatterer)\n+    }\n+  }\n+\n+","path":"tasks/src/main/scala/dagr/tasks/ScatterGather.scala","position":51,"original_position":51,"commit_id":"bd9faa4f49e17b2aa0849db3b06a6cbcf7421432","original_commit_id":"8070ac5645e76d4e800af11d5247641ba312e63e","user":{"login":"tfenne","id":1609210,"avatar_url":"https://avatars.githubusercontent.com/u/1609210?v=3","gravatar_id":"","url":"https://api.github.com/users/tfenne","html_url":"https://github.com/tfenne","followers_url":"https://api.github.com/users/tfenne/followers","following_url":"https://api.github.com/users/tfenne/following{/other_user}","gists_url":"https://api.github.com/users/tfenne/gists{/gist_id}","starred_url":"https://api.github.com/users/tfenne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfenne/subscriptions","organizations_url":"https://api.github.com/users/tfenne/orgs","repos_url":"https://api.github.com/users/tfenne/repos","events_url":"https://api.github.com/users/tfenne/events{/privacy}","received_events_url":"https://api.github.com/users/tfenne/received_events","type":"User","site_admin":false},"body":"Hah - this is actually on _purpose_!  When I have lots of little classes and traits together in a file I like to have a couple of blank lines between them to make it easier to see where one ends and the next one begins.","created_at":"2016-06-22T10:32:33Z","updated_at":"2016-06-22T10:32:33Z","html_url":"https://github.com/fulcrumgenomics/dagr/pull/171#discussion_r68030371","pull_request_url":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/comments/68030371"},"html":{"href":"https://github.com/fulcrumgenomics/dagr/pull/171#discussion_r68030371"},"pull_request":{"href":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/171","id":74693756,"html_url":"https://github.com/fulcrumgenomics/dagr/pull/171","diff_url":"https://github.com/fulcrumgenomics/dagr/pull/171.diff","patch_url":"https://github.com/fulcrumgenomics/dagr/pull/171.patch","issue_url":"https://api.github.com/repos/fulcrumgenomics/dagr/issues/171","number":171,"state":"open","locked":false,"title":"WIP: a different approach to scatter/gather","user":{"login":"tfenne","id":1609210,"avatar_url":"https://avatars.githubusercontent.com/u/1609210?v=3","gravatar_id":"","url":"https://api.github.com/users/tfenne","html_url":"https://github.com/tfenne","followers_url":"https://api.github.com/users/tfenne/followers","following_url":"https://api.github.com/users/tfenne/following{/other_user}","gists_url":"https://api.github.com/users/tfenne/gists{/gist_id}","starred_url":"https://api.github.com/users/tfenne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfenne/subscriptions","organizations_url":"https://api.github.com/users/tfenne/orgs","repos_url":"https://api.github.com/users/tfenne/repos","events_url":"https://api.github.com/users/tfenne/events{/privacy}","received_events_url":"https://api.github.com/users/tfenne/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-21T22:05:06Z","updated_at":"2016-06-22T10:32:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2ef582efa8fcc7d8dc0adddcad920def57b5487","assignee":{"login":"tfenne","id":1609210,"avatar_url":"https://avatars.githubusercontent.com/u/1609210?v=3","gravatar_id":"","url":"https://api.github.com/users/tfenne","html_url":"https://github.com/tfenne","followers_url":"https://api.github.com/users/tfenne/followers","following_url":"https://api.github.com/users/tfenne/following{/other_user}","gists_url":"https://api.github.com/users/tfenne/gists{/gist_id}","starred_url":"https://api.github.com/users/tfenne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfenne/subscriptions","organizations_url":"https://api.github.com/users/tfenne/orgs","repos_url":"https://api.github.com/users/tfenne/repos","events_url":"https://api.github.com/users/tfenne/events{/privacy}","received_events_url":"https://api.github.com/users/tfenne/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/171/commits","review_comments_url":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/171/comments","review_comment_url":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fulcrumgenomics/dagr/issues/171/comments","statuses_url":"https://api.github.com/repos/fulcrumgenomics/dagr/statuses/bd9faa4f49e17b2aa0849db3b06a6cbcf7421432","head":{"label":"fulcrumgenomics:tf_scatter_gather","ref":"tf_scatter_gather","sha":"bd9faa4f49e17b2aa0849db3b06a6cbcf7421432","user":{"login":"fulcrumgenomics","id":13546013,"avatar_url":"https://avatars.githubusercontent.com/u/13546013?v=3","gravatar_id":"","url":"https://api.github.com/users/fulcrumgenomics","html_url":"https://github.com/fulcrumgenomics","followers_url":"https://api.github.com/users/fulcrumgenomics/followers","following_url":"https://api.github.com/users/fulcrumgenomics/following{/other_user}","gists_url":"https://api.github.com/users/fulcrumgenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/fulcrumgenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulcrumgenomics/subscriptions","organizations_url":"https://api.github.com/users/fulcrumgenomics/orgs","repos_url":"https://api.github.com/users/fulcrumgenomics/repos","events_url":"https://api.github.com/users/fulcrumgenomics/events{/privacy}","received_events_url":"https://api.github.com/users/fulcrumgenomics/received_events","type":"Organization","site_admin":false},"repo":{"id":50968977,"name":"dagr","full_name":"fulcrumgenomics/dagr","owner":{"login":"fulcrumgenomics","id":13546013,"avatar_url":"https://avatars.githubusercontent.com/u/13546013?v=3","gravatar_id":"","url":"https://api.github.com/users/fulcrumgenomics","html_url":"https://github.com/fulcrumgenomics","followers_url":"https://api.github.com/users/fulcrumgenomics/followers","following_url":"https://api.github.com/users/fulcrumgenomics/following{/other_user}","gists_url":"https://api.github.com/users/fulcrumgenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/fulcrumgenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulcrumgenomics/subscriptions","organizations_url":"https://api.github.com/users/fulcrumgenomics/orgs","repos_url":"https://api.github.com/users/fulcrumgenomics/repos","events_url":"https://api.github.com/users/fulcrumgenomics/events{/privacy}","received_events_url":"https://api.github.com/users/fulcrumgenomics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fulcrumgenomics/dagr","description":"A scala based DSL and framework for writing and executing bioinformatics pipelines as Directed Acyclic GRaphs","fork":false,"url":"https://api.github.com/repos/fulcrumgenomics/dagr","forks_url":"https://api.github.com/repos/fulcrumgenomics/dagr/forks","keys_url":"https://api.github.com/repos/fulcrumgenomics/dagr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fulcrumgenomics/dagr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fulcrumgenomics/dagr/teams","hooks_url":"https://api.github.com/repos/fulcrumgenomics/dagr/hooks","issue_events_url":"https://api.github.com/repos/fulcrumgenomics/dagr/issues/events{/number}","events_url":"https://api.github.com/repos/fulcrumgenomics/dagr/events","assignees_url":"https://api.github.com/repos/fulcrumgenomics/dagr/assignees{/user}","branches_url":"https://api.github.com/repos/fulcrumgenomics/dagr/branches{/branch}","tags_url":"https://api.github.com/repos/fulcrumgenomics/dagr/tags","blobs_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/refs{/sha}","trees_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fulcrumgenomics/dagr/statuses/{sha}","languages_url":"https://api.github.com/repos/fulcrumgenomics/dagr/languages","stargazers_url":"https://api.github.com/repos/fulcrumgenomics/dagr/stargazers","contributors_url":"https://api.github.com/repos/fulcrumgenomics/dagr/contributors","subscribers_url":"https://api.github.com/repos/fulcrumgenomics/dagr/subscribers","subscription_url":"https://api.github.com/repos/fulcrumgenomics/dagr/subscription","commits_url":"https://api.github.com/repos/fulcrumgenomics/dagr/commits{/sha}","git_commits_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/commits{/sha}","comments_url":"https://api.github.com/repos/fulcrumgenomics/dagr/comments{/number}","issue_comment_url":"https://api.github.com/repos/fulcrumgenomics/dagr/issues/comments{/number}","contents_url":"https://api.github.com/repos/fulcrumgenomics/dagr/contents/{+path}","compare_url":"https://api.github.com/repos/fulcrumgenomics/dagr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fulcrumgenomics/dagr/merges","archive_url":"https://api.github.com/repos/fulcrumgenomics/dagr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fulcrumgenomics/dagr/downloads","issues_url":"https://api.github.com/repos/fulcrumgenomics/dagr/issues{/number}","pulls_url":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls{/number}","milestones_url":"https://api.github.com/repos/fulcrumgenomics/dagr/milestones{/number}","notifications_url":"https://api.github.com/repos/fulcrumgenomics/dagr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fulcrumgenomics/dagr/labels{/name}","releases_url":"https://api.github.com/repos/fulcrumgenomics/dagr/releases{/id}","deployments_url":"https://api.github.com/repos/fulcrumgenomics/dagr/deployments","created_at":"2016-02-03T02:46:27Z","updated_at":"2016-05-17T12:46:48Z","pushed_at":"2016-06-21T22:29:34Z","git_url":"git://github.com/fulcrumgenomics/dagr.git","ssh_url":"git@github.com:fulcrumgenomics/dagr.git","clone_url":"https://github.com/fulcrumgenomics/dagr.git","svn_url":"https://github.com/fulcrumgenomics/dagr","homepage":"","size":3557,"stargazers_count":9,"watchers_count":9,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":36,"forks":1,"open_issues":36,"watchers":9,"default_branch":"master"}},"base":{"label":"fulcrumgenomics:master","ref":"master","sha":"00e573dd6000ea234a33d40686ccace118d8f825","user":{"login":"fulcrumgenomics","id":13546013,"avatar_url":"https://avatars.githubusercontent.com/u/13546013?v=3","gravatar_id":"","url":"https://api.github.com/users/fulcrumgenomics","html_url":"https://github.com/fulcrumgenomics","followers_url":"https://api.github.com/users/fulcrumgenomics/followers","following_url":"https://api.github.com/users/fulcrumgenomics/following{/other_user}","gists_url":"https://api.github.com/users/fulcrumgenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/fulcrumgenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulcrumgenomics/subscriptions","organizations_url":"https://api.github.com/users/fulcrumgenomics/orgs","repos_url":"https://api.github.com/users/fulcrumgenomics/repos","events_url":"https://api.github.com/users/fulcrumgenomics/events{/privacy}","received_events_url":"https://api.github.com/users/fulcrumgenomics/received_events","type":"Organization","site_admin":false},"repo":{"id":50968977,"name":"dagr","full_name":"fulcrumgenomics/dagr","owner":{"login":"fulcrumgenomics","id":13546013,"avatar_url":"https://avatars.githubusercontent.com/u/13546013?v=3","gravatar_id":"","url":"https://api.github.com/users/fulcrumgenomics","html_url":"https://github.com/fulcrumgenomics","followers_url":"https://api.github.com/users/fulcrumgenomics/followers","following_url":"https://api.github.com/users/fulcrumgenomics/following{/other_user}","gists_url":"https://api.github.com/users/fulcrumgenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/fulcrumgenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulcrumgenomics/subscriptions","organizations_url":"https://api.github.com/users/fulcrumgenomics/orgs","repos_url":"https://api.github.com/users/fulcrumgenomics/repos","events_url":"https://api.github.com/users/fulcrumgenomics/events{/privacy}","received_events_url":"https://api.github.com/users/fulcrumgenomics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fulcrumgenomics/dagr","description":"A scala based DSL and framework for writing and executing bioinformatics pipelines as Directed Acyclic GRaphs","fork":false,"url":"https://api.github.com/repos/fulcrumgenomics/dagr","forks_url":"https://api.github.com/repos/fulcrumgenomics/dagr/forks","keys_url":"https://api.github.com/repos/fulcrumgenomics/dagr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fulcrumgenomics/dagr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fulcrumgenomics/dagr/teams","hooks_url":"https://api.github.com/repos/fulcrumgenomics/dagr/hooks","issue_events_url":"https://api.github.com/repos/fulcrumgenomics/dagr/issues/events{/number}","events_url":"https://api.github.com/repos/fulcrumgenomics/dagr/events","assignees_url":"https://api.github.com/repos/fulcrumgenomics/dagr/assignees{/user}","branches_url":"https://api.github.com/repos/fulcrumgenomics/dagr/branches{/branch}","tags_url":"https://api.github.com/repos/fulcrumgenomics/dagr/tags","blobs_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/refs{/sha}","trees_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fulcrumgenomics/dagr/statuses/{sha}","languages_url":"https://api.github.com/repos/fulcrumgenomics/dagr/languages","stargazers_url":"https://api.github.com/repos/fulcrumgenomics/dagr/stargazers","contributors_url":"https://api.github.com/repos/fulcrumgenomics/dagr/contributors","subscribers_url":"https://api.github.com/repos/fulcrumgenomics/dagr/subscribers","subscription_url":"https://api.github.com/repos/fulcrumgenomics/dagr/subscription","commits_url":"https://api.github.com/repos/fulcrumgenomics/dagr/commits{/sha}","git_commits_url":"https://api.github.com/repos/fulcrumgenomics/dagr/git/commits{/sha}","comments_url":"https://api.github.com/repos/fulcrumgenomics/dagr/comments{/number}","issue_comment_url":"https://api.github.com/repos/fulcrumgenomics/dagr/issues/comments{/number}","contents_url":"https://api.github.com/repos/fulcrumgenomics/dagr/contents/{+path}","compare_url":"https://api.github.com/repos/fulcrumgenomics/dagr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fulcrumgenomics/dagr/merges","archive_url":"https://api.github.com/repos/fulcrumgenomics/dagr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fulcrumgenomics/dagr/downloads","issues_url":"https://api.github.com/repos/fulcrumgenomics/dagr/issues{/number}","pulls_url":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls{/number}","milestones_url":"https://api.github.com/repos/fulcrumgenomics/dagr/milestones{/number}","notifications_url":"https://api.github.com/repos/fulcrumgenomics/dagr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fulcrumgenomics/dagr/labels{/name}","releases_url":"https://api.github.com/repos/fulcrumgenomics/dagr/releases{/id}","deployments_url":"https://api.github.com/repos/fulcrumgenomics/dagr/deployments","created_at":"2016-02-03T02:46:27Z","updated_at":"2016-05-17T12:46:48Z","pushed_at":"2016-06-21T22:29:34Z","git_url":"git://github.com/fulcrumgenomics/dagr.git","ssh_url":"git@github.com:fulcrumgenomics/dagr.git","clone_url":"https://github.com/fulcrumgenomics/dagr.git","svn_url":"https://github.com/fulcrumgenomics/dagr","homepage":"","size":3557,"stargazers_count":9,"watchers_count":9,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":36,"forks":1,"open_issues":36,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/171"},"html":{"href":"https://github.com/fulcrumgenomics/dagr/pull/171"},"issue":{"href":"https://api.github.com/repos/fulcrumgenomics/dagr/issues/171"},"comments":{"href":"https://api.github.com/repos/fulcrumgenomics/dagr/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fulcrumgenomics/dagr/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/fulcrumgenomics/dagr/statuses/bd9faa4f49e17b2aa0849db3b06a6cbcf7421432"}}}}
{"actor":{"display_login":"tfenne"}}