Description Usage Arguments Value Parallelisation See Also Examples
Read the .tsv
output files from methtuple
and construct a single
MethPat
object. methtuple
(www.github.com/PeteHaitch/methtuple) is Python software to extract
methylation patterns at methylation loci from BAM
files.
All files should contain the same size m-tuples, e.g., all 2-tuples. All
files should be mapped against the same reference genome, which is supplied
as the seqinfo
argument.
1 2 3 |
files |
The |
sample_names |
The sample names of each file. Must be unique. |
methinfo |
A |
seqinfo |
A |
verbose |
A |
bpparam |
A |
A MethPat
object
Parallelisation of readMethtuple
is partially supported. Files
may be decompressed in parallel but not read-in in parallel.
Parallelisation uses the BiocParallel package. By default this uses a
MulticoreParam()
instance or the user's
preferred back-end if they have used register
.
Please consult the BiocParallel documentation for details on
registering a parallel backend and parallelisation support available on
different operating systems.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Using example data supplied with the MethylationTuples package
# Each file contains data on 20,000 tuples from a whole-genome
# bisulfite-sequencing experiment on a human frontal cortex sample
# (http://www.ncbi.nlm.nih.gov/sra/?term=SRR949193).
# 1-tuples
x <- readMethtuple(system.file("extdata", "SRR949193_20k.rmdup.CG.1.tsv.gz",
package = "MethylationTuples"), sample_names = "SRR949193_20k",
methinfo = MethInfo('CG'), seqinfo = Seqinfo(seqnames = 'chr1',
seqlengths = 249250621, isCircular = FALSE, genome = 'hg19'))
# 3-tuples
y <- readMethtuple(system.file("extdata", "SRR949193_20k.rmdup.CG.3.tsv.gz",
package = "MethylationTuples"), sample_names = "SRR949193_20k",
methinfo = MethInfo('CG'), seqinfo = Seqinfo(seqnames = 'chr1',
seqlengths = 249250621, isCircular = FALSE, genome = 'hg19'))
# Can't mix 1-tuples and 3-tuples
## Not run:
readMethtuple(c(system.file("extdata", "SRR949193_20k.rmdup.CG.1.tsv.gz",
package = "MethylationTuples"), system.file("extdata",
"SRR949193_20k.rmdup.CG.3.tsv.gz", package = "MethylationTuples")))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.