{"action":"created","comment":{"url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/comments/232661329","pull_request_review_id":173904621,"id":232661329,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjY2MTMyOQ==","diff_hunk":"@@ -0,0 +1,123 @@\n+\n+# coding: utf-8\n+\n+# In[ ]:\n+\n+\n+#Dna class. Inherited from str slass.\n+class Dna(str):\n+    def __init__(self, sequence):\n+        DNAcharlist = ('A', 'C', 'G', 'T', 'S', 'W', 'R', 'Y', 'K', 'M', 'B', 'D', 'H', 'V', 'N')\n+        badseq = False\n+        trueseq = ''\n+        for char in sequence:\n+            if char.upper() in DNAcharlist:\n+                trueseq += char\n+            else:\n+                badseq = True\n+                continue\n+        self.sequence = trueseq\n+        if badseq:\n+            print ('While initializing Dna object non-DNA characters were omitted')\n+        if len (sequence) == 0:\n+            print ('Empty DNA sequence was created. Using gc() function will return None')\n+            \n+    def __repr__(self):\n+        return (self.sequence)\n+    \n+    def __str__(self):\n+        return (self.sequence)\n+            \n+#transcribe function returns transcription in coordinates [transcrstart : transcrend] as an Rna class object\n+#whole sequence is transcribed by default\n+    def transcribe(self, transcr_start = 1, transcr_end = None): ","path":"DNA-RNAclasses.py","position":33,"original_position":33,"commit_id":"9fdd09ac998d8e26d3e4fd3e5e8ccdefda138a36","original_commit_id":"9fdd09ac998d8e26d3e4fd3e5e8ccdefda138a36","user":{"login":"StudentMAGe","id":43290436,"node_id":"MDQ6VXNlcjQzMjkwNDM2","avatar_url":"https://avatars1.githubusercontent.com/u/43290436?v=4","gravatar_id":"","url":"https://api.github.com/users/StudentMAGe","html_url":"https://github.com/StudentMAGe","followers_url":"https://api.github.com/users/StudentMAGe/followers","following_url":"https://api.github.com/users/StudentMAGe/following{/other_user}","gists_url":"https://api.github.com/users/StudentMAGe/gists{/gist_id}","starred_url":"https://api.github.com/users/StudentMAGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StudentMAGe/subscriptions","organizations_url":"https://api.github.com/users/StudentMAGe/orgs","repos_url":"https://api.github.com/users/StudentMAGe/repos","events_url":"https://api.github.com/users/StudentMAGe/events{/privacy}","received_events_url":"https://api.github.com/users/StudentMAGe/received_events","type":"User","site_admin":false},"body":"Sorry, my bad. Fixed that.","created_at":"2018-11-12T13:45:09Z","updated_at":"2018-11-12T13:45:09Z","html_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA/pull/1#discussion_r232661329","pull_request_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/comments/232661329"},"html":{"href":"https://github.com/StudentMAGe/PythonHW_DNA_RNA/pull/1#discussion_r232661329"},"pull_request":{"href":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/1"}},"in_reply_to_id":232588025},"pull_request":{"url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/1","id":229959853,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5OTU5ODUz","html_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA/pull/1","diff_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA/pull/1.diff","patch_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA/pull/1.patch","issue_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues/1","number":1,"state":"open","locked":false,"title":"Add files via upload","user":{"login":"StudentMAGe","id":43290436,"node_id":"MDQ6VXNlcjQzMjkwNDM2","avatar_url":"https://avatars1.githubusercontent.com/u/43290436?v=4","gravatar_id":"","url":"https://api.github.com/users/StudentMAGe","html_url":"https://github.com/StudentMAGe","followers_url":"https://api.github.com/users/StudentMAGe/followers","following_url":"https://api.github.com/users/StudentMAGe/following{/other_user}","gists_url":"https://api.github.com/users/StudentMAGe/gists{/gist_id}","starred_url":"https://api.github.com/users/StudentMAGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StudentMAGe/subscriptions","organizations_url":"https://api.github.com/users/StudentMAGe/orgs","repos_url":"https://api.github.com/users/StudentMAGe/repos","events_url":"https://api.github.com/users/StudentMAGe/events{/privacy}","received_events_url":"https://api.github.com/users/StudentMAGe/received_events","type":"User","site_admin":false},"body":"Python script with Dna and Rna classes","created_at":"2018-11-11T15:45:41Z","updated_at":"2018-11-12T13:45:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20144590dbdaec41276cc73672548280e9e855e4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/1/commits","review_comments_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/1/comments","review_comment_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues/1/comments","statuses_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/statuses/9fdd09ac998d8e26d3e4fd3e5e8ccdefda138a36","head":{"label":"StudentMAGe:feature","ref":"feature","sha":"9fdd09ac998d8e26d3e4fd3e5e8ccdefda138a36","user":{"login":"StudentMAGe","id":43290436,"node_id":"MDQ6VXNlcjQzMjkwNDM2","avatar_url":"https://avatars1.githubusercontent.com/u/43290436?v=4","gravatar_id":"","url":"https://api.github.com/users/StudentMAGe","html_url":"https://github.com/StudentMAGe","followers_url":"https://api.github.com/users/StudentMAGe/followers","following_url":"https://api.github.com/users/StudentMAGe/following{/other_user}","gists_url":"https://api.github.com/users/StudentMAGe/gists{/gist_id}","starred_url":"https://api.github.com/users/StudentMAGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StudentMAGe/subscriptions","organizations_url":"https://api.github.com/users/StudentMAGe/orgs","repos_url":"https://api.github.com/users/StudentMAGe/repos","events_url":"https://api.github.com/users/StudentMAGe/events{/privacy}","received_events_url":"https://api.github.com/users/StudentMAGe/received_events","type":"User","site_admin":false},"repo":{"id":157093618,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcwOTM2MTg=","name":"PythonHW_DNA_RNA","full_name":"StudentMAGe/PythonHW_DNA_RNA","private":false,"owner":{"login":"StudentMAGe","id":43290436,"node_id":"MDQ6VXNlcjQzMjkwNDM2","avatar_url":"https://avatars1.githubusercontent.com/u/43290436?v=4","gravatar_id":"","url":"https://api.github.com/users/StudentMAGe","html_url":"https://github.com/StudentMAGe","followers_url":"https://api.github.com/users/StudentMAGe/followers","following_url":"https://api.github.com/users/StudentMAGe/following{/other_user}","gists_url":"https://api.github.com/users/StudentMAGe/gists{/gist_id}","starred_url":"https://api.github.com/users/StudentMAGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StudentMAGe/subscriptions","organizations_url":"https://api.github.com/users/StudentMAGe/orgs","repos_url":"https://api.github.com/users/StudentMAGe/repos","events_url":"https://api.github.com/users/StudentMAGe/events{/privacy}","received_events_url":"https://api.github.com/users/StudentMAGe/received_events","type":"User","site_admin":false},"html_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA","description":null,"fork":false,"url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA","forks_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/forks","keys_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/teams","hooks_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/hooks","issue_events_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues/events{/number}","events_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/events","assignees_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/assignees{/user}","branches_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/branches{/branch}","tags_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/tags","blobs_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/refs{/sha}","trees_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/statuses/{sha}","languages_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/languages","stargazers_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/stargazers","contributors_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/contributors","subscribers_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/subscribers","subscription_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/subscription","commits_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/commits{/sha}","git_commits_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/commits{/sha}","comments_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/comments{/number}","issue_comment_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues/comments{/number}","contents_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/contents/{+path}","compare_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/merges","archive_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/downloads","issues_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues{/number}","pulls_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls{/number}","milestones_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/milestones{/number}","notifications_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/labels{/name}","releases_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/releases{/id}","deployments_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/deployments","created_at":"2018-11-11T15:34:22Z","updated_at":"2018-11-11T15:35:17Z","pushed_at":"2018-11-11T15:45:42Z","git_url":"git://github.com/StudentMAGe/PythonHW_DNA_RNA.git","ssh_url":"git@github.com:StudentMAGe/PythonHW_DNA_RNA.git","clone_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA.git","svn_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"StudentMAGe:master","ref":"master","sha":"476e1b85f9af30f3eb05da4ca44f272282ddcee9","user":{"login":"StudentMAGe","id":43290436,"node_id":"MDQ6VXNlcjQzMjkwNDM2","avatar_url":"https://avatars1.githubusercontent.com/u/43290436?v=4","gravatar_id":"","url":"https://api.github.com/users/StudentMAGe","html_url":"https://github.com/StudentMAGe","followers_url":"https://api.github.com/users/StudentMAGe/followers","following_url":"https://api.github.com/users/StudentMAGe/following{/other_user}","gists_url":"https://api.github.com/users/StudentMAGe/gists{/gist_id}","starred_url":"https://api.github.com/users/StudentMAGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StudentMAGe/subscriptions","organizations_url":"https://api.github.com/users/StudentMAGe/orgs","repos_url":"https://api.github.com/users/StudentMAGe/repos","events_url":"https://api.github.com/users/StudentMAGe/events{/privacy}","received_events_url":"https://api.github.com/users/StudentMAGe/received_events","type":"User","site_admin":false},"repo":{"id":157093618,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcwOTM2MTg=","name":"PythonHW_DNA_RNA","full_name":"StudentMAGe/PythonHW_DNA_RNA","private":false,"owner":{"login":"StudentMAGe","id":43290436,"node_id":"MDQ6VXNlcjQzMjkwNDM2","avatar_url":"https://avatars1.githubusercontent.com/u/43290436?v=4","gravatar_id":"","url":"https://api.github.com/users/StudentMAGe","html_url":"https://github.com/StudentMAGe","followers_url":"https://api.github.com/users/StudentMAGe/followers","following_url":"https://api.github.com/users/StudentMAGe/following{/other_user}","gists_url":"https://api.github.com/users/StudentMAGe/gists{/gist_id}","starred_url":"https://api.github.com/users/StudentMAGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StudentMAGe/subscriptions","organizations_url":"https://api.github.com/users/StudentMAGe/orgs","repos_url":"https://api.github.com/users/StudentMAGe/repos","events_url":"https://api.github.com/users/StudentMAGe/events{/privacy}","received_events_url":"https://api.github.com/users/StudentMAGe/received_events","type":"User","site_admin":false},"html_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA","description":null,"fork":false,"url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA","forks_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/forks","keys_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/teams","hooks_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/hooks","issue_events_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues/events{/number}","events_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/events","assignees_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/assignees{/user}","branches_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/branches{/branch}","tags_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/tags","blobs_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/refs{/sha}","trees_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/statuses/{sha}","languages_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/languages","stargazers_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/stargazers","contributors_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/contributors","subscribers_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/subscribers","subscription_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/subscription","commits_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/commits{/sha}","git_commits_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/git/commits{/sha}","comments_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/comments{/number}","issue_comment_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues/comments{/number}","contents_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/contents/{+path}","compare_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/merges","archive_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/downloads","issues_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues{/number}","pulls_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls{/number}","milestones_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/milestones{/number}","notifications_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/labels{/name}","releases_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/releases{/id}","deployments_url":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/deployments","created_at":"2018-11-11T15:34:22Z","updated_at":"2018-11-11T15:35:17Z","pushed_at":"2018-11-11T15:45:42Z","git_url":"git://github.com/StudentMAGe/PythonHW_DNA_RNA.git","ssh_url":"git@github.com:StudentMAGe/PythonHW_DNA_RNA.git","clone_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA.git","svn_url":"https://github.com/StudentMAGe/PythonHW_DNA_RNA","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/1"},"html":{"href":"https://github.com/StudentMAGe/PythonHW_DNA_RNA/pull/1"},"issue":{"href":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues/1"},"comments":{"href":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/StudentMAGe/PythonHW_DNA_RNA/statuses/9fdd09ac998d8e26d3e4fd3e5e8ccdefda138a36"}},"author_association":"OWNER"}}
{"actor":{"display_login":"StudentMAGe"}}