seqsumm_out.txt
.
runSeqsumm(summ.win=50, file=NULL, folder=NULL, output.file="seqsumm_out.txt", samtools.path="samtools")
readSeqsumm
will look for seqsumm_out.txt
.
seqsumm_out.txt
(or the indicated name), which will be read by the function readSeqsumm
, is generated in the indicated folder. Therefore, you only need to call this function once, unless you want to generate a new file with other input/parameters.
The output file has chromosome, window, mean GC and mean mapping quality columns, and either a count column for single-end alignments or five count columns for paired-end alignments:
- Type 1. Mapped with correct orientation and within insert size.
- Type 2. Mapped with correct orientation and uniquely, but wrong insert size.
- Type 3. Mapped within the insert size but wrong orientation.
- Type 4. Mapped uniquely, but wrong orientation and insert size.
- Type 5. One of the mates in unmapped.
See seqsumm_HCC1143
for an example table generated by the function.
The function does not return anything.
file.copy(file.path(system.file(package="seqCNA"), "extdata/test.sam"), tempdir())
tempdir()
window.size = 50
runSeqsumm(window.size, folder=tempdir())
Run the code above in your browser using DataLab