{"action":"created","comment":{"url":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/comments/52434951","id":52434951,"diff_hunk":"@@ -33,3 +29,11 @@ getDesign <- function(measurements) {\n getSubset1Length <- function(measurements) {\n   sum(grepl(pattern = SUBSET1REGEX, x = colnames(measurements))) # returns number of column names satisfying regexp.\n }\n+\n+# to check if row  contains at least one row that contains 3 non missing values\n+rowContainsAtLeastThreeData <- function (row) {sum(!is.na(row)) > 2}\n+\n+# measurements should contains at least one valid row\n+isValidLimmaMeasurements <- function (measurements) {\n+   sum(apply(measurements, 1, rowContainsAtLeastThreeData)) > 1","path":"web-app/HeimScripts/heatmap/limmaUtils.R","position":21,"original_position":21,"commit_id":"7117fe258d7cd8bbca3957a20d105f8b97b6a752","original_commit_id":"7117fe258d7cd8bbca3957a20d105f8b97b6a752","user":{"login":"RianneJ","id":6952296,"avatar_url":"https://avatars.githubusercontent.com/u/6952296?v=3","gravatar_id":"","url":"https://api.github.com/users/RianneJ","html_url":"https://github.com/RianneJ","followers_url":"https://api.github.com/users/RianneJ/followers","following_url":"https://api.github.com/users/RianneJ/following{/other_user}","gists_url":"https://api.github.com/users/RianneJ/gists{/gist_id}","starred_url":"https://api.github.com/users/RianneJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RianneJ/subscriptions","organizations_url":"https://api.github.com/users/RianneJ/orgs","repos_url":"https://api.github.com/users/RianneJ/repos","events_url":"https://api.github.com/users/RianneJ/events{/privacy}","received_events_url":"https://api.github.com/users/RianneJ/received_events","type":"User","site_admin":false},"body":"only if there are no rows with at least 3 measurements: in that case eBayes throws an error -- > it needs at least one row with remaining degrees of freedom >0 . if only 2 cells are not NA, then df=0...","created_at":"2016-02-10T09:45:51Z","updated_at":"2016-02-10T09:45:51Z","html_url":"https://github.com/thehyve/heim-SmartR/pull/155#discussion_r52434951","pull_request_url":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/comments/52434951"},"html":{"href":"https://github.com/thehyve/heim-SmartR/pull/155#discussion_r52434951"},"pull_request":{"href":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/155","id":58776739,"html_url":"https://github.com/thehyve/heim-SmartR/pull/155","diff_url":"https://github.com/thehyve/heim-SmartR/pull/155.diff","patch_url":"https://github.com/thehyve/heim-SmartR/pull/155.patch","issue_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/155","number":155,"state":"open","locked":false,"title":"Add validation so that when marker selection table will be only calcu…","user":{"login":"rnugraha","id":2835281,"avatar_url":"https://avatars.githubusercontent.com/u/2835281?v=3","gravatar_id":"","url":"https://api.github.com/users/rnugraha","html_url":"https://github.com/rnugraha","followers_url":"https://api.github.com/users/rnugraha/followers","following_url":"https://api.github.com/users/rnugraha/following{/other_user}","gists_url":"https://api.github.com/users/rnugraha/gists{/gist_id}","starred_url":"https://api.github.com/users/rnugraha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnugraha/subscriptions","organizations_url":"https://api.github.com/users/rnugraha/orgs","repos_url":"https://api.github.com/users/rnugraha/repos","events_url":"https://api.github.com/users/rnugraha/events{/privacy}","received_events_url":"https://api.github.com/users/rnugraha/received_events","type":"User","site_admin":false},"body":"…lated against valid data","created_at":"2016-02-09T17:00:33Z","updated_at":"2016-02-10T09:45:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2acbf82c874f5f15e56276cd06dc8b4dde4b0d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/155/commits","review_comments_url":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/155/comments","review_comment_url":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/155/comments","statuses_url":"https://api.github.com/repos/thehyve/heim-SmartR/statuses/7117fe258d7cd8bbca3957a20d105f8b97b6a752","head":{"label":"thehyve:fix-limma","ref":"fix-limma","sha":"7117fe258d7cd8bbca3957a20d105f8b97b6a752","user":{"login":"thehyve","id":1502440,"avatar_url":"https://avatars.githubusercontent.com/u/1502440?v=3","gravatar_id":"","url":"https://api.github.com/users/thehyve","html_url":"https://github.com/thehyve","followers_url":"https://api.github.com/users/thehyve/followers","following_url":"https://api.github.com/users/thehyve/following{/other_user}","gists_url":"https://api.github.com/users/thehyve/gists{/gist_id}","starred_url":"https://api.github.com/users/thehyve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehyve/subscriptions","organizations_url":"https://api.github.com/users/thehyve/orgs","repos_url":"https://api.github.com/users/thehyve/repos","events_url":"https://api.github.com/users/thehyve/events{/privacy}","received_events_url":"https://api.github.com/users/thehyve/received_events","type":"Organization","site_admin":false},"repo":{"id":43434009,"name":"heim-SmartR","full_name":"thehyve/heim-SmartR","owner":{"login":"thehyve","id":1502440,"avatar_url":"https://avatars.githubusercontent.com/u/1502440?v=3","gravatar_id":"","url":"https://api.github.com/users/thehyve","html_url":"https://github.com/thehyve","followers_url":"https://api.github.com/users/thehyve/followers","following_url":"https://api.github.com/users/thehyve/following{/other_user}","gists_url":"https://api.github.com/users/thehyve/gists{/gist_id}","starred_url":"https://api.github.com/users/thehyve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehyve/subscriptions","organizations_url":"https://api.github.com/users/thehyve/orgs","repos_url":"https://api.github.com/users/thehyve/repos","events_url":"https://api.github.com/users/thehyve/events{/privacy}","received_events_url":"https://api.github.com/users/thehyve/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thehyve/heim-SmartR","description":"heim","fork":false,"url":"https://api.github.com/repos/thehyve/heim-SmartR","forks_url":"https://api.github.com/repos/thehyve/heim-SmartR/forks","keys_url":"https://api.github.com/repos/thehyve/heim-SmartR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thehyve/heim-SmartR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thehyve/heim-SmartR/teams","hooks_url":"https://api.github.com/repos/thehyve/heim-SmartR/hooks","issue_events_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/events{/number}","events_url":"https://api.github.com/repos/thehyve/heim-SmartR/events","assignees_url":"https://api.github.com/repos/thehyve/heim-SmartR/assignees{/user}","branches_url":"https://api.github.com/repos/thehyve/heim-SmartR/branches{/branch}","tags_url":"https://api.github.com/repos/thehyve/heim-SmartR/tags","blobs_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/refs{/sha}","trees_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thehyve/heim-SmartR/statuses/{sha}","languages_url":"https://api.github.com/repos/thehyve/heim-SmartR/languages","stargazers_url":"https://api.github.com/repos/thehyve/heim-SmartR/stargazers","contributors_url":"https://api.github.com/repos/thehyve/heim-SmartR/contributors","subscribers_url":"https://api.github.com/repos/thehyve/heim-SmartR/subscribers","subscription_url":"https://api.github.com/repos/thehyve/heim-SmartR/subscription","commits_url":"https://api.github.com/repos/thehyve/heim-SmartR/commits{/sha}","git_commits_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/commits{/sha}","comments_url":"https://api.github.com/repos/thehyve/heim-SmartR/comments{/number}","issue_comment_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/comments{/number}","contents_url":"https://api.github.com/repos/thehyve/heim-SmartR/contents/{+path}","compare_url":"https://api.github.com/repos/thehyve/heim-SmartR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thehyve/heim-SmartR/merges","archive_url":"https://api.github.com/repos/thehyve/heim-SmartR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thehyve/heim-SmartR/downloads","issues_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues{/number}","pulls_url":"https://api.github.com/repos/thehyve/heim-SmartR/pulls{/number}","milestones_url":"https://api.github.com/repos/thehyve/heim-SmartR/milestones{/number}","notifications_url":"https://api.github.com/repos/thehyve/heim-SmartR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thehyve/heim-SmartR/labels{/name}","releases_url":"https://api.github.com/repos/thehyve/heim-SmartR/releases{/id}","deployments_url":"https://api.github.com/repos/thehyve/heim-SmartR/deployments","created_at":"2015-09-30T13:19:44Z","updated_at":"2016-01-26T21:47:05Z","pushed_at":"2016-02-10T09:24:19Z","git_url":"git://github.com/thehyve/heim-SmartR.git","ssh_url":"git@github.com:thehyve/heim-SmartR.git","clone_url":"https://github.com/thehyve/heim-SmartR.git","svn_url":"https://github.com/thehyve/heim-SmartR","homepage":"","size":1914,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"dev"}},"base":{"label":"thehyve:dev","ref":"dev","sha":"9cf9a713e202b447f2ab77b07e38cf7c7b90b65c","user":{"login":"thehyve","id":1502440,"avatar_url":"https://avatars.githubusercontent.com/u/1502440?v=3","gravatar_id":"","url":"https://api.github.com/users/thehyve","html_url":"https://github.com/thehyve","followers_url":"https://api.github.com/users/thehyve/followers","following_url":"https://api.github.com/users/thehyve/following{/other_user}","gists_url":"https://api.github.com/users/thehyve/gists{/gist_id}","starred_url":"https://api.github.com/users/thehyve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehyve/subscriptions","organizations_url":"https://api.github.com/users/thehyve/orgs","repos_url":"https://api.github.com/users/thehyve/repos","events_url":"https://api.github.com/users/thehyve/events{/privacy}","received_events_url":"https://api.github.com/users/thehyve/received_events","type":"Organization","site_admin":false},"repo":{"id":43434009,"name":"heim-SmartR","full_name":"thehyve/heim-SmartR","owner":{"login":"thehyve","id":1502440,"avatar_url":"https://avatars.githubusercontent.com/u/1502440?v=3","gravatar_id":"","url":"https://api.github.com/users/thehyve","html_url":"https://github.com/thehyve","followers_url":"https://api.github.com/users/thehyve/followers","following_url":"https://api.github.com/users/thehyve/following{/other_user}","gists_url":"https://api.github.com/users/thehyve/gists{/gist_id}","starred_url":"https://api.github.com/users/thehyve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehyve/subscriptions","organizations_url":"https://api.github.com/users/thehyve/orgs","repos_url":"https://api.github.com/users/thehyve/repos","events_url":"https://api.github.com/users/thehyve/events{/privacy}","received_events_url":"https://api.github.com/users/thehyve/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thehyve/heim-SmartR","description":"heim","fork":false,"url":"https://api.github.com/repos/thehyve/heim-SmartR","forks_url":"https://api.github.com/repos/thehyve/heim-SmartR/forks","keys_url":"https://api.github.com/repos/thehyve/heim-SmartR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thehyve/heim-SmartR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thehyve/heim-SmartR/teams","hooks_url":"https://api.github.com/repos/thehyve/heim-SmartR/hooks","issue_events_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/events{/number}","events_url":"https://api.github.com/repos/thehyve/heim-SmartR/events","assignees_url":"https://api.github.com/repos/thehyve/heim-SmartR/assignees{/user}","branches_url":"https://api.github.com/repos/thehyve/heim-SmartR/branches{/branch}","tags_url":"https://api.github.com/repos/thehyve/heim-SmartR/tags","blobs_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/refs{/sha}","trees_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thehyve/heim-SmartR/statuses/{sha}","languages_url":"https://api.github.com/repos/thehyve/heim-SmartR/languages","stargazers_url":"https://api.github.com/repos/thehyve/heim-SmartR/stargazers","contributors_url":"https://api.github.com/repos/thehyve/heim-SmartR/contributors","subscribers_url":"https://api.github.com/repos/thehyve/heim-SmartR/subscribers","subscription_url":"https://api.github.com/repos/thehyve/heim-SmartR/subscription","commits_url":"https://api.github.com/repos/thehyve/heim-SmartR/commits{/sha}","git_commits_url":"https://api.github.com/repos/thehyve/heim-SmartR/git/commits{/sha}","comments_url":"https://api.github.com/repos/thehyve/heim-SmartR/comments{/number}","issue_comment_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues/comments{/number}","contents_url":"https://api.github.com/repos/thehyve/heim-SmartR/contents/{+path}","compare_url":"https://api.github.com/repos/thehyve/heim-SmartR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thehyve/heim-SmartR/merges","archive_url":"https://api.github.com/repos/thehyve/heim-SmartR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thehyve/heim-SmartR/downloads","issues_url":"https://api.github.com/repos/thehyve/heim-SmartR/issues{/number}","pulls_url":"https://api.github.com/repos/thehyve/heim-SmartR/pulls{/number}","milestones_url":"https://api.github.com/repos/thehyve/heim-SmartR/milestones{/number}","notifications_url":"https://api.github.com/repos/thehyve/heim-SmartR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thehyve/heim-SmartR/labels{/name}","releases_url":"https://api.github.com/repos/thehyve/heim-SmartR/releases{/id}","deployments_url":"https://api.github.com/repos/thehyve/heim-SmartR/deployments","created_at":"2015-09-30T13:19:44Z","updated_at":"2016-01-26T21:47:05Z","pushed_at":"2016-02-10T09:24:19Z","git_url":"git://github.com/thehyve/heim-SmartR.git","ssh_url":"git@github.com:thehyve/heim-SmartR.git","clone_url":"https://github.com/thehyve/heim-SmartR.git","svn_url":"https://github.com/thehyve/heim-SmartR","homepage":"","size":1914,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/155"},"html":{"href":"https://github.com/thehyve/heim-SmartR/pull/155"},"issue":{"href":"https://api.github.com/repos/thehyve/heim-SmartR/issues/155"},"comments":{"href":"https://api.github.com/repos/thehyve/heim-SmartR/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thehyve/heim-SmartR/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/thehyve/heim-SmartR/statuses/7117fe258d7cd8bbca3957a20d105f8b97b6a752"}}}}