Description Usage Arguments Value Author(s) See Also Examples
This function takes mapped paired NGS reads in the format of a GenomicRangesList object where the two end of the reads are in the GenomicRanges paired_reads_1 and paired_reads_2. It prepares the digestion file from the genome supplied to it with the given restriction enzyme and specificity and maps the reads to the fragments.
1 2 | mapReadsToRestrictionSites(pairedReadsFile, sampleName,
BSgenomeName, genome, restrictionSite, enzyme, parallel=F, cores=1)
|
pairedReadsFile |
R object of GenomicRangesList containing paired_reads_1 and paired_reads_2 GenomicRanges with the paired mapped reads from a Hi-C experiment. |
sampleName |
A character string that will be used to name the exported R object file with the mapped reads containing a GenomicRangesList with slots locus1 and locus2. It will be saved in the current directory. |
BSgenomeName |
A character string of the BSgenome package required to make the restriction fragment file containing information for both the organism the experiment was made in, and the genome version the reads were mapped to. The default is the current human genome build 'BSgenome.Hsapiens.UCSC.hg19'. |
genome |
The BSgenome package required to make the restriction fragment file containing information for both the organism the experiment was made in, and the genome version the reads were mapped to. The default is the current human genome build BSgenome.Hsapiens.UCSC.hg19. |
restrictionSite |
A character string that specifies the enzymes recognition site, ^ indicating where the enzyme actually cuts. The default is the HindIII restriction site: 'A^AGCTT'. |
enzyme |
A character string containing the name of the enzyme used during the Hi-C experiment (i.e. "HindIII", "NcoI"). The default is "HindIII". |
parallel |
Logical argument. If TRUE the mapping will be performed faster using multiple cores. The default is FALSE. |
cores |
An integer specifying the number of cores used in the parallel processing if parellel=TRUE. The default is 1. |
A GenomicRangesList
locus1 |
GenomicRanges with the coordinates of the start of the fragment where one end of the read mapped |
locus2 |
GenomicRanges with the coordinates of the start of the fragment where the other end of the read mapped |
Borbala Mifsud and Robert Sugar
1 2 3 4 5 | library(GOTHiC)
data(lymphoid_chr20_paired_filtered)
mapped=mapReadsToRestrictionSites(filtered, sampleName='lymphoid_chr20',
BSgenomeName='BSgenome.Hsapiens.UCSC.hg18', genome=BSgenome.Hsapiens.UCSC.hg18,
restrictionSite='A^AGCTT', enzyme='HindIII', parallel=FALSE, cores=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.