Skip to content

Commit

Permalink
rename gene_biotype->gene_type in GTF (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
apaul7 committed Feb 5, 2021
1 parent cfe6dbd commit ff23438
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drop/modules/mae-pipeline/MAE/gene_name_mapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ gtf_dt <- import(snakemake@input$gtf) %>% as.data.table
if (!"gene_name" %in% colnames(gtf_dt)) {
gtf_dt[gene_name := gene_id]
}
if('gene_biotype' %in% colnames(gtf_dt))
setnames(gtf_dt, 'gene_biotype', 'gene_type')
gtf_dt <- gtf_dt[type == "gene", .(seqnames, start, end, strand, gene_id, gene_name, gene_type)]

# make gene_names unique
Expand Down

0 comments on commit ff23438

Please sign in to comment.