Skip to content

Commit

Permalink
Update gene_name_mapping.R
Browse files Browse the repository at this point in the history
  • Loading branch information
vyepez88 committed Jul 27, 2020
1 parent d254aca commit 8679afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drop/modules/mae-pipeline/Scripts/MAE/gene_name_mapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ gtf_dt <- import(snakemake@input$gtf) %>% as.data.table
if (!"gene_name" %in% colnames(gtf_dt)) {
gtf_dt[gene_name := gene_id]
}
gtf_dt <- gtf_dt[type == "gene", .(seqnames, start, end, strand, gene_id, gene_name, gene_type, gene_status)]
gtf_dt <- gtf_dt[type == "gene", .(seqnames, start, end, strand, gene_id, gene_name, gene_type)]

# make gene_names unique
gtf_dt[, N := 1:.N, by = gene_name] # warning message
Expand Down

0 comments on commit 8679afe

Please sign in to comment.