Description Usage Arguments Details Value Author(s) References See Also Examples
Calculate scores for permutated read-enriched regions
1 |
nn |
ID to identify each permutation |
control |
data.frame structure obtained by loading the mapped reads with the function LoadMappedReads() |
sample |
data.frame structure obtained by loading the mapped reads with the function LoadMappedReads() |
fileOutput |
Name of the file were the results will be written |
chr |
Character vector containing the chromosome names as identified on |
chrL |
Numeric vector containing the length (bp) of the chromosomes. It should be in the same order than |
w |
Integer corresponding to the desired length of the extended reads. |
considerStrand |
Character value. "Minimum"=>Default value. Report the minimum number of hits at each nucleotide position for both strands. "Foward"=> Report the number of hits at each nucleotide position for the "foward" strands (the one denoted as "+" in "Reverse"=>Report the number of hits at each nucleotide position for the "reverse" strands (the one denoted as "-" in "Sum"=>Report the sum of number of hits at each nucleotide position for both strands. |
uniquelyMapped |
Logic value, If TRUE, only consider unquely mapped reads. |
uniquePosition |
Logic value. If TRUE, only consider reads mapped in different positions. |
norm |
Integer value. Number of hits will be reported by number of hits per |
backg |
Any region with a hit value lower than |
t |
Numeric value. Read-enriched regions are calculated as genomic regions with score values bigger than |
g |
Integer value. The maximum gap allowed between regions. Regions that are less than |
times |
To be memory efficient, CSAR will only upload to the RAM memory fragments of length |
digits |
Number of decimal digits used to report the score values |
test |
Use a score based on the poisson distribution ("Poisson") or in the ratio ("Ratio") |
The parameter values should be the same than the one used in sigWin, ChIPseqScore, and mappedReads2Nhits.
The label "control" and "sample" is asigned to each read to identify from which group they came. Labels are randomly permutated, and read-enriched regions for this new permuated dataset are calculated.
The file filePutput is created with its values being the permuated score values.
Jose M Muino, jose.muino@wur.nl
Muino et al. (submitted). Plant ChIP-seq Analyzer: An R package for the statistcal detection of protein-bound genomic regions.
Kaufmann et al.(2009).Target genes of the MADS transcription factor SEPALLATA3: integration of developmental and hormonal pathways in the Arabidopsis flower. PLoS Biology; 7(4):e1000090.
CSAR-package,getPermutatedWinScores
1 2 3 4 5 6 7 8 9 10 | ##For this example we will use the a subset of the SEP3 ChIP-seq data (Kaufmann, 2009)
data("CSAR-dataset");
##We calculate the number of hits for each nucleotide posotion for the control and sample. We do that just for chromosome chr1, and for positions 1 to 10kb
nhitsS<-mappedReads2Nhits(sampleSEP3_test,file="sampleSEP3_test",chr=c("CHR1v01212004"),chrL=c(10000))
nhitsC<-mappedReads2Nhits(controlSEP3_test,file="controlSEP3_test",chr=c("CHR1v01212004"),chrL=c(10000))
##We calculate two sets of read-enrichment scores through permutation
permutatedWinScores(nn=1,sample=sampleSEP3_test,control=controlSEP3_test,fileOutput="test",chr=c("CHR1v01212004"),chrL=c(100000))
permutatedWinScores(nn=2,sample=sampleSEP3_test,control=controlSEP3_test,fileOutput="test",chr=c("CHR1v01212004"),chrL=c(100000))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.