Mercurial > repos > morinlab > correct_read_counter
comparison correctReads.R @ 0:75c4a4c32bae draft default tip
planemo upload for repository https://github.com/morinlab/tools-morinlab/tree/master/tools/correct_read_counter commit 4ef2d91b7c1686a2696b92fe538d4aec51d05e40-dirty
| author | morinlab |
|---|---|
| date | Tue, 11 Oct 2016 14:18:25 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:75c4a4c32bae |
|---|---|
| 1 library(TitanCNA) | |
| 2 version <- "0.1.1" | |
| 3 args <- commandArgs(TRUE) | |
| 4 | |
| 5 tumWig <- args[1] | |
| 6 normWig <- args[2] | |
| 7 gc <- args[3] | |
| 8 map <- args[4] | |
| 9 target_list <- args[5] | |
| 10 outfile <- args[6] | |
| 11 | |
| 12 message('titan: Correcting GC content and mappability biases...') | |
| 13 | |
| 14 if( !is.null(target_list) ){ | |
| 15 target_list_data <- read.table(target_list, sep="\t", header=F, stringsAsFactors=F) | |
| 16 cnData <- correctReadDepth(tumWig, normWig, gc, map, targetedSequence = target_list_data) | |
| 17 } else { | |
| 18 cnData <- correctReadDepth(tumWig, normWig, gc, map) | |
| 19 } | |
| 20 | |
| 21 write.table(cnData, file = outfile, col.names = TRUE, row.names = FALSE, quote = FALSE, sep ="\t") |
