Skip to content

Commit 9dc89af

Browse files
authored
fix chr and factor issue in chr
1 parent ac923ce commit 9dc89af

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

drop/modules/mae-pipeline/MAE/Results.R

+4-8
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,10 @@ suppressPackageStartupMessages({
4040
})
4141

4242
# Read all MAE results files
43-
rmae <- lapply(snakemake@input$mae_res, function(m){
44-
rt <- fread(m)
45-
# force UCSC chromosome style
46-
rt <- rt[!grepl("chr",contig), contig := paste0("chr",contig)]
47-
return(rt)
48-
}) %>% rbindlist()
49-
50-
# re-factor contig
43+
rmae <- lapply(snakemake@input$mae_res, fread) %>% rbindlist()
44+
45+
# re-factor contig and have all as UCSC chr style
46+
rmae <- rmae[!grepl("chr",contig), contig := paste0("chr",contig)]
5147
rmae$contig <- factor(rmae$contig)
5248

5349
# Convert results into GRanges

0 commit comments

Comments
 (0)