CombineReadsAcrossRuns: Combine multiple read lists

Description Usage Arguments Value Author(s) See Also Examples

View source: R/CombineReadsAcrossRuns.R

Description

Combines multiple lists in the same format of the same sample into one list of the said format.

Usage

1

Arguments

seqs

A list of lists, each containing equal number of numeric vectors that can be concatenated together. Both number of lists and number of variables can be arbitrary.

Value

Returns a list of the same format as the input lists

Author(s)

Jeremy J. Shen

See Also

ScanCBS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(JSSim_NormalSim1)
data(JSSim_NormalSim2)
write.table(JSSim_NormalSim1, file="JSSim_NormalSim1.txt", 
	sep="\t", quote=FALSE, row.names=FALSE, col.names=FALSE)
write.table(JSSim_NormalSim2, file="JSSim_NormalSim2.txt", 
	sep="\t", quote=FALSE, row.names=FALSE, col.names=FALSE)
JSSim_Normal1 = readSeqChiang("JSSim_NormalSim1.txt")
JSSim_Normal2 = readSeqChiang("JSSim_NormalSim2.txt")
file.remove(c("JSSim_NormalSim1.txt", "JSSim_NormalSim2.txt"))
combJSNormal = CombineReadsAcrossRuns(list(JSSim_Normal1, JSSim_Normal2))
print(c(length(JSSim_Normal1$seqF), length(JSSim_Normal2$seqF), 
	length(combJSNormal$seqF)))

seqCBS documentation built on May 2, 2019, 9:15 a.m.