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

make define_boundaries() #8

Closed bheavner closed 7 years ago

bheavner commented 7 years ago

function(filtered_gtf, group_by = "gene_id")

for a every unique group_by value, take the lowest start as unit_start and the highest end as unit_end. Return a tibble that could be put in a database. It should have these fields:

# [1] "chr"             "strand"          "gene_id"         "gene_name"
# [5] "agg_start"       "agg_end"         "source"          "transcript_type"
# [9] "merge.count"     "agg_size"
bheavner commented 7 years ago

https://github.com/UW-GAC/genetable/commit/5d00b596e0e04c0389257022695d58568b9ef4fa