{"action":"closed","issue":{"url":"https://api.github.com/repos/MadsAlbertsen/mmgenome/issues/16","labels_url":"https://api.github.com/repos/MadsAlbertsen/mmgenome/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/MadsAlbertsen/mmgenome/issues/16/comments","events_url":"https://api.github.com/repos/MadsAlbertsen/mmgenome/issues/16/events","html_url":"https://github.com/MadsAlbertsen/mmgenome/issues/16","id":47429305,"number":16,"title":"Attempt to set 'colnames' on an object with less than two dimensions","user":{"login":"dburkhardt","id":8322751,"avatar_url":"https://avatars.githubusercontent.com/u/8322751?v=3","gravatar_id":"","url":"https://api.github.com/users/dburkhardt","html_url":"https://github.com/dburkhardt","followers_url":"https://api.github.com/users/dburkhardt/followers","following_url":"https://api.github.com/users/dburkhardt/following{/other_user}","gists_url":"https://api.github.com/users/dburkhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/dburkhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dburkhardt/subscriptions","organizations_url":"https://api.github.com/users/dburkhardt/orgs","repos_url":"https://api.github.com/users/dburkhardt/repos","events_url":"https://api.github.com/users/dburkhardt/events{/privacy}","received_events_url":"https://api.github.com/users/dburkhardt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-31T18:26:31Z","updated_at":"2015-03-25T18:34:05Z","closed_at":"2015-03-25T18:34:05Z","body":"There error occurs when I call mmload with the \"other\" parameter set to a tab delimited file containing scaffolds and gc contents as generated by the calc.gc.pl script in the multi-metagenome R.data.generation  here: http://madsalbertsen.github.io/multi-metagenome/docs/step5.html. My GC file looks like this:\r\n\r\ncontig  gc\r\nscaffold00001   61.59\r\nscaffold00002   59.92\r\nscaffold00003   63.19\r\nscaffold00004   59.11\r\nscaffold00005   63.08\r\n\r\nIn R, this file is loaded using read.table. It's str() is: \r\n'data.frame':\t1421152 obs. of  2 variables:\r\n $ contig: Factor w/ 1421152 levels \"scaffold00001\",..: 1 2 3 4 5 6 7 8 9 10 ...\r\n $ gc    : num  61.6 59.9 63.2 59.1 63.1 ...'\r\n\r\nThe full error is:\r\nError in `colnames<-`(`*tmp*`, value = \"scaffold\") : \r\n  attempt to set 'colnames' on an object with less than two dimensions\r\n\r\nI haven't had the opportunity to look through the source code to find where this error is coming from. If I try mmload without adding this file, it works."}}