{"action":"created","comment":{"url":"https://api.github.com/repos/yaxonomic/yax/pulls/comments/59903556","id":59903556,"diff_hunk":"@@ -0,0 +1,17 @@\n+def read_fasta_file(fasta_file_path):\n+    fasta_headers = []\n+    fasta_seqs = []\n+    seq = \"\"\n+    fasta_file_fh = open(fasta_file_path, 'r')\n+\n+    for line in fasta_file_fh:\n+        if line[0] == \">\":\n+            fasta_headers.append(line.rstrip().lstrip(\">\"))\n+            if seq != \"\":\n+                fasta_seqs.append(seq)\n+            seq = \"\"\n+        else:\n+            seq += line.rstrip(\"\\n\")\n+    fasta_seqs.append(seq)\n+\n+    return fasta_headers, fasta_seqs","path":"yax/modules/readprep/supporting_functions.py","position":17,"original_position":17,"commit_id":"b3261ca8d9da2a0c98aa0bcd3b8b7b1283d4249c","original_commit_id":"b3261ca8d9da2a0c98aa0bcd3b8b7b1283d4249c","user":{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false},"body":"Return a `namedtuple(\"Sequence\", ['id', 'description', 'seq'])`","created_at":"2016-04-15T16:43:18Z","updated_at":"2016-04-15T16:43:18Z","html_url":"https://github.com/yaxonomic/yax/pull/12#discussion_r59903556","pull_request_url":"https://api.github.com/repos/yaxonomic/yax/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/yaxonomic/yax/pulls/comments/59903556"},"html":{"href":"https://github.com/yaxonomic/yax/pull/12#discussion_r59903556"},"pull_request":{"href":"https://api.github.com/repos/yaxonomic/yax/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/yaxonomic/yax/pulls/12","id":65194219,"html_url":"https://github.com/yaxonomic/yax/pull/12","diff_url":"https://github.com/yaxonomic/yax/pull/12.diff","patch_url":"https://github.com/yaxonomic/yax/pull/12.patch","issue_url":"https://api.github.com/repos/yaxonomic/yax/issues/12","number":12,"state":"open","locked":false,"title":"initial addition of readprep module","user":{"login":"MikeDeberg","id":10536655,"avatar_url":"https://avatars.githubusercontent.com/u/10536655?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeDeberg","html_url":"https://github.com/MikeDeberg","followers_url":"https://api.github.com/users/MikeDeberg/followers","following_url":"https://api.github.com/users/MikeDeberg/following{/other_user}","gists_url":"https://api.github.com/users/MikeDeberg/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeDeberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeDeberg/subscriptions","organizations_url":"https://api.github.com/users/MikeDeberg/orgs","repos_url":"https://api.github.com/users/MikeDeberg/repos","events_url":"https://api.github.com/users/MikeDeberg/events{/privacy}","received_events_url":"https://api.github.com/users/MikeDeberg/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-04T18:52:21Z","updated_at":"2016-04-15T16:43:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2560456d6f08eade9df637868edf45d58f5ed85e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yaxonomic/yax/pulls/12/commits","review_comments_url":"https://api.github.com/repos/yaxonomic/yax/pulls/12/comments","review_comment_url":"https://api.github.com/repos/yaxonomic/yax/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yaxonomic/yax/issues/12/comments","statuses_url":"https://api.github.com/repos/yaxonomic/yax/statuses/b3261ca8d9da2a0c98aa0bcd3b8b7b1283d4249c","head":{"label":"MikeDeberg:readprep","ref":"readprep","sha":"b3261ca8d9da2a0c98aa0bcd3b8b7b1283d4249c","user":{"login":"MikeDeberg","id":10536655,"avatar_url":"https://avatars.githubusercontent.com/u/10536655?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeDeberg","html_url":"https://github.com/MikeDeberg","followers_url":"https://api.github.com/users/MikeDeberg/followers","following_url":"https://api.github.com/users/MikeDeberg/following{/other_user}","gists_url":"https://api.github.com/users/MikeDeberg/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeDeberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeDeberg/subscriptions","organizations_url":"https://api.github.com/users/MikeDeberg/orgs","repos_url":"https://api.github.com/users/MikeDeberg/repos","events_url":"https://api.github.com/users/MikeDeberg/events{/privacy}","received_events_url":"https://api.github.com/users/MikeDeberg/received_events","type":"User","site_admin":false},"repo":{"id":52560351,"name":"yax","full_name":"MikeDeberg/yax","owner":{"login":"MikeDeberg","id":10536655,"avatar_url":"https://avatars.githubusercontent.com/u/10536655?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeDeberg","html_url":"https://github.com/MikeDeberg","followers_url":"https://api.github.com/users/MikeDeberg/followers","following_url":"https://api.github.com/users/MikeDeberg/following{/other_user}","gists_url":"https://api.github.com/users/MikeDeberg/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeDeberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeDeberg/subscriptions","organizations_url":"https://api.github.com/users/MikeDeberg/orgs","repos_url":"https://api.github.com/users/MikeDeberg/repos","events_url":"https://api.github.com/users/MikeDeberg/events{/privacy}","received_events_url":"https://api.github.com/users/MikeDeberg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MikeDeberg/yax","description":"","fork":true,"url":"https://api.github.com/repos/MikeDeberg/yax","forks_url":"https://api.github.com/repos/MikeDeberg/yax/forks","keys_url":"https://api.github.com/repos/MikeDeberg/yax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MikeDeberg/yax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MikeDeberg/yax/teams","hooks_url":"https://api.github.com/repos/MikeDeberg/yax/hooks","issue_events_url":"https://api.github.com/repos/MikeDeberg/yax/issues/events{/number}","events_url":"https://api.github.com/repos/MikeDeberg/yax/events","assignees_url":"https://api.github.com/repos/MikeDeberg/yax/assignees{/user}","branches_url":"https://api.github.com/repos/MikeDeberg/yax/branches{/branch}","tags_url":"https://api.github.com/repos/MikeDeberg/yax/tags","blobs_url":"https://api.github.com/repos/MikeDeberg/yax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MikeDeberg/yax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MikeDeberg/yax/git/refs{/sha}","trees_url":"https://api.github.com/repos/MikeDeberg/yax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MikeDeberg/yax/statuses/{sha}","languages_url":"https://api.github.com/repos/MikeDeberg/yax/languages","stargazers_url":"https://api.github.com/repos/MikeDeberg/yax/stargazers","contributors_url":"https://api.github.com/repos/MikeDeberg/yax/contributors","subscribers_url":"https://api.github.com/repos/MikeDeberg/yax/subscribers","subscription_url":"https://api.github.com/repos/MikeDeberg/yax/subscription","commits_url":"https://api.github.com/repos/MikeDeberg/yax/commits{/sha}","git_commits_url":"https://api.github.com/repos/MikeDeberg/yax/git/commits{/sha}","comments_url":"https://api.github.com/repos/MikeDeberg/yax/comments{/number}","issue_comment_url":"https://api.github.com/repos/MikeDeberg/yax/issues/comments{/number}","contents_url":"https://api.github.com/repos/MikeDeberg/yax/contents/{+path}","compare_url":"https://api.github.com/repos/MikeDeberg/yax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MikeDeberg/yax/merges","archive_url":"https://api.github.com/repos/MikeDeberg/yax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MikeDeberg/yax/downloads","issues_url":"https://api.github.com/repos/MikeDeberg/yax/issues{/number}","pulls_url":"https://api.github.com/repos/MikeDeberg/yax/pulls{/number}","milestones_url":"https://api.github.com/repos/MikeDeberg/yax/milestones{/number}","notifications_url":"https://api.github.com/repos/MikeDeberg/yax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MikeDeberg/yax/labels{/name}","releases_url":"https://api.github.com/repos/MikeDeberg/yax/releases{/id}","deployments_url":"https://api.github.com/repos/MikeDeberg/yax/deployments","created_at":"2016-02-25T22:07:52Z","updated_at":"2016-02-25T22:07:53Z","pushed_at":"2016-04-12T19:31:59Z","git_url":"git://github.com/MikeDeberg/yax.git","ssh_url":"git@github.com:MikeDeberg/yax.git","clone_url":"https://github.com/MikeDeberg/yax.git","svn_url":"https://github.com/MikeDeberg/yax","homepage":null,"size":71,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yaxonomic:master","ref":"master","sha":"ffb0089ab104c7f6f6d6ea1288f54b7b0cfe9373","user":{"login":"yaxonomic","id":14225359,"avatar_url":"https://avatars.githubusercontent.com/u/14225359?v=3","gravatar_id":"","url":"https://api.github.com/users/yaxonomic","html_url":"https://github.com/yaxonomic","followers_url":"https://api.github.com/users/yaxonomic/followers","following_url":"https://api.github.com/users/yaxonomic/following{/other_user}","gists_url":"https://api.github.com/users/yaxonomic/gists{/gist_id}","starred_url":"https://api.github.com/users/yaxonomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaxonomic/subscriptions","organizations_url":"https://api.github.com/users/yaxonomic/orgs","repos_url":"https://api.github.com/users/yaxonomic/repos","events_url":"https://api.github.com/users/yaxonomic/events{/privacy}","received_events_url":"https://api.github.com/users/yaxonomic/received_events","type":"Organization","site_admin":false},"repo":{"id":52177281,"name":"yax","full_name":"yaxonomic/yax","owner":{"login":"yaxonomic","id":14225359,"avatar_url":"https://avatars.githubusercontent.com/u/14225359?v=3","gravatar_id":"","url":"https://api.github.com/users/yaxonomic","html_url":"https://github.com/yaxonomic","followers_url":"https://api.github.com/users/yaxonomic/followers","following_url":"https://api.github.com/users/yaxonomic/following{/other_user}","gists_url":"https://api.github.com/users/yaxonomic/gists{/gist_id}","starred_url":"https://api.github.com/users/yaxonomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaxonomic/subscriptions","organizations_url":"https://api.github.com/users/yaxonomic/orgs","repos_url":"https://api.github.com/users/yaxonomic/repos","events_url":"https://api.github.com/users/yaxonomic/events{/privacy}","received_events_url":"https://api.github.com/users/yaxonomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yaxonomic/yax","description":"","fork":false,"url":"https://api.github.com/repos/yaxonomic/yax","forks_url":"https://api.github.com/repos/yaxonomic/yax/forks","keys_url":"https://api.github.com/repos/yaxonomic/yax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yaxonomic/yax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yaxonomic/yax/teams","hooks_url":"https://api.github.com/repos/yaxonomic/yax/hooks","issue_events_url":"https://api.github.com/repos/yaxonomic/yax/issues/events{/number}","events_url":"https://api.github.com/repos/yaxonomic/yax/events","assignees_url":"https://api.github.com/repos/yaxonomic/yax/assignees{/user}","branches_url":"https://api.github.com/repos/yaxonomic/yax/branches{/branch}","tags_url":"https://api.github.com/repos/yaxonomic/yax/tags","blobs_url":"https://api.github.com/repos/yaxonomic/yax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yaxonomic/yax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yaxonomic/yax/git/refs{/sha}","trees_url":"https://api.github.com/repos/yaxonomic/yax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yaxonomic/yax/statuses/{sha}","languages_url":"https://api.github.com/repos/yaxonomic/yax/languages","stargazers_url":"https://api.github.com/repos/yaxonomic/yax/stargazers","contributors_url":"https://api.github.com/repos/yaxonomic/yax/contributors","subscribers_url":"https://api.github.com/repos/yaxonomic/yax/subscribers","subscription_url":"https://api.github.com/repos/yaxonomic/yax/subscription","commits_url":"https://api.github.com/repos/yaxonomic/yax/commits{/sha}","git_commits_url":"https://api.github.com/repos/yaxonomic/yax/git/commits{/sha}","comments_url":"https://api.github.com/repos/yaxonomic/yax/comments{/number}","issue_comment_url":"https://api.github.com/repos/yaxonomic/yax/issues/comments{/number}","contents_url":"https://api.github.com/repos/yaxonomic/yax/contents/{+path}","compare_url":"https://api.github.com/repos/yaxonomic/yax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yaxonomic/yax/merges","archive_url":"https://api.github.com/repos/yaxonomic/yax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yaxonomic/yax/downloads","issues_url":"https://api.github.com/repos/yaxonomic/yax/issues{/number}","pulls_url":"https://api.github.com/repos/yaxonomic/yax/pulls{/number}","milestones_url":"https://api.github.com/repos/yaxonomic/yax/milestones{/number}","notifications_url":"https://api.github.com/repos/yaxonomic/yax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yaxonomic/yax/labels{/name}","releases_url":"https://api.github.com/repos/yaxonomic/yax/releases{/id}","deployments_url":"https://api.github.com/repos/yaxonomic/yax/deployments","created_at":"2016-02-20T21:47:48Z","updated_at":"2016-02-21T19:32:59Z","pushed_at":"2016-04-14T02:12:57Z","git_url":"git://github.com/yaxonomic/yax.git","ssh_url":"git@github.com:yaxonomic/yax.git","clone_url":"https://github.com/yaxonomic/yax.git","svn_url":"https://github.com/yaxonomic/yax","homepage":null,"size":119,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yaxonomic/yax/pulls/12"},"html":{"href":"https://github.com/yaxonomic/yax/pull/12"},"issue":{"href":"https://api.github.com/repos/yaxonomic/yax/issues/12"},"comments":{"href":"https://api.github.com/repos/yaxonomic/yax/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/yaxonomic/yax/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/yaxonomic/yax/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yaxonomic/yax/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/yaxonomic/yax/statuses/b3261ca8d9da2a0c98aa0bcd3b8b7b1283d4249c"}}}}