{"action":"created","issue":{"url":"https://api.github.com/repos/morrislab/phylowgs/issues/2","labels_url":"https://api.github.com/repos/morrislab/phylowgs/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/morrislab/phylowgs/issues/2/comments","events_url":"https://api.github.com/repos/morrislab/phylowgs/issues/2/events","html_url":"https://github.com/morrislab/phylowgs/issues/2","id":79169489,"number":2,"title":"create_phylowgs_inputs.py ValueError: need more than 1 value to unpack","user":{"login":"keyuan","id":383639,"avatar_url":"https://avatars.githubusercontent.com/u/383639?v=3","gravatar_id":"","url":"https://api.github.com/users/keyuan","html_url":"https://github.com/keyuan","followers_url":"https://api.github.com/users/keyuan/followers","following_url":"https://api.github.com/users/keyuan/following{/other_user}","gists_url":"https://api.github.com/users/keyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/keyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyuan/subscriptions","organizations_url":"https://api.github.com/users/keyuan/orgs","repos_url":"https://api.github.com/users/keyuan/repos","events_url":"https://api.github.com/users/keyuan/events{/privacy}","received_events_url":"https://api.github.com/users/keyuan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-21T21:33:19Z","updated_at":"2015-05-22T19:24:43Z","closed_at":null,"body":"Many thanks for putting the input parser code. I'm trying to use it to generate input files for the pilot 63 samples. I always get the following error:\r\n```\r\npython create_phylowgs_inputs.py -v sanger sample.vcf.gz\r\n```\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"create_phylowgs_inputs.py\", line 685, in <module>\r\n    main()\r\n  File \"create_phylowgs_inputs.py\", line 659, in main\r\n    variants_and_reads = variant_parser.list_variants()\r\n  File \"create_phylowgs_inputs.py\", line 20, in list_variants\r\n    ref_reads, total_reads = self._calc_read_counts(variant)\r\n  File \"create_phylowgs_inputs.py\", line 111, in _calc_read_counts\r\n    reference_nt, variant_nt = self._find_ref_and_variant_nt(variant)\r\n  File \"create_phylowgs_inputs.py\", line 97, in _find_ref_and_variant_nt\r\n    normal_genotype, tumor_genotype = genotype.split('/')\r\nValueError: need more than 1 value to unpack\r\n```\r\n\r\nAny idea of why this is happening? Many thanks!"},"comment":{"url":"https://api.github.com/repos/morrislab/phylowgs/issues/comments/104748223","html_url":"https://github.com/morrislab/phylowgs/issues/2#issuecomment-104748223","issue_url":"https://api.github.com/repos/morrislab/phylowgs/issues/2","id":104748223,"user":{"login":"quaidmorris","id":5346422,"avatar_url":"https://avatars.githubusercontent.com/u/5346422?v=3","gravatar_id":"","url":"https://api.github.com/users/quaidmorris","html_url":"https://github.com/quaidmorris","followers_url":"https://api.github.com/users/quaidmorris/followers","following_url":"https://api.github.com/users/quaidmorris/following{/other_user}","gists_url":"https://api.github.com/users/quaidmorris/gists{/gist_id}","starred_url":"https://api.github.com/users/quaidmorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quaidmorris/subscriptions","organizations_url":"https://api.github.com/users/quaidmorris/orgs","repos_url":"https://api.github.com/users/quaidmorris/repos","events_url":"https://api.github.com/users/quaidmorris/events{/privacy}","received_events_url":"https://api.github.com/users/quaidmorris/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T19:24:43Z","updated_at":"2015-05-22T19:24:43Z","body":"Hi Ke,\nThanks for the potential bug fix. I'm not sure why you are getting this\nproblem -- Jeff uses the same code on the 63 samples but we'll look into it\nas soon as we can.\n\nThanks!\nQuaid\n\nOn Fri, May 22, 2015 at 6:47 AM, Ke Yuan <notifications@github.com> wrote:\n\n> It seems like the problem is with line 90 and it can be solved by\n> replacing\n>\n> genotypes = [variant.INFO['TG'][0], variant.INFO['SG'][0]]\n>\n> with\n>\n> genotypes = [variant.INFO['TG'], variant.INFO['SG']]\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/morrislab/phylowgs/issues/2#issuecomment-104616433>.\n>\n\n\n\n-- \nQuaid Morris, PhD\nAssociate Professor, The Donnelly Centre\nDepartments of Molecular Genetics and Computer Science\n160 College St,  Rm 616\nToronto ON, M5S 3E1 Canada\nhttp://morrislab.med.utoronto.ca\ncell:  (416) 220 5796\n"}}