{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/unconf/issues/41","labels_url":"https://api.github.com/repos/ropensci/unconf/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/unconf/issues/41/comments","events_url":"https://api.github.com/repos/ropensci/unconf/issues/41/events","html_url":"https://github.com/ropensci/unconf/issues/41","id":64628000,"number":41,"title":"A package for higher-level R metadata extraction","user":{"login":"vsbuffalo","id":160549,"avatar_url":"https://avatars.githubusercontent.com/u/160549?v=3","gravatar_id":"","url":"https://api.github.com/users/vsbuffalo","html_url":"https://github.com/vsbuffalo","followers_url":"https://api.github.com/users/vsbuffalo/followers","following_url":"https://api.github.com/users/vsbuffalo/following{/other_user}","gists_url":"https://api.github.com/users/vsbuffalo/gists{/gist_id}","starred_url":"https://api.github.com/users/vsbuffalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsbuffalo/subscriptions","organizations_url":"https://api.github.com/users/vsbuffalo/orgs","repos_url":"https://api.github.com/users/vsbuffalo/repos","events_url":"https://api.github.com/users/vsbuffalo/events{/privacy}","received_events_url":"https://api.github.com/users/vsbuffalo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-26T20:41:11Z","updated_at":"2015-03-28T02:47:25Z","closed_at":null,"body":"Basically there should be a higher-level way to extract metadata from directory and filenames. For example:\r\n\r\n    150202_HS2A/Project_XXX/Sample_OEP02_N712_S508/OEP02_N712_S508_GTAGAGGA-CTAAGCCT_L002_R1_001.fastq.gz\r\n\r\nThere's a ton of metadata in this file that we should be able to quickly extract and work with (e.g. in a dataframe). The (initial) goals of this package are:\r\n\r\n1. Load in and extract file metadata.\r\n\r\n2. Queries on this metadata — think `list.files()` that's way more powerful.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ropensci/unconf/issues/comments/87149963","html_url":"https://github.com/ropensci/unconf/issues/41#issuecomment-87149963","issue_url":"https://api.github.com/repos/ropensci/unconf/issues/41","id":87149963,"user":{"login":"jennybc","id":599454,"avatar_url":"https://avatars.githubusercontent.com/u/599454?v=3","gravatar_id":"","url":"https://api.github.com/users/jennybc","html_url":"https://github.com/jennybc","followers_url":"https://api.github.com/users/jennybc/followers","following_url":"https://api.github.com/users/jennybc/following{/other_user}","gists_url":"https://api.github.com/users/jennybc/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybc/subscriptions","organizations_url":"https://api.github.com/users/jennybc/orgs","repos_url":"https://api.github.com/users/jennybc/repos","events_url":"https://api.github.com/users/jennybc/events{/privacy}","received_events_url":"https://api.github.com/users/jennybc/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T02:47:24Z","updated_at":"2015-03-28T02:47:24Z","body":"This reminds me of two other thoughts I've had in the past, related to what sort of larger package this functionality might fit in.\r\n\r\n[1] A package that implements some standard unix commands but gives the result in the most sensible R native format and anticipates piping them together with `%>%`. In the current case, the idea would be to emulate `ls` and to offer some of the most expected arguments and to get the result back as a data.frame. If memory serves, the current task of parsing metadata in file names was exactly my own motivating case, as this comes up often for me as well.\r\n\r\n[2] It also feels like R needs a package for operating on files and paths. Google and the hotel wifi are keeping me from pointing to a great example from another language but I know such exist. Something that goes beyond `file.path()`, `base name()`, etc. I even feel like someone has taken a stab at this but can't remember who/when. Anyone else remember?"}}