{"action":"closed","issue":{"url":"https://api.github.com/repos/PoisonAlien/maftools/issues/206","repository_url":"https://api.github.com/repos/PoisonAlien/maftools","labels_url":"https://api.github.com/repos/PoisonAlien/maftools/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/PoisonAlien/maftools/issues/206/comments","events_url":"https://api.github.com/repos/PoisonAlien/maftools/issues/206/events","html_url":"https://github.com/PoisonAlien/maftools/issues/206","id":388967664,"node_id":"MDU6SXNzdWUzODg5Njc2NjQ=","number":206,"title":"oncoPlot Fails if Exactly One Sample has Mutations","user":{"login":"DarioS","id":631218,"node_id":"MDQ6VXNlcjYzMTIxOA==","avatar_url":"https://avatars2.githubusercontent.com/u/631218?v=4","gravatar_id":"","url":"https://api.github.com/users/DarioS","html_url":"https://github.com/DarioS","followers_url":"https://api.github.com/users/DarioS/followers","following_url":"https://api.github.com/users/DarioS/following{/other_user}","gists_url":"https://api.github.com/users/DarioS/gists{/gist_id}","starred_url":"https://api.github.com/users/DarioS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarioS/subscriptions","organizations_url":"https://api.github.com/users/DarioS/orgs","repos_url":"https://api.github.com/users/DarioS/repos","events_url":"https://api.github.com/users/DarioS/events{/privacy}","received_events_url":"https://api.github.com/users/DarioS/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-08T23:00:05Z","updated_at":"2018-12-17T20:00:04Z","closed_at":"2018-12-17T20:00:04Z","author_association":"NONE","body":"In the following example, the MAF has two samples, but only one has any mutations in the categories which maftools considers.\r\n\r\n```\r\nlibrary(maftools)\r\nlibrary(TCGAbiolinks)\r\nlibrary(magrittr)\r\n\r\nmutations <- GDCquery_Maf(\"HNSC\", pipelines = \"muse\")\r\nkeep <- grep(\"7382|7391\", unlist(mutations[, \"Tumor_Sample_Barcode\"]))\r\n# 7391 only has one 3' Flank mutation. Nothing to plot for it.\r\nmutations <- mutations[keep, ]\r\nmutationsMAF <- mutations %>% read.maf\r\n\r\noncoplot(mutationsMAF)\r\n```\r\n\r\nThis results in \r\n\r\n```\r\nError in createOncoMatrix(m = maf, g = genes) : \r\n  object 'sampleId' not found\r\n```\r\n"}}
{"actor":{"display_login":"DarioS"}}