{"action":"created","comment":{"url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments/52416949","id":52416949,"diff_hunk":"@@ -173,33 +173,34 @@ expression.readMatrix_ = function(buf) {\n \n /**\n  * Reads the TFA matrix data from the given buffer.\n- * @param {!Buffer} buf Buffer of the TFA matrix data file.\n+ * @param {string} fileName Name of the TFA matrix data file.\n  * @return {!expression.RawMatrix} The TFA matrix data as a JS object.\n  * @private\n  */\n-expression.readTFAmat_ = function(buf) {\n-  var result = {};\n-  var offset = 0;\n-  var n = buf.readInt32LE(0);\n-  var m = buf.readInt32LE(4);\n-  var lrows = buf.readInt32LE(8);\n-  var lcols = buf.readInt32LE(12);\n-  offset += 16;\n-  var rowstr = buf.toString('utf8', offset, offset + lrows); offset += lrows;\n-  var colstr = buf.toString('utf8', offset, offset + lcols); offset += lcols;\n-  result.numrows = n;\n-  result.numcols = m;\n-  result.rownames = rowstr.split(' ');\n-  result.colnames = colstr.split(' ');\n-  result.values = [];\n-  for (var i = 0; i < n; i++) {\n-    for (var j = 0; j < m; j++) {\n-      var val = buf.readDoubleLE(offset);\n-      offset += 8;\n-      result.values.push(val);\n-    }\n+expression.readTFAmat_ = function(fileName) {\n+  var lines = fs.readFileSync(fileName).toString().split('\\n');\n+  var parts = lines[0].split(/[\\t\\s]+/);","path":"server/expression.js","position":41,"original_position":41,"commit_id":"9424abed3a5894f5e5fb5f32ba2082d250bc1dbb","original_commit_id":"b75f0649c904265cd55a091109aaa5206926f196","user":{"login":"yubowenok","id":1314429,"avatar_url":"https://avatars.githubusercontent.com/u/1314429?v=3","gravatar_id":"","url":"https://api.github.com/users/yubowenok","html_url":"https://github.com/yubowenok","followers_url":"https://api.github.com/users/yubowenok/followers","following_url":"https://api.github.com/users/yubowenok/following{/other_user}","gists_url":"https://api.github.com/users/yubowenok/gists{/gist_id}","starred_url":"https://api.github.com/users/yubowenok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yubowenok/subscriptions","organizations_url":"https://api.github.com/users/yubowenok/orgs","repos_url":"https://api.github.com/users/yubowenok/repos","events_url":"https://api.github.com/users/yubowenok/events{/privacy}","received_events_url":"https://api.github.com/users/yubowenok/received_events","type":"User","site_admin":false},"body":"Looks like this is still not reading the tsv format? @djasmine ","created_at":"2016-02-10T05:39:36Z","updated_at":"2016-02-10T05:39:36Z","html_url":"https://github.com/ViDA-NYU/genotet/pull/92#discussion_r52416949","pull_request_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/92","_links":{"self":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments/52416949"},"html":{"href":"https://github.com/ViDA-NYU/genotet/pull/92#discussion_r52416949"},"pull_request":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/92"}}},"pull_request":{"url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/92","id":58511935,"html_url":"https://github.com/ViDA-NYU/genotet/pull/92","diff_url":"https://github.com/ViDA-NYU/genotet/pull/92.diff","patch_url":"https://github.com/ViDA-NYU/genotet/pull/92.patch","issue_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/92","number":92,"state":"open","locked":false,"title":"Change reading TFA/Combination in text and fix issues","user":{"login":"djasmine","id":1571174,"avatar_url":"https://avatars.githubusercontent.com/u/1571174?v=3","gravatar_id":"","url":"https://api.github.com/users/djasmine","html_url":"https://github.com/djasmine","followers_url":"https://api.github.com/users/djasmine/followers","following_url":"https://api.github.com/users/djasmine/following{/other_user}","gists_url":"https://api.github.com/users/djasmine/gists{/gist_id}","starred_url":"https://api.github.com/users/djasmine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djasmine/subscriptions","organizations_url":"https://api.github.com/users/djasmine/orgs","repos_url":"https://api.github.com/users/djasmine/repos","events_url":"https://api.github.com/users/djasmine/events{/privacy}","received_events_url":"https://api.github.com/users/djasmine/received_events","type":"User","site_admin":false},"body":"change reading TFA files in text\r\nchange reading combination in text\r\nchange uploaded fileName to the original fileName","created_at":"2016-02-06T05:01:47Z","updated_at":"2016-02-10T05:39:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"679b9ea849e897495aaadebb5c8ec6937f304cfc","assignee":{"login":"yubowenok","id":1314429,"avatar_url":"https://avatars.githubusercontent.com/u/1314429?v=3","gravatar_id":"","url":"https://api.github.com/users/yubowenok","html_url":"https://github.com/yubowenok","followers_url":"https://api.github.com/users/yubowenok/followers","following_url":"https://api.github.com/users/yubowenok/following{/other_user}","gists_url":"https://api.github.com/users/yubowenok/gists{/gist_id}","starred_url":"https://api.github.com/users/yubowenok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yubowenok/subscriptions","organizations_url":"https://api.github.com/users/yubowenok/orgs","repos_url":"https://api.github.com/users/yubowenok/repos","events_url":"https://api.github.com/users/yubowenok/events{/privacy}","received_events_url":"https://api.github.com/users/yubowenok/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/92/commits","review_comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/92/comments","review_comment_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/92/comments","statuses_url":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/9424abed3a5894f5e5fb5f32ba2082d250bc1dbb","head":{"label":"ViDA-NYU:jdong","ref":"jdong","sha":"9424abed3a5894f5e5fb5f32ba2082d250bc1dbb","user":{"login":"ViDA-NYU","id":8114708,"avatar_url":"https://avatars.githubusercontent.com/u/8114708?v=3","gravatar_id":"","url":"https://api.github.com/users/ViDA-NYU","html_url":"https://github.com/ViDA-NYU","followers_url":"https://api.github.com/users/ViDA-NYU/followers","following_url":"https://api.github.com/users/ViDA-NYU/following{/other_user}","gists_url":"https://api.github.com/users/ViDA-NYU/gists{/gist_id}","starred_url":"https://api.github.com/users/ViDA-NYU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViDA-NYU/subscriptions","organizations_url":"https://api.github.com/users/ViDA-NYU/orgs","repos_url":"https://api.github.com/users/ViDA-NYU/repos","events_url":"https://api.github.com/users/ViDA-NYU/events{/privacy}","received_events_url":"https://api.github.com/users/ViDA-NYU/received_events","type":"Organization","site_admin":false},"repo":{"id":24764416,"name":"genotet","full_name":"ViDA-NYU/genotet","owner":{"login":"ViDA-NYU","id":8114708,"avatar_url":"https://avatars.githubusercontent.com/u/8114708?v=3","gravatar_id":"","url":"https://api.github.com/users/ViDA-NYU","html_url":"https://github.com/ViDA-NYU","followers_url":"https://api.github.com/users/ViDA-NYU/followers","following_url":"https://api.github.com/users/ViDA-NYU/following{/other_user}","gists_url":"https://api.github.com/users/ViDA-NYU/gists{/gist_id}","starred_url":"https://api.github.com/users/ViDA-NYU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViDA-NYU/subscriptions","organizations_url":"https://api.github.com/users/ViDA-NYU/orgs","repos_url":"https://api.github.com/users/ViDA-NYU/repos","events_url":"https://api.github.com/users/ViDA-NYU/events{/privacy}","received_events_url":"https://api.github.com/users/ViDA-NYU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ViDA-NYU/genotet","description":"Genotet: An Interactive Web-based Visual Exploration Framework to Support Validation of Gene Regulatory Networks","fork":false,"url":"https://api.github.com/repos/ViDA-NYU/genotet","forks_url":"https://api.github.com/repos/ViDA-NYU/genotet/forks","keys_url":"https://api.github.com/repos/ViDA-NYU/genotet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ViDA-NYU/genotet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ViDA-NYU/genotet/teams","hooks_url":"https://api.github.com/repos/ViDA-NYU/genotet/hooks","issue_events_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/events{/number}","events_url":"https://api.github.com/repos/ViDA-NYU/genotet/events","assignees_url":"https://api.github.com/repos/ViDA-NYU/genotet/assignees{/user}","branches_url":"https://api.github.com/repos/ViDA-NYU/genotet/branches{/branch}","tags_url":"https://api.github.com/repos/ViDA-NYU/genotet/tags","blobs_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/{sha}","languages_url":"https://api.github.com/repos/ViDA-NYU/genotet/languages","stargazers_url":"https://api.github.com/repos/ViDA-NYU/genotet/stargazers","contributors_url":"https://api.github.com/repos/ViDA-NYU/genotet/contributors","subscribers_url":"https://api.github.com/repos/ViDA-NYU/genotet/subscribers","subscription_url":"https://api.github.com/repos/ViDA-NYU/genotet/subscription","commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ViDA-NYU/genotet/contents/{+path}","compare_url":"https://api.github.com/repos/ViDA-NYU/genotet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ViDA-NYU/genotet/merges","archive_url":"https://api.github.com/repos/ViDA-NYU/genotet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ViDA-NYU/genotet/downloads","issues_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues{/number}","pulls_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls{/number}","milestones_url":"https://api.github.com/repos/ViDA-NYU/genotet/milestones{/number}","notifications_url":"https://api.github.com/repos/ViDA-NYU/genotet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ViDA-NYU/genotet/labels{/name}","releases_url":"https://api.github.com/repos/ViDA-NYU/genotet/releases{/id}","deployments_url":"https://api.github.com/repos/ViDA-NYU/genotet/deployments","created_at":"2014-10-03T15:55:16Z","updated_at":"2016-01-11T19:18:29Z","pushed_at":"2016-02-10T05:14:30Z","git_url":"git://github.com/ViDA-NYU/genotet.git","ssh_url":"git@github.com:ViDA-NYU/genotet.git","clone_url":"https://github.com/ViDA-NYU/genotet.git","svn_url":"https://github.com/ViDA-NYU/genotet","homepage":null,"size":1784,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":4,"default_branch":"refactor"}},"base":{"label":"ViDA-NYU:refactor","ref":"refactor","sha":"2ad600241bc1b938f65ac3bfdd12c0986efa0fa7","user":{"login":"ViDA-NYU","id":8114708,"avatar_url":"https://avatars.githubusercontent.com/u/8114708?v=3","gravatar_id":"","url":"https://api.github.com/users/ViDA-NYU","html_url":"https://github.com/ViDA-NYU","followers_url":"https://api.github.com/users/ViDA-NYU/followers","following_url":"https://api.github.com/users/ViDA-NYU/following{/other_user}","gists_url":"https://api.github.com/users/ViDA-NYU/gists{/gist_id}","starred_url":"https://api.github.com/users/ViDA-NYU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViDA-NYU/subscriptions","organizations_url":"https://api.github.com/users/ViDA-NYU/orgs","repos_url":"https://api.github.com/users/ViDA-NYU/repos","events_url":"https://api.github.com/users/ViDA-NYU/events{/privacy}","received_events_url":"https://api.github.com/users/ViDA-NYU/received_events","type":"Organization","site_admin":false},"repo":{"id":24764416,"name":"genotet","full_name":"ViDA-NYU/genotet","owner":{"login":"ViDA-NYU","id":8114708,"avatar_url":"https://avatars.githubusercontent.com/u/8114708?v=3","gravatar_id":"","url":"https://api.github.com/users/ViDA-NYU","html_url":"https://github.com/ViDA-NYU","followers_url":"https://api.github.com/users/ViDA-NYU/followers","following_url":"https://api.github.com/users/ViDA-NYU/following{/other_user}","gists_url":"https://api.github.com/users/ViDA-NYU/gists{/gist_id}","starred_url":"https://api.github.com/users/ViDA-NYU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViDA-NYU/subscriptions","organizations_url":"https://api.github.com/users/ViDA-NYU/orgs","repos_url":"https://api.github.com/users/ViDA-NYU/repos","events_url":"https://api.github.com/users/ViDA-NYU/events{/privacy}","received_events_url":"https://api.github.com/users/ViDA-NYU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ViDA-NYU/genotet","description":"Genotet: An Interactive Web-based Visual Exploration Framework to Support Validation of Gene Regulatory Networks","fork":false,"url":"https://api.github.com/repos/ViDA-NYU/genotet","forks_url":"https://api.github.com/repos/ViDA-NYU/genotet/forks","keys_url":"https://api.github.com/repos/ViDA-NYU/genotet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ViDA-NYU/genotet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ViDA-NYU/genotet/teams","hooks_url":"https://api.github.com/repos/ViDA-NYU/genotet/hooks","issue_events_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/events{/number}","events_url":"https://api.github.com/repos/ViDA-NYU/genotet/events","assignees_url":"https://api.github.com/repos/ViDA-NYU/genotet/assignees{/user}","branches_url":"https://api.github.com/repos/ViDA-NYU/genotet/branches{/branch}","tags_url":"https://api.github.com/repos/ViDA-NYU/genotet/tags","blobs_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/{sha}","languages_url":"https://api.github.com/repos/ViDA-NYU/genotet/languages","stargazers_url":"https://api.github.com/repos/ViDA-NYU/genotet/stargazers","contributors_url":"https://api.github.com/repos/ViDA-NYU/genotet/contributors","subscribers_url":"https://api.github.com/repos/ViDA-NYU/genotet/subscribers","subscription_url":"https://api.github.com/repos/ViDA-NYU/genotet/subscription","commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ViDA-NYU/genotet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ViDA-NYU/genotet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ViDA-NYU/genotet/contents/{+path}","compare_url":"https://api.github.com/repos/ViDA-NYU/genotet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ViDA-NYU/genotet/merges","archive_url":"https://api.github.com/repos/ViDA-NYU/genotet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ViDA-NYU/genotet/downloads","issues_url":"https://api.github.com/repos/ViDA-NYU/genotet/issues{/number}","pulls_url":"https://api.github.com/repos/ViDA-NYU/genotet/pulls{/number}","milestones_url":"https://api.github.com/repos/ViDA-NYU/genotet/milestones{/number}","notifications_url":"https://api.github.com/repos/ViDA-NYU/genotet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ViDA-NYU/genotet/labels{/name}","releases_url":"https://api.github.com/repos/ViDA-NYU/genotet/releases{/id}","deployments_url":"https://api.github.com/repos/ViDA-NYU/genotet/deployments","created_at":"2014-10-03T15:55:16Z","updated_at":"2016-01-11T19:18:29Z","pushed_at":"2016-02-10T05:14:30Z","git_url":"git://github.com/ViDA-NYU/genotet.git","ssh_url":"git@github.com:ViDA-NYU/genotet.git","clone_url":"https://github.com/ViDA-NYU/genotet.git","svn_url":"https://github.com/ViDA-NYU/genotet","homepage":null,"size":1784,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":4,"default_branch":"refactor"}},"_links":{"self":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/92"},"html":{"href":"https://github.com/ViDA-NYU/genotet/pull/92"},"issue":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/issues/92"},"comments":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/ViDA-NYU/genotet/statuses/9424abed3a5894f5e5fb5f32ba2082d250bc1dbb"}}}}