UW-GAC / genetable

A set of R functions to obtain gene definitions from an outside data source and make a table of those gene definitions in the GAC database
Other
0 stars 0 forks source link

Need a import function for gencode files #1

Closed bheavner closed 7 years ago

bheavner commented 7 years ago

I want a function that takes a file path, a string matching the feature of interest, and a string matching the attribute of interest as arguments, and returns a data frame containing the rows from the file that match the feature and contain the attribute.

bheavner commented 7 years ago

genetable::import_gencode() is well under way. I need to do some tidying on the tibble, then select the attributes and features of interest. (or perhaps just tidy tibble, and selecting will be a separate step to facilitate other functions?).

Column 9 is the one that needs to be cleaned up. See https://www.gencodegenes.org/data_format.html

That suggests maybe refactor current function so it just takes a path argument. Selecting feature and attribute should be a different function.