Mercurial > repos > davidecangelosi > pipe_t
comparison pipe-t.R @ 4:e248cd7769e8 draft
planemo upload for repository https://github.com/igg-molecular-biology-lab/pipe-t.git commit fe7763760d58ae2b51441b67162bb5f86cffa91e
author | davidecangelosi |
---|---|
date | Mon, 06 May 2019 06:31:30 -0400 |
parents | e2fcf5a4609c |
children | 29a8df9f543d |
comparison
equal
deleted
inserted
replaced
3:e2fcf5a4609c | 4:e248cd7769e8 |
---|---|
175 file.header <- readLines(con=readfile, n=100) | 175 file.header <- readLines(con=readfile, n=100) |
176 n.header <- grep("^#", file.header) | 176 n.header <- grep("^#", file.header) |
177 if (length(n.header)==0) | 177 if (length(n.header)==0) |
178 n.header <- 0 | 178 n.header <- 0 |
179 # Read data, skip the required lines | 179 # Read data, skip the required lines |
180 out <- read.delim(file=readfile, header=FALSE, colClasses="character", nrows=nspots*n.data[i], skip=n.header, strip.white=TRUE, ...) | 180 out <- read.delim(file=readfile, header=TRUE, colClasses="character", nrows=nspots*n.data[i], skip=n.header-1, strip.white=TRUE, ...) |
181 # Return | 181 # Return |
182 out | 182 out |
183 } # .readCtSDS | 183 } # .readCtSDS |
184 | 184 |
185 .readCtLightCycler <- | 185 .readCtLightCycler <- |
254 !missing(position) | !missing(Ct)) { | 254 !missing(position) | !missing(Ct)) { |
255 warning("Please use 'column.info' for providing a list of column numbers containing particular information. The use of 'flag', 'feature', 'type', 'position' and 'Ct' is deprecated and will be removed in future versions.") | 255 warning("Please use 'column.info' for providing a list of column numbers containing particular information. The use of 'flag', 'feature', 'type', 'position' and 'Ct' is deprecated and will be removed in future versions.") |
256 } | 256 } |
257 if (missing(column.info)) { | 257 if (missing(column.info)) { |
258 column.info <- switch(format, EDS = list(flag="EXPFAIL", feature="Target.Name", position="Well.Position", Ct="CT"), | 258 column.info <- switch(format, EDS = list(flag="EXPFAIL", feature="Target.Name", position="Well.Position", Ct="CT"), |
259 plain = list(flag = 4, | 259 plain = list(flag = 4, feature = 6, type = 7, position = 3, Ct = 8), |
260 feature = 6, type = 7, position = 3, Ct = 8), SDS = list(flag = 4, | 260 #SDS = list(flag = 4,feature = 6, type = 7, position = 3, Ct = 8), |
261 feature = 6, type = 7, position = 3, Ct = 8), LightCycler = list(feature = "Name", | 261 SDS = list(flag = "Omit",feature = "Detector", type = "Task", position = "Wells", Ct = "Ct"), |
262 LightCycler = list(feature = "Name", | |
262 position = "Pos", Ct = "Cp"), CFX = list(feature = "Content", | 263 position = "Pos", Ct = "Cp"), CFX = list(feature = "Content", |
263 position = "Well", Ct = "Cq.Mean"), OpenArray = list(flag = "ThroughHole.Outlier", | 264 position = "Well", Ct = "Cq.Mean"), OpenArray = list(flag = "ThroughHole.Outlier", |
264 feature = "Assay.Assay.ID", type = "Assay.Assay.Type", | 265 feature = "Assay.Assay.ID", type = "Assay.Assay.Type", |
265 position = "ThroughHole.Address", Ct = "ThroughHole.Ct"), | 266 position = "ThroughHole.Address", Ct = "ThroughHole.Ct"), |
266 BioMark = list(flag = "Call", feature = "Name.1", | 267 BioMark = list(flag = "Call", feature = "Name.1", |