Statistiques
| Branche: | Révision :

root / doc / sphinx_doc / build / text / ref.txt @ 9fdbfada

Historique | Voir | Annoter | Télécharger (32,36 ko)

1 935a568c Florent Chuffart
2 935a568c Florent Chuffart
References
3 935a568c Florent Chuffart
**********
4 935a568c Florent Chuffart
5 935a568c Florent Chuffart
6 935a568c Florent Chuffart
Python Reference
7 935a568c Florent Chuffart
================
8 935a568c Florent Chuffart
9 55c1cdff Florent Chuffart
configurator.CSV_SAMPLE_FILE = None
10 55c1cdff Florent Chuffart
11 55c1cdff Florent Chuffart
   Path to cvs file that contains sample information.
12 55c1cdff Florent Chuffart
13 55c1cdff Florent Chuffart
configurator.BOWTIE_BUILD_BIN = None
14 55c1cdff Florent Chuffart
15 55c1cdff Florent Chuffart
   Path for bowtie2 build bin.
16 55c1cdff Florent Chuffart
17 55c1cdff Florent Chuffart
configurator.BOWTIE2_BIN = None
18 55c1cdff Florent Chuffart
19 55c1cdff Florent Chuffart
   Path for bowtie2 bin.
20 55c1cdff Florent Chuffart
21 55c1cdff Florent Chuffart
configurator.SAMTOOLS_BIN = None
22 55c1cdff Florent Chuffart
23 55c1cdff Florent Chuffart
   Path for samtools bin.
24 55c1cdff Florent Chuffart
25 55c1cdff Florent Chuffart
configurator.BEDTOOLS_BIN = None
26 55c1cdff Florent Chuffart
27 55c1cdff Florent Chuffart
   Path for bedtools bin.
28 55c1cdff Florent Chuffart
29 55c1cdff Florent Chuffart
configurator.TF_BIN = None
30 55c1cdff Florent Chuffart
31 55c1cdff Florent Chuffart
   Path for TemplateFilter bin.
32 55c1cdff Florent Chuffart
33 55c1cdff Florent Chuffart
configurator.TF_TEMPLATES_FILE = None
34 55c1cdff Florent Chuffart
35 55c1cdff Florent Chuffart
   Path for TemplateFilter templates file.
36 55c1cdff Florent Chuffart
37 55c1cdff Florent Chuffart
configurator.ILLUMINA_OUTPUTFILE_PREFIX = None
38 55c1cdff Florent Chuffart
39 55c1cdff Florent Chuffart
   Prefix for Illumina fastq output files.
40 55c1cdff Florent Chuffart
41 55c1cdff Florent Chuffart
configurator.INDEX_DIR = None
42 55c1cdff Florent Chuffart
43 55c1cdff Florent Chuffart
   Path for index dir.
44 55c1cdff Florent Chuffart
45 55c1cdff Florent Chuffart
configurator.ALIGN_DIR = None
46 55c1cdff Florent Chuffart
47 55c1cdff Florent Chuffart
   Path for align dir.
48 55c1cdff Florent Chuffart
49 55c1cdff Florent Chuffart
configurator.LOG_DIR = None
50 55c1cdff Florent Chuffart
51 55c1cdff Florent Chuffart
   Path for log dir
52 55c1cdff Florent Chuffart
53 55c1cdff Florent Chuffart
configurator.CACHE_DIR = None
54 55c1cdff Florent Chuffart
55 55c1cdff Florent Chuffart
   Path for cache dir.
56 55c1cdff Florent Chuffart
57 55c1cdff Florent Chuffart
configurator.RESULTS_DIR = None
58 55c1cdff Florent Chuffart
59 55c1cdff Florent Chuffart
   Path for results dir
60 55c1cdff Florent Chuffart
61 55c1cdff Florent Chuffart
configurator.FASTA_REFERENCE_GENOME_FILES = None
62 55c1cdff Florent Chuffart
63 55c1cdff Florent Chuffart
   Dictionary where each fasta reference genomes is indexed by
64 55c1cdff Florent Chuffart
   reference strain that it corresponds.
65 55c1cdff Florent Chuffart
66 55c1cdff Florent Chuffart
configurator.AREA_BLACK_LIST = None
67 55c1cdff Florent Chuffart
68 55c1cdff Florent Chuffart
   Dictionary where keys are strain and values are black listed of
69 55c1cdff Florent Chuffart
   geneome region.
70 55c1cdff Florent Chuffart
71 55c1cdff Florent Chuffart
configurator.FASTA_INDEXES = None
72 55c1cdff Florent Chuffart
73 55c1cdff Florent Chuffart
   Dictionary of strain that indexes dictionaries where keys are
74 55c1cdff Florent Chuffart
   chromosome reference from Fastq file and value are its
75 55c1cdff Florent Chuffart
   correspondance for Templatefilter.
76 55c1cdff Florent Chuffart
77 55c1cdff Florent Chuffart
configurator.C2C_FILES = None
78 55c1cdff Florent Chuffart
79 55c1cdff Florent Chuffart
   Dictionary where each strain combination indexes genome aligment.
80 55c1cdff Florent Chuffart
81 55c1cdff Florent Chuffart
configurator.READ_LENGTH = None
82 55c1cdff Florent Chuffart
83 55c1cdff Florent Chuffart
   Length of Illumina reads.
84 55c1cdff Florent Chuffart
85 55c1cdff Florent Chuffart
configurator.MAPQ_THRES = None
86 55c1cdff Florent Chuffart
87 55c1cdff Florent Chuffart
   Aligment quality thresold.
88 55c1cdff Florent Chuffart
89 55c1cdff Florent Chuffart
configurator.TF_CORR = None
90 55c1cdff Florent Chuffart
91 55c1cdff Florent Chuffart
   TemplateFilter Template correlation threshold.
92 55c1cdff Florent Chuffart
93 55c1cdff Florent Chuffart
configurator.TF_MINW = None
94 55c1cdff Florent Chuffart
95 55c1cdff Florent Chuffart
   TemplateFilter minimum width of a nucleosome.
96 55c1cdff Florent Chuffart
97 55c1cdff Florent Chuffart
configurator.TF_MAXW = None
98 55c1cdff Florent Chuffart
99 55c1cdff Florent Chuffart
   TemplateFilter maximum  width of a nucleosome.
100 55c1cdff Florent Chuffart
101 55c1cdff Florent Chuffart
configurator.TF_OL = None
102 55c1cdff Florent Chuffart
103 55c1cdff Florent Chuffart
   TemplateFilter maximum allowed overlap for two nucleosomes.
104 55c1cdff Florent Chuffart
105 55c1cdff Florent Chuffart
libcoverage.create_bowtie_index(strain, strain_fasta_ref, index_dir, bowtie_build_bin)
106 55c1cdff Florent Chuffart
107 55c1cdff Florent Chuffart
   Creates bowtie index for a strain *strain*.
108 55c1cdff Florent Chuffart
109 55c1cdff Florent Chuffart
   Parameters:
110 55c1cdff Florent Chuffart
      * **strain** -- the strain reference.
111 55c1cdff Florent Chuffart
112 55c1cdff Florent Chuffart
      * **strain_fasta_ref** -- fasta reference genome.
113 55c1cdff Florent Chuffart
114 55c1cdff Florent Chuffart
      * **index_dir** -- directories where to put bowtie index.
115 55c1cdff Florent Chuffart
116 55c1cdff Florent Chuffart
      * **bowtie_build_bin** -- bowtie2 build binary.
117 55c1cdff Florent Chuffart
118 55c1cdff Florent Chuffart
libcoverage.align_reads(sample, align_dir, log_dir, index_dir, illumina_outputfile_prefix, bowtie2_bin, samtools_bin, bedtools_bin)
119 55c1cdff Florent Chuffart
120 55c1cdff Florent Chuffart
   Aligns reads to reference genomes. It produces .sam files, that are
121 55c1cdff Florent Chuffart
   converted to .bam, that are converted to .bed.
122 55c1cdff Florent Chuffart
123 55c1cdff Florent Chuffart
   Parameters:
124 55c1cdff Florent Chuffart
      * **sample** -- a dict that describe a sample.
125 55c1cdff Florent Chuffart
126 55c1cdff Florent Chuffart
      * **align_dir** -- directory where aligned reads will be
127 55c1cdff Florent Chuffart
        stored.
128 55c1cdff Florent Chuffart
129 55c1cdff Florent Chuffart
      * **log_dir** -- directory where logs will be stored.
130 55c1cdff Florent Chuffart
131 55c1cdff Florent Chuffart
      * **illumina_outputfile_prefix** -- prefix of Illumina
132 55c1cdff Florent Chuffart
        sequencer fastq.gz output files.
133 55c1cdff Florent Chuffart
134 55c1cdff Florent Chuffart
      * **bowtie2_bin** -- bowtie2 binary.
135 55c1cdff Florent Chuffart
136 55c1cdff Florent Chuffart
      * **samtools_bin** -- samtools binary.
137 55c1cdff Florent Chuffart
138 55c1cdff Florent Chuffart
      * **bedtools_bin** -- bedtools binary.
139 55c1cdff Florent Chuffart
140 55c1cdff Florent Chuffart
      * **index_dir** -- bowtie index directory.
141 55c1cdff Florent Chuffart
142 55c1cdff Florent Chuffart
libcoverage.split_fr_4_TF(sample, align_dir, fasta_indexes, area_black_list, read_length, mapq_thres)
143 55c1cdff Florent Chuffart
144 55c1cdff Florent Chuffart
   Create TempleFilter input files form bed files. This function
145 55c1cdff Florent Chuffart
   appends in two times. First, it collects reads from bed files and
146 55c1cdff Florent Chuffart
   feeds a datastructure
147 55c1cdff Florent Chuffart
148 55c1cdff Florent Chuffart
   Parameters:
149 55c1cdff Florent Chuffart
      * **sample** -- a dict that describe a sample.
150 55c1cdff Florent Chuffart
151 55c1cdff Florent Chuffart
      * **align_dir** -- directory where aligned reads will be
152 55c1cdff Florent Chuffart
        stored.
153 55c1cdff Florent Chuffart
154 55c1cdff Florent Chuffart
      * **fasta_index** -- the chr reference from the illumina
155 55c1cdff Florent Chuffart
        output file.
156 55c1cdff Florent Chuffart
157 55c1cdff Florent Chuffart
      * **area_black_list** -- the description of genome that will
158 55c1cdff Florent Chuffart
        be omit.
159 55c1cdff Florent Chuffart
160 55c1cdff Florent Chuffart
      * **read_length** -- Length of Illumina reads.
161 55c1cdff Florent Chuffart
162 55c1cdff Florent Chuffart
      * **mapq_thres** -- mapping quality criterion threshold, see
163 55c1cdff Florent Chuffart
        MAPQ in BED/BAM file format.
164 55c1cdff Florent Chuffart
165 55c1cdff Florent Chuffart
libcoverage.template_filter(sample, align_dir, log_dir, tf_bin, tf_templates_file, corr, minw, maxw, ol)
166 55c1cdff Florent Chuffart
167 55c1cdff Florent Chuffart
   Run TemplateFilter on a specifi sample. It produces .tab file.
168 55c1cdff Florent Chuffart
169 55c1cdff Florent Chuffart
   Parameters:
170 55c1cdff Florent Chuffart
      * **sample** -- a dict that describe a sample.
171 55c1cdff Florent Chuffart
172 55c1cdff Florent Chuffart
      * **align_dir** -- directory where aligned reads will be
173 55c1cdff Florent Chuffart
        stored.
174 55c1cdff Florent Chuffart
175 55c1cdff Florent Chuffart
      * **log_dir** -- directory where logs will be stored.
176 55c1cdff Florent Chuffart
177 55c1cdff Florent Chuffart
      * **tf_bin** -- path to the TemplateFilter binary.
178 55c1cdff Florent Chuffart
179 55c1cdff Florent Chuffart
      * **tf_templates_file** -- path to the TemplateFilter
180 55c1cdff Florent Chuffart
        templates file.
181 55c1cdff Florent Chuffart
182 55c1cdff Florent Chuffart
      * **corr** -- correlation threshold transmits to
183 55c1cdff Florent Chuffart
        TemplateFilter.
184 55c1cdff Florent Chuffart
185 55c1cdff Florent Chuffart
      * **minw** -- minimum width of a nuc, transmits to
186 55c1cdff Florent Chuffart
        TemplateFilter.
187 55c1cdff Florent Chuffart
188 55c1cdff Florent Chuffart
      * **maxw** -- maximum width of a nuc, transmits to
189 55c1cdff Florent Chuffart
        TemplateFilter.
190 55c1cdff Florent Chuffart
191 55c1cdff Florent Chuffart
      * **ol** -- maximum overlaps for 2 nuc, transmits to
192 55c1cdff Florent Chuffart
        TemplateFilter.
193 55c1cdff Florent Chuffart
194 935a568c Florent Chuffart
195 935a568c Florent Chuffart
R Reference
196 935a568c Florent Chuffart
===========
197 935a568c Florent Chuffart
198 935a568c Florent Chuffart
199 8e9facd8 Florent Chuffart
Arabic to Roman pair list.
200 8e9facd8 Florent Chuffart
--------------------------
201 8e9facd8 Florent Chuffart
202 8e9facd8 Florent Chuffart
203 8e9facd8 Florent Chuffart
Description
204 8e9facd8 Florent Chuffart
~~~~~~~~~~~
205 8e9facd8 Florent Chuffart
206 8e9facd8 Florent Chuffart
Util to convert Arabicto Roman
207 8e9facd8 Florent Chuffart
208 8e9facd8 Florent Chuffart
209 8e9facd8 Florent Chuffart
Usage
210 8e9facd8 Florent Chuffart
~~~~~
211 8e9facd8 Florent Chuffart
212 8e9facd8 Florent Chuffart
   ARAB2ROM()
213 8e9facd8 Florent Chuffart
214 8e9facd8 Florent Chuffart
215 8e9facd8 Florent Chuffart
Author(s)
216 8e9facd8 Florent Chuffart
~~~~~~~~~
217 8e9facd8 Florent Chuffart
218 8e9facd8 Florent Chuffart
Florent Chuffart
219 8e9facd8 Florent Chuffart
220 8e9facd8 Florent Chuffart
R: False Discovery Rate
221 8e9facd8 Florent Chuffart
222 8e9facd8 Florent Chuffart
223 935a568c Florent Chuffart
False Discovery Rate
224 935a568c Florent Chuffart
--------------------
225 935a568c Florent Chuffart
226 935a568c Florent Chuffart
227 935a568c Florent Chuffart
Description
228 935a568c Florent Chuffart
~~~~~~~~~~~
229 935a568c Florent Chuffart
230 935a568c Florent Chuffart
From a vector x of independent p-values, extract the cutoff
231 935a568c Florent Chuffart
corresponding to the specified FDR. See Benjamini & Hochberg 1995
232 935a568c Florent Chuffart
paper
233 935a568c Florent Chuffart
234 935a568c Florent Chuffart
235 935a568c Florent Chuffart
Usage
236 935a568c Florent Chuffart
~~~~~
237 935a568c Florent Chuffart
238 935a568c Florent Chuffart
   FDR(x, FDR)
239 935a568c Florent Chuffart
240 935a568c Florent Chuffart
241 935a568c Florent Chuffart
Arguments
242 935a568c Florent Chuffart
~~~~~~~~~
243 935a568c Florent Chuffart
244 935a568c Florent Chuffart
"x"
245 935a568c Florent Chuffart
246 935a568c Florent Chuffart
A vector x of independent p-values.
247 935a568c Florent Chuffart
248 935a568c Florent Chuffart
"FDR"
249 935a568c Florent Chuffart
250 935a568c Florent Chuffart
The specified FDR.
251 935a568c Florent Chuffart
252 935a568c Florent Chuffart
253 935a568c Florent Chuffart
Value
254 935a568c Florent Chuffart
~~~~~
255 935a568c Florent Chuffart
256 935a568c Florent Chuffart
Return the the corresponding cutoff.
257 935a568c Florent Chuffart
258 935a568c Florent Chuffart
259 935a568c Florent Chuffart
Author(s)
260 935a568c Florent Chuffart
~~~~~~~~~
261 935a568c Florent Chuffart
262 935a568c Florent Chuffart
Gael Yvert, Florent Chuffart
263 935a568c Florent Chuffart
264 935a568c Florent Chuffart
265 935a568c Florent Chuffart
Examples
266 935a568c Florent Chuffart
~~~~~~~~
267 935a568c Florent Chuffart
268 935a568c Florent Chuffart
   print("example")
269 935a568c Florent Chuffart
270 8e9facd8 Florent Chuffart
R: Roman to Arabic pair list.
271 8e9facd8 Florent Chuffart
272 8e9facd8 Florent Chuffart
273 8e9facd8 Florent Chuffart
Roman to Arabic pair list.
274 8e9facd8 Florent Chuffart
--------------------------
275 8e9facd8 Florent Chuffart
276 8e9facd8 Florent Chuffart
277 8e9facd8 Florent Chuffart
Description
278 8e9facd8 Florent Chuffart
~~~~~~~~~~~
279 8e9facd8 Florent Chuffart
280 8e9facd8 Florent Chuffart
Util to convert Roman to Arabic
281 8e9facd8 Florent Chuffart
282 8e9facd8 Florent Chuffart
283 8e9facd8 Florent Chuffart
Usage
284 8e9facd8 Florent Chuffart
~~~~~
285 8e9facd8 Florent Chuffart
286 8e9facd8 Florent Chuffart
   ROM2ARAB()
287 8e9facd8 Florent Chuffart
288 8e9facd8 Florent Chuffart
289 8e9facd8 Florent Chuffart
Author(s)
290 8e9facd8 Florent Chuffart
~~~~~~~~~
291 8e9facd8 Florent Chuffart
292 8e9facd8 Florent Chuffart
Florent Chuffart
293 8e9facd8 Florent Chuffart
294 935a568c Florent Chuffart
R: Aggregate replicated sample's nucleosomes.
295 935a568c Florent Chuffart
296 935a568c Florent Chuffart
297 935a568c Florent Chuffart
Aggregate replicated sample's nucleosomes.
298 935a568c Florent Chuffart
------------------------------------------
299 935a568c Florent Chuffart
300 935a568c Florent Chuffart
301 935a568c Florent Chuffart
Description
302 935a568c Florent Chuffart
~~~~~~~~~~~
303 935a568c Florent Chuffart
304 935a568c Florent Chuffart
This function aggregates nucleosome for replicated samples. It uses
305 935a568c Florent Chuffart
TemplateFilter ouput of each sample as replicate. Each sample owns a
306 935a568c Florent Chuffart
set of nucleosomes computed using TemplateFilter and ordered by the
307 935a568c Florent Chuffart
position of their center. Adajacent nucleosomes are compared two by
308 935a568c Florent Chuffart
two. Comparison is based on a log likelihood ratio score. The issue of
309 935a568c Florent Chuffart
comparison is adjacents nucleosomes merge or separation. Finally the
310 935a568c Florent Chuffart
function returns a list of clusters and all computed *lod_scores*.
311 935a568c Florent Chuffart
Each cluster ows an attribute *wp* for "well positionned". This
312 935a568c Florent Chuffart
attribute is set as *TRUE* if the cluster is composed of exactly one
313 935a568c Florent Chuffart
nucleosomes of each sample.
314 935a568c Florent Chuffart
315 935a568c Florent Chuffart
316 935a568c Florent Chuffart
Usage
317 935a568c Florent Chuffart
~~~~~
318 935a568c Florent Chuffart
319 21b8928f Florent Chuffart
   aggregate_intra_strain_nucs(samples, lod_thres = 20, coord_max = 2e+07)
320 935a568c Florent Chuffart
321 935a568c Florent Chuffart
322 935a568c Florent Chuffart
Arguments
323 935a568c Florent Chuffart
~~~~~~~~~
324 935a568c Florent Chuffart
325 935a568c Florent Chuffart
"samples"
326 935a568c Florent Chuffart
327 935a568c Florent Chuffart
A list of samples. Each sample is a list like *sample = list(id=...,
328 935a568c Florent Chuffart
marker=..., strain=..., roi=..., inputs=..., outputs=...)* with *roi =
329 935a568c Florent Chuffart
list(name=..., begin=..., end=..., chr=..., genome=...)*.
330 935a568c Florent Chuffart
331 935a568c Florent Chuffart
"lod_thres"
332 935a568c Florent Chuffart
333 935a568c Florent Chuffart
Log likelihood ration threshold.
334 935a568c Florent Chuffart
335 935a568c Florent Chuffart
"coord_max"
336 935a568c Florent Chuffart
337 935a568c Florent Chuffart
A too big value to be a coord for a nucleosome lower bound.
338 935a568c Florent Chuffart
339 935a568c Florent Chuffart
340 935a568c Florent Chuffart
Value
341 935a568c Florent Chuffart
~~~~~
342 935a568c Florent Chuffart
343 935a568c Florent Chuffart
Returns a list of clusterized nucleosomes, and all computed lod
344 935a568c Florent Chuffart
scores.
345 935a568c Florent Chuffart
346 935a568c Florent Chuffart
347 935a568c Florent Chuffart
Author(s)
348 935a568c Florent Chuffart
~~~~~~~~~
349 935a568c Florent Chuffart
350 935a568c Florent Chuffart
Florent Chuffart
351 935a568c Florent Chuffart
352 935a568c Florent Chuffart
353 935a568c Florent Chuffart
Examples
354 935a568c Florent Chuffart
~~~~~~~~
355 935a568c Florent Chuffart
356 935a568c Florent Chuffart
   # Dealing with a region of interest
357 935a568c Florent Chuffart
   roi =list(name="example", begin=1000,  end=1300, chr="1", genome=rep("A",301))
358 935a568c Florent Chuffart
   samples = list()
359 935a568c Florent Chuffart
   for (i in 1:3) {
360 935a568c Florent Chuffart
       # Create TF output
361 935a568c Florent Chuffart
       tf_nuc = list("chr"=paste("chr", roi$chr, sep=""), "center"=(roi$end + roi$begin)/2, "width"= 150, "correlation.score"= 0.9)
362 935a568c Florent Chuffart
       outputs = dfadd(NULL,tf_nuc)
363 935a568c Florent Chuffart
       outputs = filter_tf_outputs(outputs, roi$chr, roi$begin, roi$end)
364 935a568c Florent Chuffart
       # Generate corresponding reads
365 935a568c Florent Chuffart
       nb_reads = round(runif(1,170,230))
366 935a568c Florent Chuffart
       reads = round(rnorm(nb_reads, tf_nuc$center,20))
367 935a568c Florent Chuffart
       u_reads = sort(unique(reads))
368 935a568c Florent Chuffart
       strands = sample(c(rep("R",ceiling(length(u_reads)/2)),rep("F",floor(length(u_reads)/2))))
369 935a568c Florent Chuffart
       counts = apply(t(u_reads), 2, function(r) { sum(reads == r)})
370 935a568c Florent Chuffart
       shifts = apply(t(strands), 2, function(s) { if (s == "F") return(-tf_nuc$width/2) else return(tf_nuc$width/2)})
371 935a568c Florent Chuffart
       u_reads = u_reads + shifts
372 935a568c Florent Chuffart
       inputs = data.frame(list("V1" = rep(roi$chr, length(u_reads)),
373 935a568c Florent Chuffart
                                "V2" = u_reads,
374 935a568c Florent Chuffart
                                                        "V3" = strands,
375 935a568c Florent Chuffart
                                                        "V4" = counts), stringsAsFactors=FALSE)
376 935a568c Florent Chuffart
       samples[[length(samples) + 1]] = list(id=1, marker="Mnase_Seq", strain="strain_ex", total_reads = 10000000, roi=roi, inputs=inputs, outputs=outputs)
377 935a568c Florent Chuffart
   }
378 935a568c Florent Chuffart
   print(aggregate_intra_strain_nucs(samples))
379 935a568c Florent Chuffart
380 935a568c Florent Chuffart
R: Aligns nucleosomes between 2 strains.
381 935a568c Florent Chuffart
382 935a568c Florent Chuffart
383 935a568c Florent Chuffart
Aligns nucleosomes between 2 strains.
384 935a568c Florent Chuffart
-------------------------------------
385 935a568c Florent Chuffart
386 935a568c Florent Chuffart
387 935a568c Florent Chuffart
Description
388 935a568c Florent Chuffart
~~~~~~~~~~~
389 935a568c Florent Chuffart
390 935a568c Florent Chuffart
This function aligns nucs between two strains for a given genome
391 935a568c Florent Chuffart
region.
392 935a568c Florent Chuffart
393 935a568c Florent Chuffart
394 935a568c Florent Chuffart
Usage
395 935a568c Florent Chuffart
~~~~~
396 935a568c Florent Chuffart
397 935a568c Florent Chuffart
   align_inter_strain_nucs(replicates, wp_nucs_strain_ref1 = NULL,
398 21b8928f Florent Chuffart
       wp_nucs_strain_ref2 = NULL, corr_thres = 0.5, lod_thres = 100,
399 8e9facd8 Florent Chuffart
       config = NULL, ...)
400 935a568c Florent Chuffart
401 935a568c Florent Chuffart
402 935a568c Florent Chuffart
Arguments
403 935a568c Florent Chuffart
~~~~~~~~~
404 935a568c Florent Chuffart
405 935a568c Florent Chuffart
"replicates"
406 935a568c Florent Chuffart
407 935a568c Florent Chuffart
Set of replicates, ideally 3 per strain.
408 935a568c Florent Chuffart
409 935a568c Florent Chuffart
"wp_nucs_strain_ref1"
410 935a568c Florent Chuffart
411 935a568c Florent Chuffart
List of aggregates nucleosome for strain 1. If it's null this list
412 935a568c Florent Chuffart
will be computed.
413 935a568c Florent Chuffart
414 935a568c Florent Chuffart
"wp_nucs_strain_ref2"
415 935a568c Florent Chuffart
416 935a568c Florent Chuffart
List of aggregates nucleosome for strain 2. If it's null this list
417 935a568c Florent Chuffart
will be computed.
418 935a568c Florent Chuffart
419 935a568c Florent Chuffart
"corr_thres"
420 935a568c Florent Chuffart
421 935a568c Florent Chuffart
Correlation threshold.
422 935a568c Florent Chuffart
423 935a568c Florent Chuffart
"lod_thres"
424 935a568c Florent Chuffart
425 935a568c Florent Chuffart
LOD cut off.
426 935a568c Florent Chuffart
427 8e9facd8 Florent Chuffart
"config"
428 8e9facd8 Florent Chuffart
429 8e9facd8 Florent Chuffart
GLOBAL config variable
430 8e9facd8 Florent Chuffart
431 935a568c Florent Chuffart
"..."
432 935a568c Florent Chuffart
433 935a568c Florent Chuffart
A list of parameters that will be passed to
434 935a568c Florent Chuffart
*aggregate_intra_strain_nucs* if needed.
435 935a568c Florent Chuffart
436 935a568c Florent Chuffart
437 935a568c Florent Chuffart
Value
438 935a568c Florent Chuffart
~~~~~
439 935a568c Florent Chuffart
440 935a568c Florent Chuffart
Returns a list of clusterized nucleosomes, and all computed lod
441 935a568c Florent Chuffart
scores.
442 935a568c Florent Chuffart
443 935a568c Florent Chuffart
444 935a568c Florent Chuffart
Author(s)
445 935a568c Florent Chuffart
~~~~~~~~~
446 935a568c Florent Chuffart
447 935a568c Florent Chuffart
Florent Chuffart
448 935a568c Florent Chuffart
449 935a568c Florent Chuffart
450 935a568c Florent Chuffart
Examples
451 935a568c Florent Chuffart
~~~~~~~~
452 935a568c Florent Chuffart
453 8e9facd8 Florent Chuffart
       # Define new translate_roi function...
454 8e9facd8 Florent Chuffart
       translate_roi = function(roi, strain2, big_roi=NULL, config=NULL) {
455 8e9facd8 Florent Chuffart
         return(roi)
456 8e9facd8 Florent Chuffart
       }
457 8e9facd8 Florent Chuffart
       # Binding it by uncomment follwing lines.
458 8e9facd8 Florent Chuffart
       unlockBinding("translate_roi", as.environment("package:nucleominer"))
459 8e9facd8 Florent Chuffart
       unlockBinding("translate_roi", getNamespace("nucleominer"))
460 8e9facd8 Florent Chuffart
       assign("translate_roi", translate_roi, "package:nucleominer")
461 8e9facd8 Florent Chuffart
       assign("translate_roi", translate_roi, getNamespace("nucleominer"))
462 8e9facd8 Florent Chuffart
       lockBinding("translate_roi", getNamespace("nucleominer"))
463 8e9facd8 Florent Chuffart
       lockBinding("translate_roi", as.environment("package:nucleominer"))
464 8e9facd8 Florent Chuffart
465 935a568c Florent Chuffart
   # Dealing with a region of interest
466 935a568c Florent Chuffart
   roi =list(name="example", begin=1000,  end=1300, chr="1", genome=rep("A",301), strain_ref1 = "STRAINREF1")
467 935a568c Florent Chuffart
   roi2 = translate_roi(roi, roi$strain_ref1)
468 935a568c Florent Chuffart
   replicates = list()
469 935a568c Florent Chuffart
   for (j in 1:2) {
470 935a568c Florent Chuffart
       samples = list()
471 935a568c Florent Chuffart
       for (i in 1:3) {
472 935a568c Florent Chuffart
           # Create TF output
473 935a568c Florent Chuffart
           tf_nuc = list("chr"=paste("chr", roi$chr, sep=""), "center"=(roi$end + roi$begin)/2, "width"= 150, "correlation.score"= 0.9)
474 935a568c Florent Chuffart
           outputs = dfadd(NULL,tf_nuc)
475 935a568c Florent Chuffart
           outputs = filter_tf_outputs(outputs, roi$chr, roi$begin, roi$end)
476 935a568c Florent Chuffart
           # Generate corresponding reads
477 935a568c Florent Chuffart
           nb_reads = round(runif(1,170,230))
478 935a568c Florent Chuffart
           reads = round(rnorm(nb_reads, tf_nuc$center,20))
479 935a568c Florent Chuffart
           u_reads = sort(unique(reads))
480 935a568c Florent Chuffart
           strands = sample(c(rep("R",ceiling(length(u_reads)/2)),rep("F",floor(length(u_reads)/2))))
481 935a568c Florent Chuffart
           counts = apply(t(u_reads), 2, function(r) { sum(reads == r)})
482 935a568c Florent Chuffart
           shifts = apply(t(strands), 2, function(s) { if (s == "F") return(-tf_nuc$width/2) else return(tf_nuc$width/2)})
483 935a568c Florent Chuffart
           u_reads = u_reads + shifts
484 935a568c Florent Chuffart
           inputs = data.frame(list("V1" = rep(roi$chr, length(u_reads)),
485 935a568c Florent Chuffart
                                    "V2" = u_reads,
486 935a568c Florent Chuffart
                                                            "V3" = strands,
487 935a568c Florent Chuffart
                                                            "V4" = counts), stringsAsFactors=FALSE)
488 935a568c Florent Chuffart
           samples[[length(samples) + 1]] = list(id=1, marker="Mnase_Seq", strain=paste("strain_ex",j,sep=""), total_reads = 10000000, roi=roi, inputs=inputs, outputs=outputs)
489 935a568c Florent Chuffart
       }
490 935a568c Florent Chuffart
       replicates[[length(replicates) + 1]] = samples
491 935a568c Florent Chuffart
   }
492 935a568c Florent Chuffart
   print(align_inter_strain_nucs(replicates))
493 935a568c Florent Chuffart
494 935a568c Florent Chuffart
R: Launch deseq methods.
495 935a568c Florent Chuffart
496 935a568c Florent Chuffart
497 935a568c Florent Chuffart
Launch deseq methods.
498 935a568c Florent Chuffart
---------------------
499 935a568c Florent Chuffart
500 935a568c Florent Chuffart
501 935a568c Florent Chuffart
Description
502 935a568c Florent Chuffart
~~~~~~~~~~~
503 935a568c Florent Chuffart
504 935a568c Florent Chuffart
This function is based on deseq example. It mormalizes data, fit data
505 935a568c Florent Chuffart
to GLM model with and without interaction term and compare the two
506 935a568c Florent Chuffart
l;=models.
507 935a568c Florent Chuffart
508 935a568c Florent Chuffart
509 935a568c Florent Chuffart
Usage
510 935a568c Florent Chuffart
~~~~~
511 935a568c Florent Chuffart
512 935a568c Florent Chuffart
   analyse_design(snep_design, reads)
513 935a568c Florent Chuffart
514 935a568c Florent Chuffart
515 935a568c Florent Chuffart
Arguments
516 935a568c Florent Chuffart
~~~~~~~~~
517 935a568c Florent Chuffart
518 935a568c Florent Chuffart
"snep_design"
519 935a568c Florent Chuffart
520 935a568c Florent Chuffart
The design to considere.
521 935a568c Florent Chuffart
522 935a568c Florent Chuffart
"reads"
523 935a568c Florent Chuffart
524 935a568c Florent Chuffart
The data to considere.
525 935a568c Florent Chuffart
526 935a568c Florent Chuffart
527 935a568c Florent Chuffart
Author(s)
528 935a568c Florent Chuffart
~~~~~~~~~
529 935a568c Florent Chuffart
530 935a568c Florent Chuffart
Florent Chuffart
531 935a568c Florent Chuffart
532 8e9facd8 Florent Chuffart
R: Stage replicates data
533 8e9facd8 Florent Chuffart
534 8e9facd8 Florent Chuffart
535 8e9facd8 Florent Chuffart
Stage replicates data
536 8e9facd8 Florent Chuffart
---------------------
537 8e9facd8 Florent Chuffart
538 8e9facd8 Florent Chuffart
539 8e9facd8 Florent Chuffart
Description
540 8e9facd8 Florent Chuffart
~~~~~~~~~~~
541 8e9facd8 Florent Chuffart
542 8e9facd8 Florent Chuffart
This function loads in memory data corresponding to the given
543 8e9facd8 Florent Chuffart
experiments.
544 8e9facd8 Florent Chuffart
545 8e9facd8 Florent Chuffart
546 8e9facd8 Florent Chuffart
Usage
547 8e9facd8 Florent Chuffart
~~~~~
548 8e9facd8 Florent Chuffart
549 8e9facd8 Florent Chuffart
   build_replicates(expe, roi, only_fetch = FALSE, get_genome = FALSE,
550 8e9facd8 Florent Chuffart
       all_samples, config = NULL)
551 8e9facd8 Florent Chuffart
552 8e9facd8 Florent Chuffart
553 8e9facd8 Florent Chuffart
Arguments
554 8e9facd8 Florent Chuffart
~~~~~~~~~
555 8e9facd8 Florent Chuffart
556 8e9facd8 Florent Chuffart
"expe"
557 8e9facd8 Florent Chuffart
558 8e9facd8 Florent Chuffart
a list of vector corresponding to vector of replicates.
559 8e9facd8 Florent Chuffart
560 8e9facd8 Florent Chuffart
"roi"
561 8e9facd8 Florent Chuffart
562 8e9facd8 Florent Chuffart
the region that we are interested in.
563 8e9facd8 Florent Chuffart
564 8e9facd8 Florent Chuffart
"only_fetch"
565 8e9facd8 Florent Chuffart
566 8e9facd8 Florent Chuffart
filter or not inputs.
567 8e9facd8 Florent Chuffart
568 8e9facd8 Florent Chuffart
"get_genome"
569 8e9facd8 Florent Chuffart
570 8e9facd8 Florent Chuffart
Load or not corresponding genome.
571 8e9facd8 Florent Chuffart
572 8e9facd8 Florent Chuffart
"all_samples"
573 8e9facd8 Florent Chuffart
574 8e9facd8 Florent Chuffart
Global list of samples.
575 8e9facd8 Florent Chuffart
576 8e9facd8 Florent Chuffart
"config"
577 8e9facd8 Florent Chuffart
578 8e9facd8 Florent Chuffart
GLOBAL config variable.
579 8e9facd8 Florent Chuffart
580 8e9facd8 Florent Chuffart
581 8e9facd8 Florent Chuffart
Author(s)
582 8e9facd8 Florent Chuffart
~~~~~~~~~
583 8e9facd8 Florent Chuffart
584 8e9facd8 Florent Chuffart
Florent Chuffart
585 8e9facd8 Florent Chuffart
586 8e9facd8 Florent Chuffart
587 8e9facd8 Florent Chuffart
Examples
588 8e9facd8 Florent Chuffart
~~~~~~~~
589 8e9facd8 Florent Chuffart
590 8e9facd8 Florent Chuffart
   # library(rjson)
591 8e9facd8 Florent Chuffart
   # library(nucleominer)
592 8e9facd8 Florent Chuffart
   #
593 8e9facd8 Florent Chuffart
   # # Read config file
594 8e9facd8 Florent Chuffart
   # json_conf_file = "nucleo_miner_config.json"
595 8e9facd8 Florent Chuffart
   # config = fromJSON(paste(readLines(json_conf_file), collapse=""))
596 8e9facd8 Florent Chuffart
   # # Read sample file
597 8e9facd8 Florent Chuffart
   # all_samples = get_content(config$CSV_SAMPLE_FILE, "cvs", sep=";", head=TRUE, stringsAsFactors=FALSE)
598 8e9facd8 Florent Chuffart
   # # here are the sample ids in a list
599 8e9facd8 Florent Chuffart
   # expes = list(c(1))
600 8e9facd8 Florent Chuffart
   # # here is the region that we wnt to see the coverage
601 8e9facd8 Florent Chuffart
   # cur = list(chr="8", begin=472000, end=474000, strain_ref="BY")
602 8e9facd8 Florent Chuffart
   # # it displays the corverage
603 8e9facd8 Florent Chuffart
   # replicates = build_replicates(expes, cur, all_samples=all_samples, config=config)
604 8e9facd8 Florent Chuffart
   # out = watch_samples(replicates, config$READ_LENGTH,
605 8e9facd8 Florent Chuffart
   #       plot_coverage = TRUE,
606 8e9facd8 Florent Chuffart
   #       plot_squared_reads = FALSE,
607 8e9facd8 Florent Chuffart
   #       plot_ref_genome = FALSE,
608 8e9facd8 Florent Chuffart
   #       plot_arrow_raw_reads = FALSE,
609 8e9facd8 Florent Chuffart
   #       plot_arrow_nuc_reads = FALSE,
610 8e9facd8 Florent Chuffart
   #       plot_gaussian_reads = FALSE,
611 8e9facd8 Florent Chuffart
   #       plot_gaussian_unified_reads = FALSE,
612 8e9facd8 Florent Chuffart
   #       plot_ellipse_nucs = FALSE,
613 8e9facd8 Florent Chuffart
   #       plot_wp_nucs = FALSE,
614 8e9facd8 Florent Chuffart
   #       plot_wp_nuc_model = FALSE,
615 8e9facd8 Florent Chuffart
   #       plot_common_nucs = FALSE,
616 8e9facd8 Florent Chuffart
   #       height = 50)
617 8e9facd8 Florent Chuffart
618 21b8928f Florent Chuffart
R: reformat an "apply manipulated" list of regions
619 21b8928f Florent Chuffart
620 21b8928f Florent Chuffart
621 21b8928f Florent Chuffart
reformat an "apply manipulated" list of regions
622 21b8928f Florent Chuffart
-----------------------------------------------
623 21b8928f Florent Chuffart
624 21b8928f Florent Chuffart
625 21b8928f Florent Chuffart
Description
626 21b8928f Florent Chuffart
~~~~~~~~~~~
627 21b8928f Florent Chuffart
628 21b8928f Florent Chuffart
Utils to reformat an "apply manipulated" list of regions
629 21b8928f Florent Chuffart
630 21b8928f Florent Chuffart
631 21b8928f Florent Chuffart
Usage
632 21b8928f Florent Chuffart
~~~~~
633 21b8928f Florent Chuffart
634 21b8928f Florent Chuffart
   collapse_regions(regions)
635 21b8928f Florent Chuffart
636 21b8928f Florent Chuffart
637 21b8928f Florent Chuffart
Arguments
638 21b8928f Florent Chuffart
~~~~~~~~~
639 21b8928f Florent Chuffart
640 21b8928f Florent Chuffart
+-----------------+------+
641 21b8928f Florent Chuffart
+-----------------+------+
642 21b8928f Florent Chuffart
643 21b8928f Florent Chuffart
644 21b8928f Florent Chuffart
Author(s)
645 21b8928f Florent Chuffart
~~~~~~~~~
646 21b8928f Florent Chuffart
647 21b8928f Florent Chuffart
Florent Chuffart
648 21b8928f Florent Chuffart
649 8e9facd8 Florent Chuffart
R: Compute Common Uninterrupted Regions (CUR)
650 8e9facd8 Florent Chuffart
651 8e9facd8 Florent Chuffart
652 8e9facd8 Florent Chuffart
Compute Common Uninterrupted Regions (CUR)
653 8e9facd8 Florent Chuffart
------------------------------------------
654 8e9facd8 Florent Chuffart
655 8e9facd8 Florent Chuffart
656 8e9facd8 Florent Chuffart
Description
657 8e9facd8 Florent Chuffart
~~~~~~~~~~~
658 8e9facd8 Florent Chuffart
659 8e9facd8 Florent Chuffart
CURs are regions that can be aligned between the genomes
660 8e9facd8 Florent Chuffart
661 8e9facd8 Florent Chuffart
662 8e9facd8 Florent Chuffart
Usage
663 8e9facd8 Florent Chuffart
~~~~~
664 8e9facd8 Florent Chuffart
665 8e9facd8 Florent Chuffart
   compute_inter_all_strain_curs(diff_allowed = 10, min_cur_width = 200,
666 8e9facd8 Florent Chuffart
       config = NULL, plot = FALSE)
667 8e9facd8 Florent Chuffart
668 8e9facd8 Florent Chuffart
669 8e9facd8 Florent Chuffart
Arguments
670 8e9facd8 Florent Chuffart
~~~~~~~~~
671 8e9facd8 Florent Chuffart
672 8e9facd8 Florent Chuffart
"diff_allowed"
673 8e9facd8 Florent Chuffart
674 8e9facd8 Florent Chuffart
the maximum indel width allowe din a CUR
675 8e9facd8 Florent Chuffart
676 8e9facd8 Florent Chuffart
"min_cur_width"
677 8e9facd8 Florent Chuffart
678 8e9facd8 Florent Chuffart
The minimum width of a CUR
679 8e9facd8 Florent Chuffart
680 8e9facd8 Florent Chuffart
"config"
681 8e9facd8 Florent Chuffart
682 8e9facd8 Florent Chuffart
GLOBAL config variable
683 8e9facd8 Florent Chuffart
684 8e9facd8 Florent Chuffart
"plot"
685 8e9facd8 Florent Chuffart
686 8e9facd8 Florent Chuffart
Plot CURs or not
687 8e9facd8 Florent Chuffart
688 8e9facd8 Florent Chuffart
689 8e9facd8 Florent Chuffart
Author(s)
690 8e9facd8 Florent Chuffart
~~~~~~~~~
691 8e9facd8 Florent Chuffart
692 8e9facd8 Florent Chuffart
Florent Chuffart
693 8e9facd8 Florent Chuffart
694 935a568c Florent Chuffart
R: Crop bound of regions according to region of interest bound
695 935a568c Florent Chuffart
696 935a568c Florent Chuffart
697 935a568c Florent Chuffart
Crop bound of regions according to region of interest bound
698 935a568c Florent Chuffart
-----------------------------------------------------------
699 935a568c Florent Chuffart
700 935a568c Florent Chuffart
701 935a568c Florent Chuffart
Description
702 935a568c Florent Chuffart
~~~~~~~~~~~
703 935a568c Florent Chuffart
704 935a568c Florent Chuffart
The fucntion is no more necessary since we remove "big_roi" bug in
705 935a568c Florent Chuffart
translate_roi function.
706 935a568c Florent Chuffart
707 935a568c Florent Chuffart
708 935a568c Florent Chuffart
Usage
709 935a568c Florent Chuffart
~~~~~
710 935a568c Florent Chuffart
711 8e9facd8 Florent Chuffart
   crop_fuzzy(tmp_fuzzy_nucs, roi, strain, config = NULL)
712 935a568c Florent Chuffart
713 935a568c Florent Chuffart
714 935a568c Florent Chuffart
Arguments
715 935a568c Florent Chuffart
~~~~~~~~~
716 935a568c Florent Chuffart
717 935a568c Florent Chuffart
"tmp_fuzzy_nucs"
718 935a568c Florent Chuffart
719 935a568c Florent Chuffart
the regiuons to be croped.
720 935a568c Florent Chuffart
721 935a568c Florent Chuffart
"roi"
722 935a568c Florent Chuffart
723 935a568c Florent Chuffart
The region of interest.
724 935a568c Florent Chuffart
725 935a568c Florent Chuffart
"strain"
726 935a568c Florent Chuffart
727 935a568c Florent Chuffart
The strain to consider.
728 935a568c Florent Chuffart
729 8e9facd8 Florent Chuffart
"config"
730 8e9facd8 Florent Chuffart
731 8e9facd8 Florent Chuffart
GLOBAL config variable
732 8e9facd8 Florent Chuffart
733 935a568c Florent Chuffart
734 935a568c Florent Chuffart
Author(s)
735 935a568c Florent Chuffart
~~~~~~~~~
736 935a568c Florent Chuffart
737 935a568c Florent Chuffart
Florent Chuffart
738 935a568c Florent Chuffart
739 935a568c Florent Chuffart
R: Adding list to a dataframe.
740 935a568c Florent Chuffart
741 935a568c Florent Chuffart
742 935a568c Florent Chuffart
Adding list to a dataframe.
743 935a568c Florent Chuffart
---------------------------
744 935a568c Florent Chuffart
745 935a568c Florent Chuffart
746 935a568c Florent Chuffart
Description
747 935a568c Florent Chuffart
~~~~~~~~~~~
748 935a568c Florent Chuffart
749 935a568c Florent Chuffart
Add a list *l* to a dataframe *df*. Create it if *df* is *NULL*.
750 935a568c Florent Chuffart
Return the dataframe *df*.
751 935a568c Florent Chuffart
752 935a568c Florent Chuffart
753 935a568c Florent Chuffart
Usage
754 935a568c Florent Chuffart
~~~~~
755 935a568c Florent Chuffart
756 935a568c Florent Chuffart
   dfadd(df, l)
757 935a568c Florent Chuffart
758 935a568c Florent Chuffart
759 935a568c Florent Chuffart
Arguments
760 935a568c Florent Chuffart
~~~~~~~~~
761 935a568c Florent Chuffart
762 935a568c Florent Chuffart
"df"
763 935a568c Florent Chuffart
764 935a568c Florent Chuffart
A dataframe
765 935a568c Florent Chuffart
766 935a568c Florent Chuffart
"l"
767 935a568c Florent Chuffart
768 935a568c Florent Chuffart
A list
769 935a568c Florent Chuffart
770 935a568c Florent Chuffart
771 935a568c Florent Chuffart
Value
772 935a568c Florent Chuffart
~~~~~
773 935a568c Florent Chuffart
774 935a568c Florent Chuffart
Return the dataframe *df*.
775 935a568c Florent Chuffart
776 935a568c Florent Chuffart
777 935a568c Florent Chuffart
Author(s)
778 935a568c Florent Chuffart
~~~~~~~~~
779 935a568c Florent Chuffart
780 935a568c Florent Chuffart
Florent Chuffart
781 935a568c Florent Chuffart
782 935a568c Florent Chuffart
783 935a568c Florent Chuffart
Examples
784 935a568c Florent Chuffart
~~~~~~~~
785 935a568c Florent Chuffart
786 935a568c Florent Chuffart
   ## Here dataframe is NULL
787 935a568c Florent Chuffart
   print(df)
788 935a568c Florent Chuffart
   df = NULL
789 935a568c Florent Chuffart
790 935a568c Florent Chuffart
   # Initialize df
791 935a568c Florent Chuffart
   df = dfadd(df, list(key1 = "value1", key2 = "value2"))
792 935a568c Florent Chuffart
   print(df)
793 935a568c Florent Chuffart
794 935a568c Florent Chuffart
   # Adding elements to df
795 935a568c Florent Chuffart
   df = dfadd(df, list(key1 = "value1'", key2 = "value2'"))
796 935a568c Florent Chuffart
   print(df)
797 935a568c Florent Chuffart
798 935a568c Florent Chuffart
R: Extract wp nucs from nuc map.
799 935a568c Florent Chuffart
800 935a568c Florent Chuffart
801 935a568c Florent Chuffart
Extract wp nucs from nuc map.
802 935a568c Florent Chuffart
-----------------------------
803 935a568c Florent Chuffart
804 935a568c Florent Chuffart
805 935a568c Florent Chuffart
Description
806 935a568c Florent Chuffart
~~~~~~~~~~~
807 935a568c Florent Chuffart
808 935a568c Florent Chuffart
Function based on common wp nuc index and roi_index.
809 935a568c Florent Chuffart
810 935a568c Florent Chuffart
811 935a568c Florent Chuffart
Usage
812 935a568c Florent Chuffart
~~~~~
813 935a568c Florent Chuffart
814 935a568c Florent Chuffart
   extract_wp(strain_maps, roi_index, strain, tmp_common_nucs)
815 935a568c Florent Chuffart
816 935a568c Florent Chuffart
817 935a568c Florent Chuffart
Arguments
818 935a568c Florent Chuffart
~~~~~~~~~
819 935a568c Florent Chuffart
820 935a568c Florent Chuffart
"strain_maps"
821 935a568c Florent Chuffart
822 935a568c Florent Chuffart
Nuc maps.
823 935a568c Florent Chuffart
824 935a568c Florent Chuffart
"roi_index"
825 935a568c Florent Chuffart
826 935a568c Florent Chuffart
The region of interest index.
827 935a568c Florent Chuffart
828 935a568c Florent Chuffart
"strain"
829 935a568c Florent Chuffart
830 935a568c Florent Chuffart
The strain to consider.
831 935a568c Florent Chuffart
832 935a568c Florent Chuffart
"tmp_common_nucs"
833 935a568c Florent Chuffart
834 935a568c Florent Chuffart
the list of wp nucs.
835 935a568c Florent Chuffart
836 935a568c Florent Chuffart
837 935a568c Florent Chuffart
Author(s)
838 935a568c Florent Chuffart
~~~~~~~~~
839 935a568c Florent Chuffart
840 935a568c Florent Chuffart
Florent Chuffart
841 935a568c Florent Chuffart
842 935a568c Florent Chuffart
R: Prefetch data
843 935a568c Florent Chuffart
844 935a568c Florent Chuffart
845 935a568c Florent Chuffart
Prefetch data
846 935a568c Florent Chuffart
-------------
847 935a568c Florent Chuffart
848 935a568c Florent Chuffart
849 935a568c Florent Chuffart
Description
850 935a568c Florent Chuffart
~~~~~~~~~~~
851 935a568c Florent Chuffart
852 935a568c Florent Chuffart
Fetch and filter inputs and outpouts per region of interest. Organize
853 935a568c Florent Chuffart
it per replicates.
854 935a568c Florent Chuffart
855 935a568c Florent Chuffart
856 935a568c Florent Chuffart
Usage
857 935a568c Florent Chuffart
~~~~~
858 935a568c Florent Chuffart
859 8e9facd8 Florent Chuffart
   fetch_mnase_replicates(strain, roi, all_samples, config = NULL,
860 8e9facd8 Florent Chuffart
       only_fetch = FALSE, get_genome = FALSE, get_ouputs = TRUE)
861 935a568c Florent Chuffart
862 935a568c Florent Chuffart
863 935a568c Florent Chuffart
Arguments
864 935a568c Florent Chuffart
~~~~~~~~~
865 935a568c Florent Chuffart
866 935a568c Florent Chuffart
"strain"
867 935a568c Florent Chuffart
868 935a568c Florent Chuffart
The strain we want mnase replicatesList of replicates. Each replicates
869 935a568c Florent Chuffart
is a vector of sample ids.
870 935a568c Florent Chuffart
871 935a568c Florent Chuffart
"roi"
872 935a568c Florent Chuffart
873 935a568c Florent Chuffart
Region of interest.
874 935a568c Florent Chuffart
875 935a568c Florent Chuffart
"all_samples"
876 935a568c Florent Chuffart
877 935a568c Florent Chuffart
Global list of samples.
878 935a568c Florent Chuffart
879 935a568c Florent Chuffart
"config"
880 935a568c Florent Chuffart
881 935a568c Florent Chuffart
GLOBAL config variable
882 935a568c Florent Chuffart
883 935a568c Florent Chuffart
"only_fetch"
884 935a568c Florent Chuffart
885 935a568c Florent Chuffart
If TRUE, only fetch and not filtering. It is used tio load sample
886 935a568c Florent Chuffart
files into memory before forking.
887 935a568c Florent Chuffart
888 935a568c Florent Chuffart
"get_genome"
889 935a568c Florent Chuffart
890 935a568c Florent Chuffart
If TRUE, load corresponding genome sequence.
891 935a568c Florent Chuffart
892 935a568c Florent Chuffart
"get_ouputs"
893 935a568c Florent Chuffart
894 935a568c Florent Chuffart
If TRUE, get also ouput corresponding TF output files.
895 935a568c Florent Chuffart
896 935a568c Florent Chuffart
897 935a568c Florent Chuffart
Author(s)
898 935a568c Florent Chuffart
~~~~~~~~~
899 935a568c Florent Chuffart
900 935a568c Florent Chuffart
Florent Chuffart
901 935a568c Florent Chuffart
902 935a568c Florent Chuffart
R: Filter TemplateFilter inputs
903 935a568c Florent Chuffart
904 935a568c Florent Chuffart
905 935a568c Florent Chuffart
Filter TemplateFilter inputs
906 935a568c Florent Chuffart
----------------------------
907 935a568c Florent Chuffart
908 935a568c Florent Chuffart
909 935a568c Florent Chuffart
Description
910 935a568c Florent Chuffart
~~~~~~~~~~~
911 935a568c Florent Chuffart
912 935a568c Florent Chuffart
This function filters TemplateFilter inputs according genome area
913 935a568c Florent Chuffart
observed properties. It takes into account reads that are at the
914 935a568c Florent Chuffart
frontier of this area and the strand of these reads.
915 935a568c Florent Chuffart
916 935a568c Florent Chuffart
917 935a568c Florent Chuffart
Usage
918 935a568c Florent Chuffart
~~~~~
919 935a568c Florent Chuffart
920 935a568c Florent Chuffart
   filter_tf_inputs(inputs, chr, x_min, x_max, nuc_width = 160,
921 21b8928f Florent Chuffart
       only_f = FALSE, only_r = FALSE, filter_for_coverage = FALSE)
922 935a568c Florent Chuffart
923 935a568c Florent Chuffart
924 935a568c Florent Chuffart
Arguments
925 935a568c Florent Chuffart
~~~~~~~~~
926 935a568c Florent Chuffart
927 935a568c Florent Chuffart
"inputs"
928 935a568c Florent Chuffart
929 935a568c Florent Chuffart
TF inputs to be filtered.
930 935a568c Florent Chuffart
931 935a568c Florent Chuffart
"chr"
932 935a568c Florent Chuffart
933 935a568c Florent Chuffart
Chromosome observed, here chr is an integer.
934 935a568c Florent Chuffart
935 935a568c Florent Chuffart
"x_min"
936 935a568c Florent Chuffart
937 935a568c Florent Chuffart
Coordinate of the first bp observed.
938 935a568c Florent Chuffart
939 935a568c Florent Chuffart
"x_max"
940 935a568c Florent Chuffart
941 935a568c Florent Chuffart
Coordinate of the last bp observed.
942 935a568c Florent Chuffart
943 935a568c Florent Chuffart
"nuc_width"
944 935a568c Florent Chuffart
945 935a568c Florent Chuffart
Nucleosome width.
946 935a568c Florent Chuffart
947 935a568c Florent Chuffart
"only_f"
948 935a568c Florent Chuffart
949 935a568c Florent Chuffart
Filter only F reads.
950 935a568c Florent Chuffart
951 935a568c Florent Chuffart
"only_r"
952 935a568c Florent Chuffart
953 935a568c Florent Chuffart
Filter only R reads.
954 935a568c Florent Chuffart
955 21b8928f Florent Chuffart
"filter_for_coverage"
956 21b8928f Florent Chuffart
957 21b8928f Florent Chuffart
Does it filter for plot coverage?
958 21b8928f Florent Chuffart
959 935a568c Florent Chuffart
960 935a568c Florent Chuffart
Value
961 935a568c Florent Chuffart
~~~~~
962 935a568c Florent Chuffart
963 935a568c Florent Chuffart
Returns filtred inputs.
964 935a568c Florent Chuffart
965 935a568c Florent Chuffart
966 935a568c Florent Chuffart
Author(s)
967 935a568c Florent Chuffart
~~~~~~~~~
968 935a568c Florent Chuffart
969 935a568c Florent Chuffart
Florent Chuffart
970 935a568c Florent Chuffart
971 935a568c Florent Chuffart
R: Filter TemplateFilter outputs
972 935a568c Florent Chuffart
973 935a568c Florent Chuffart
974 935a568c Florent Chuffart
Filter TemplateFilter outputs
975 935a568c Florent Chuffart
-----------------------------
976 935a568c Florent Chuffart
977 935a568c Florent Chuffart
978 935a568c Florent Chuffart
Description
979 935a568c Florent Chuffart
~~~~~~~~~~~
980 935a568c Florent Chuffart
981 935a568c Florent Chuffart
This function filters TemplateFilter outputs according, not only
982 935a568c Florent Chuffart
genome area observerved properties, but also correlation and overlap
983 935a568c Florent Chuffart
threshold.
984 935a568c Florent Chuffart
985 935a568c Florent Chuffart
986 935a568c Florent Chuffart
Usage
987 935a568c Florent Chuffart
~~~~~
988 935a568c Florent Chuffart
989 935a568c Florent Chuffart
   filter_tf_outputs(tf_outputs, chr, x_min, x_max, nuc_width = 160,
990 935a568c Florent Chuffart
       ol_bp = 59, corr_thres = 0.5)
991 935a568c Florent Chuffart
992 935a568c Florent Chuffart
993 935a568c Florent Chuffart
Arguments
994 935a568c Florent Chuffart
~~~~~~~~~
995 935a568c Florent Chuffart
996 935a568c Florent Chuffart
"tf_outputs"
997 935a568c Florent Chuffart
998 935a568c Florent Chuffart
TemplateFilter outputs.
999 935a568c Florent Chuffart
1000 935a568c Florent Chuffart
"chr"
1001 935a568c Florent Chuffart
1002 935a568c Florent Chuffart
Chromosome observed, here chr is an integer.
1003 935a568c Florent Chuffart
1004 935a568c Florent Chuffart
"x_min"
1005 935a568c Florent Chuffart
1006 935a568c Florent Chuffart
Coordinate of the first bp observed.
1007 935a568c Florent Chuffart
1008 935a568c Florent Chuffart
"x_max"
1009 935a568c Florent Chuffart
1010 935a568c Florent Chuffart
Coordinate of the last bp observed.
1011 935a568c Florent Chuffart
1012 935a568c Florent Chuffart
"nuc_width"
1013 935a568c Florent Chuffart
1014 935a568c Florent Chuffart
Nucleosome width.
1015 935a568c Florent Chuffart
1016 935a568c Florent Chuffart
"ol_bp"
1017 935a568c Florent Chuffart
1018 935a568c Florent Chuffart
Overlap Threshold.
1019 935a568c Florent Chuffart
1020 935a568c Florent Chuffart
"corr_thres"
1021 935a568c Florent Chuffart
1022 935a568c Florent Chuffart
Correlation threshold.
1023 935a568c Florent Chuffart
1024 935a568c Florent Chuffart
1025 935a568c Florent Chuffart
Value
1026 935a568c Florent Chuffart
~~~~~
1027 935a568c Florent Chuffart
1028 935a568c Florent Chuffart
Returns filtered TemplateFilter Outputs
1029 935a568c Florent Chuffart
1030 935a568c Florent Chuffart
1031 935a568c Florent Chuffart
Author(s)
1032 935a568c Florent Chuffart
~~~~~~~~~
1033 935a568c Florent Chuffart
1034 935a568c Florent Chuffart
Florent Chuffart
1035 935a568c Florent Chuffart
1036 21b8928f Florent Chuffart
R: to flat aggregate_intra_strain_nucs function output
1037 21b8928f Florent Chuffart
1038 21b8928f Florent Chuffart
1039 21b8928f Florent Chuffart
to flat aggregate_intra_strain_nucs function output
1040 21b8928f Florent Chuffart
---------------------------------------------------
1041 21b8928f Florent Chuffart
1042 21b8928f Florent Chuffart
1043 21b8928f Florent Chuffart
Description
1044 21b8928f Florent Chuffart
~~~~~~~~~~~
1045 21b8928f Florent Chuffart
1046 21b8928f Florent Chuffart
This function builds a dataframe of all clusters obtain from
1047 21b8928f Florent Chuffart
aggregate_intra_strain_nucs function.
1048 21b8928f Florent Chuffart
1049 21b8928f Florent Chuffart
1050 21b8928f Florent Chuffart
Usage
1051 21b8928f Florent Chuffart
~~~~~
1052 21b8928f Florent Chuffart
1053 21b8928f Florent Chuffart
   flat_aggregated_intra_strain_nucs(partial_strain_maps, roi_index)
1054 21b8928f Florent Chuffart
1055 21b8928f Florent Chuffart
1056 21b8928f Florent Chuffart
Arguments
1057 21b8928f Florent Chuffart
~~~~~~~~~
1058 21b8928f Florent Chuffart
1059 21b8928f Florent Chuffart
"partial_strain_maps"
1060 21b8928f Florent Chuffart
1061 21b8928f Florent Chuffart
the output of aggregate_intra_strain_nucs function
1062 21b8928f Florent Chuffart
1063 21b8928f Florent Chuffart
"roi_index"
1064 21b8928f Florent Chuffart
1065 21b8928f Florent Chuffart
the index of the roi involved
1066 21b8928f Florent Chuffart
1067 21b8928f Florent Chuffart
1068 21b8928f Florent Chuffart
Value
1069 21b8928f Florent Chuffart
~~~~~
1070 21b8928f Florent Chuffart
1071 21b8928f Florent Chuffart
Returns a dataframe of all clusters obtain from
1072 21b8928f Florent Chuffart
aggregate_intra_strain_nucs function.
1073 21b8928f Florent Chuffart
1074 21b8928f Florent Chuffart
1075 21b8928f Florent Chuffart
Author(s)
1076 21b8928f Florent Chuffart
~~~~~~~~~
1077 21b8928f Florent Chuffart
1078 21b8928f Florent Chuffart
Florent Chuffart
1079 21b8928f Florent Chuffart
1080 935a568c Florent Chuffart
R: flat reads
1081 935a568c Florent Chuffart
1082 935a568c Florent Chuffart
1083 935a568c Florent Chuffart
flat reads
1084 935a568c Florent Chuffart
----------
1085 935a568c Florent Chuffart
1086 935a568c Florent Chuffart
1087 935a568c Florent Chuffart
Description
1088 935a568c Florent Chuffart
~~~~~~~~~~~
1089 935a568c Florent Chuffart
1090 935a568c Florent Chuffart
Extract reads coordinates from TempleteFilter input sequence
1091 935a568c Florent Chuffart
1092 935a568c Florent Chuffart
1093 935a568c Florent Chuffart
Usage
1094 935a568c Florent Chuffart
~~~~~
1095 935a568c Florent Chuffart
1096 935a568c Florent Chuffart
   flat_reads(reads, nuc_width)
1097 935a568c Florent Chuffart
1098 935a568c Florent Chuffart
1099 935a568c Florent Chuffart
Arguments
1100 935a568c Florent Chuffart
~~~~~~~~~
1101 935a568c Florent Chuffart
1102 935a568c Florent Chuffart
"reads"
1103 935a568c Florent Chuffart
1104 935a568c Florent Chuffart
TemplateFilter input reads
1105 935a568c Florent Chuffart
1106 935a568c Florent Chuffart
"nuc_width"
1107 935a568c Florent Chuffart
1108 935a568c Florent Chuffart
Width used to shift F and R reads.
1109 935a568c Florent Chuffart
1110 935a568c Florent Chuffart
1111 935a568c Florent Chuffart
Value
1112 935a568c Florent Chuffart
~~~~~
1113 935a568c Florent Chuffart
1114 935a568c Florent Chuffart
Returns a list of F reads, R reads and joint/shifted F and R reads.
1115 935a568c Florent Chuffart
1116 935a568c Florent Chuffart
1117 935a568c Florent Chuffart
Author(s)
1118 935a568c Florent Chuffart
~~~~~~~~~
1119 935a568c Florent Chuffart
1120 935a568c Florent Chuffart
Florent Chuffart
1121 935a568c Florent Chuffart
1122 935a568c Florent Chuffart
R: Retrieve Reads
1123 935a568c Florent Chuffart
1124 935a568c Florent Chuffart
1125 935a568c Florent Chuffart
Retrieve Reads
1126 935a568c Florent Chuffart
--------------
1127 935a568c Florent Chuffart
1128 935a568c Florent Chuffart
1129 935a568c Florent Chuffart
Description
1130 935a568c Florent Chuffart
~~~~~~~~~~~
1131 935a568c Florent Chuffart
1132 935a568c Florent Chuffart
Retrieve reads for a given marker, combi, form.
1133 935a568c Florent Chuffart
1134 935a568c Florent Chuffart
1135 935a568c Florent Chuffart
Usage
1136 935a568c Florent Chuffart
~~~~~
1137 935a568c Florent Chuffart
1138 21b8928f Florent Chuffart
   get_all_reads(marker, combi, form = "wp", config = NULL)
1139 935a568c Florent Chuffart
1140 935a568c Florent Chuffart
1141 935a568c Florent Chuffart
Arguments
1142 935a568c Florent Chuffart
~~~~~~~~~
1143 935a568c Florent Chuffart
1144 935a568c Florent Chuffart
"marker"
1145 935a568c Florent Chuffart
1146 935a568c Florent Chuffart
The marker to considere.
1147 935a568c Florent Chuffart
1148 935a568c Florent Chuffart
"combi"
1149 935a568c Florent Chuffart
1150 935a568c Florent Chuffart
The starin combination to considere.
1151 935a568c Florent Chuffart
1152 935a568c Florent Chuffart
"form"
1153 935a568c Florent Chuffart
1154 935a568c Florent Chuffart
The nuc form to considere.
1155 935a568c Florent Chuffart
1156 21b8928f Florent Chuffart
"config"
1157 21b8928f Florent Chuffart
1158 21b8928f Florent Chuffart
GLOBAL config variable
1159 21b8928f Florent Chuffart
1160 935a568c Florent Chuffart
1161 935a568c Florent Chuffart
Author(s)
1162 935a568c Florent Chuffart
~~~~~~~~~
1163 935a568c Florent Chuffart
1164 935a568c Florent Chuffart
Florent Chuffart
1165 935a568c Florent Chuffart
1166 935a568c Florent Chuffart
R: get comp strand
1167 935a568c Florent Chuffart
1168 935a568c Florent Chuffart
1169 935a568c Florent Chuffart
get comp strand
1170 935a568c Florent Chuffart
---------------
1171 935a568c Florent Chuffart
1172 935a568c Florent Chuffart
1173 935a568c Florent Chuffart
Description
1174 935a568c Florent Chuffart
~~~~~~~~~~~
1175 935a568c Florent Chuffart
1176 935a568c Florent Chuffart
Compute the complementatry strand.
1177 935a568c Florent Chuffart
1178 935a568c Florent Chuffart
1179 935a568c Florent Chuffart
Usage
1180 935a568c Florent Chuffart
~~~~~
1181 935a568c Florent Chuffart
1182 935a568c Florent Chuffart
   get_comp_strand(strand)
1183 935a568c Florent Chuffart
1184 935a568c Florent Chuffart
1185 935a568c Florent Chuffart
Arguments
1186 935a568c Florent Chuffart
~~~~~~~~~
1187 935a568c Florent Chuffart
1188 935a568c Florent Chuffart
"strand"
1189 935a568c Florent Chuffart
1190 935a568c Florent Chuffart
The original strand.
1191 935a568c Florent Chuffart
1192 935a568c Florent Chuffart
1193 935a568c Florent Chuffart
Value
1194 935a568c Florent Chuffart
~~~~~
1195 935a568c Florent Chuffart
1196 935a568c Florent Chuffart
Returns the complementatry strand.
1197 935a568c Florent Chuffart
1198 935a568c Florent Chuffart
1199 935a568c Florent Chuffart
Author(s)
1200 935a568c Florent Chuffart
~~~~~~~~~
1201 935a568c Florent Chuffart
1202 935a568c Florent Chuffart
Florent Chuffart
1203 935a568c Florent Chuffart
1204 935a568c Florent Chuffart
R: Build the design for deseq
1205 935a568c Florent Chuffart
1206 935a568c Florent Chuffart
1207 935a568c Florent Chuffart
Build the design for deseq
1208 935a568c Florent Chuffart
--------------------------
1209 935a568c Florent Chuffart
1210 935a568c Florent Chuffart
1211 935a568c Florent Chuffart
Description
1212 935a568c Florent Chuffart
~~~~~~~~~~~
1213 935a568c Florent Chuffart
1214 935a568c Florent Chuffart
This function build the design according sample properties.
1215 935a568c Florent Chuffart
1216 935a568c Florent Chuffart
1217 935a568c Florent Chuffart
Usage
1218 935a568c Florent Chuffart
~~~~~
1219 935a568c Florent Chuffart
1220 935a568c Florent Chuffart
   get_design(marker, combi, all_samples)
1221 935a568c Florent Chuffart
1222 935a568c Florent Chuffart
1223 935a568c Florent Chuffart
Arguments
1224 935a568c Florent Chuffart
~~~~~~~~~
1225 935a568c Florent Chuffart
1226 935a568c Florent Chuffart
"marker"
1227 935a568c Florent Chuffart
1228 935a568c Florent Chuffart
The marker to considere.
1229 935a568c Florent Chuffart
1230 935a568c Florent Chuffart
"combi"
1231 935a568c Florent Chuffart
1232 935a568c Florent Chuffart
The starin combination to considere.
1233 935a568c Florent Chuffart
1234 935a568c Florent Chuffart
"all_samples"
1235 935a568c Florent Chuffart
1236 935a568c Florent Chuffart
Global list of samples.
1237 935a568c Florent Chuffart
1238 935a568c Florent Chuffart
1239 935a568c Florent Chuffart
Author(s)
1240 935a568c Florent Chuffart
~~~~~~~~~
1241 935a568c Florent Chuffart
1242 935a568c Florent Chuffart
Florent Chuffart
1243 935a568c Florent Chuffart
1244 935a568c Florent Chuffart
R: Compute the fuzzy nucs.
1245 935a568c Florent Chuffart
1246 935a568c Florent Chuffart
1247 935a568c Florent Chuffart
Compute the fuzzy nucs.
1248 935a568c Florent Chuffart
-----------------------
1249 935a568c Florent Chuffart
1250 935a568c Florent Chuffart
1251 935a568c Florent Chuffart
Description
1252 935a568c Florent Chuffart
~~~~~~~~~~~
1253 935a568c Florent Chuffart
1254 935a568c Florent Chuffart
This function aggregate non common wp nucs for each strain and
1255 935a568c Florent Chuffart
substract common wp nucs. It does not take care about the size of the
1256 935a568c Florent Chuffart
resulting fuzzy regions. It will be take into account in the count
1257 935a568c Florent Chuffart
read part og the pipeline.
1258 935a568c Florent Chuffart
1259 935a568c Florent Chuffart
1260 935a568c Florent Chuffart
Usage
1261 935a568c Florent Chuffart
~~~~~
1262 935a568c Florent Chuffart
1263 8e9facd8 Florent Chuffart
   get_fuzzy(combi, roi, roi_index, strain_maps, common_nuc_results,
1264 8e9facd8 Florent Chuffart
       config = NULL)
1265 935a568c Florent Chuffart
1266 935a568c Florent Chuffart
1267 935a568c Florent Chuffart
Arguments
1268 935a568c Florent Chuffart
~~~~~~~~~
1269 935a568c Florent Chuffart
1270 935a568c Florent Chuffart
"combi"
1271 935a568c Florent Chuffart
1272 935a568c Florent Chuffart
The strain combination to consider.
1273 935a568c Florent Chuffart
1274 935a568c Florent Chuffart
"roi"
1275 935a568c Florent Chuffart
1276 935a568c Florent Chuffart
The region of interest.
1277 935a568c Florent Chuffart
1278 935a568c Florent Chuffart
"roi_index"
1279 935a568c Florent Chuffart
1280 935a568c Florent Chuffart
The region of interest index.
1281 935a568c Florent Chuffart
1282 935a568c Florent Chuffart
"strain_maps"
1283 935a568c Florent Chuffart
1284 935a568c Florent Chuffart
Nuc maps.
1285 935a568c Florent Chuffart
1286 935a568c Florent Chuffart
"common_nuc_results"
1287 935a568c Florent Chuffart
1288 935a568c Florent Chuffart
Common wp nuc maps
1289 935a568c Florent Chuffart
1290 8e9facd8 Florent Chuffart
"config"
1291 8e9facd8 Florent Chuffart
1292 8e9facd8 Florent Chuffart
GLOBAL config variable
1293 8e9facd8 Florent Chuffart
1294 935a568c Florent Chuffart
1295 935a568c Florent Chuffart
Author(s)
1296 935a568c Florent Chuffart
~~~~~~~~~
1297 935a568c Florent Chuffart
1298 935a568c Florent Chuffart
Florent Chuffart
1299 935a568c Florent Chuffart
1300 935a568c Florent Chuffart
R: Compute the list of SNEPs for a given set of marker, strain...
1301 935a568c Florent Chuffart
1302 935a568c Florent Chuffart
1303 935a568c Florent Chuffart
Compute the list of SNEPs for a given set of marker, strain combination and nuc form.
1304 935a568c Florent Chuffart
-------------------------------------------------------------------------------------
1305 935a568c Florent Chuffart
1306 935a568c Florent Chuffart
1307 935a568c Florent Chuffart
Description
1308 935a568c Florent Chuffart
~~~~~~~~~~~
1309 935a568c Florent Chuffart
1310 935a568c Florent Chuffart
This function uses
1311 935a568c Florent Chuffart
1312 935a568c Florent Chuffart
1313 935a568c Florent Chuffart
Usage
1314 935a568c Florent Chuffart
~~~~~
1315 935a568c Florent Chuffart
1316 21b8928f Florent Chuffart
   get_sneps(marker, combi, form, all_samples, config = NULL)
1317 935a568c Florent Chuffart
1318 935a568c Florent Chuffart
1319 935a568c Florent Chuffart
Arguments
1320 935a568c Florent Chuffart
~~~~~~~~~
1321 935a568c Florent Chuffart
1322 935a568c Florent Chuffart
"marker"
1323 935a568c Florent Chuffart
1324 935a568c Florent Chuffart
The marker involved.
1325 935a568c Florent Chuffart
1326 935a568c Florent Chuffart
"combi"
1327 935a568c Florent Chuffart
1328 935a568c Florent Chuffart
The strain combination involved.
1329 935a568c Florent Chuffart
1330 935a568c Florent Chuffart
"form"
1331 935a568c Florent Chuffart
1332 935a568c Florent Chuffart
the nuc form involved.
1333 935a568c Florent Chuffart
1334 935a568c Florent Chuffart
"all_samples"
1335 935a568c Florent Chuffart
1336 935a568c Florent Chuffart
Global list of samples.
1337 935a568c Florent Chuffart
1338 21b8928f Florent Chuffart
"config"
1339 21b8928f Florent Chuffart
1340 21b8928f Florent Chuffart
GLOBAL config variable
1341 21b8928f Florent Chuffart
1342 935a568c Florent Chuffart
1343 935a568c Florent Chuffart
Author(s)
1344 935a568c Florent Chuffart
~~~~~~~~~
1345 935a568c Florent Chuffart
1346 935a568c Florent Chuffart
Florent Chuffart
1347 935a568c Florent Chuffart
1348 935a568c Florent Chuffart
1349 935a568c Florent Chuffart
Examples
1350 935a568c Florent Chuffart
~~~~~~~~
1351 935a568c Florent Chuffart
1352 935a568c Florent Chuffart
   marker = "H3K4me1"
1353 935a568c Florent Chuffart
   combi = c("BY", "YJM")
1354 935a568c Florent Chuffart
   form = "wpfuzzy" # "wp" | "fuzzy" | "wpfuzzy"
1355 935a568c Florent Chuffart
   # foo = get_sneps(marker, combi, form)
1356 935a568c Florent Chuffart
   # foo = get_sneps("H4K12ac", c("BY", "RM"), "wp")
1357 935a568c Florent Chuffart
1358 935a568c Florent Chuffart
R: Likelihood ratio
1359 935a568c Florent Chuffart
1360 935a568c Florent Chuffart
1361 935a568c Florent Chuffart
Likelihood ratio
1362 935a568c Florent Chuffart
----------------
1363 935a568c Florent Chuffart
1364 935a568c Florent Chuffart
1365 935a568c Florent Chuffart
Description
1366 935a568c Florent Chuffart
~~~~~~~~~~~
1367 935a568c Florent Chuffart
1368 935a568c Florent Chuffart
Compute the likelihood log of two set of value from two models Vs. a
1369 935a568c Florent Chuffart
unique model.
1370 935a568c Florent Chuffart
1371 935a568c Florent Chuffart
1372 935a568c Florent Chuffart
Usage
1373 935a568c Florent Chuffart
~~~~~
1374 935a568c Florent Chuffart
1375 935a568c Florent Chuffart
   lod_score_vecs(x, y)
1376 935a568c Florent Chuffart
1377 935a568c Florent Chuffart
1378 935a568c Florent Chuffart
Arguments
1379 935a568c Florent Chuffart
~~~~~~~~~
1380 935a568c Florent Chuffart
1381 935a568c Florent Chuffart
"x"
1382 935a568c Florent Chuffart
1383 935a568c Florent Chuffart
First vector.
1384 935a568c Florent Chuffart
1385 935a568c Florent Chuffart
"y"
1386 935a568c Florent Chuffart
1387 935a568c Florent Chuffart
Second vector.
1388 935a568c Florent Chuffart
1389 935a568c Florent Chuffart
1390 935a568c Florent Chuffart
Value
1391 935a568c Florent Chuffart
~~~~~
1392 935a568c Florent Chuffart
1393 935a568c Florent Chuffart
Returns the likelihood ratio.
1394 935a568c Florent Chuffart
1395 935a568c Florent Chuffart
1396 935a568c Florent Chuffart
Author(s)
1397 935a568c Florent Chuffart
~~~~~~~~~
1398 935a568c Florent Chuffart
1399 935a568c Florent Chuffart
Florent Chuffart
1400 935a568c Florent Chuffart
1401 935a568c Florent Chuffart
1402 935a568c Florent Chuffart
Examples
1403 935a568c Florent Chuffart
~~~~~~~~
1404 935a568c Florent Chuffart
1405 935a568c Florent Chuffart
   # LOD score for 2 set of values
1406 935a568c Florent Chuffart
   mean1=5; sd1=2; card2 = 250
1407 935a568c Florent Chuffart
   mean2=6; sd2=3; card1 = 200
1408 935a568c Florent Chuffart
   x1 = rnorm(card1, mean1, sd1)
1409 935a568c Florent Chuffart
   x2 = rnorm(card2, mean2, sd2)
1410 935a568c Florent Chuffart
   min = floor(min(c(x1,x2)))
1411 935a568c Florent Chuffart
   max = ceiling(max(c(x1,x2)))
1412 935a568c Florent Chuffart
   hist(c(x1,x2), xlim=c(min, max), breaks=min:max)
1413 935a568c Florent Chuffart
   lines(min:max,dnorm(min:max,mean1,sd1)*card1,col=2)
1414 935a568c Florent Chuffart
   lines(min:max,dnorm(min:max,mean2,sd2)*card2,col=3)
1415 935a568c Florent Chuffart
   lines(min:max,dnorm(min:max,mean(c(x1,x2)),sd(c(x1,x2)))*card2,col=4)
1416 935a568c Florent Chuffart
   lod_score_vecs(x1,x2)
1417 935a568c Florent Chuffart
1418 935a568c Florent Chuffart
R: nm
1419 935a568c Florent Chuffart
1420 935a568c Florent Chuffart
1421 935a568c Florent Chuffart
nm
1422 935a568c Florent Chuffart
--
1423 935a568c Florent Chuffart
1424 935a568c Florent Chuffart
1425 935a568c Florent Chuffart
Description
1426 935a568c Florent Chuffart
~~~~~~~~~~~
1427 935a568c Florent Chuffart
1428 935a568c Florent Chuffart
It provides a set of useful functions allowing to perform quantitative
1429 935a568c Florent Chuffart
analysis of nucleosomal epigenome.
1430 935a568c Florent Chuffart
1431 935a568c Florent Chuffart
1432 935a568c Florent Chuffart
Details
1433 935a568c Florent Chuffart
~~~~~~~
1434 935a568c Florent Chuffart
1435 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1436 935a568c Florent Chuffart
| Package:        | nucleominer                                         |
1437 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1438 935a568c Florent Chuffart
| Maintainer:     | Florent Chuffart <florent.chuffart@ens-lyon.fr>     |
1439 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1440 935a568c Florent Chuffart
| Author:         | Florent Chuffart                                    |
1441 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1442 9011a383 Florent Chuffart
| Version:        | 2.3.29                                              |
1443 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1444 935a568c Florent Chuffart
| License:        | CeCILL                                              |
1445 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1446 935a568c Florent Chuffart
| Title:          | nm                                                  |
1447 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1448 8e9facd8 Florent Chuffart
| Depends:        | seqinr, plotrix, DESeq, cachecache                  |
1449 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1450 935a568c Florent Chuffart
1451 935a568c Florent Chuffart
1452 935a568c Florent Chuffart
Author(s)
1453 935a568c Florent Chuffart
~~~~~~~~~
1454 935a568c Florent Chuffart
1455 935a568c Florent Chuffart
Florent Chuffart
1456 935a568c Florent Chuffart
1457 935a568c Florent Chuffart
R: Performaing ANOVAs
1458 935a568c Florent Chuffart
1459 935a568c Florent Chuffart
1460 935a568c Florent Chuffart
Performaing ANOVAs
1461 935a568c Florent Chuffart
------------------
1462 935a568c Florent Chuffart
1463 935a568c Florent Chuffart
1464 935a568c Florent Chuffart
Description
1465 935a568c Florent Chuffart
~~~~~~~~~~~
1466 935a568c Florent Chuffart
1467 935a568c Florent Chuffart
Counts reads and Performs ANOVAS for each common nucleosomes involved.
1468 935a568c Florent Chuffart
1469 935a568c Florent Chuffart
1470 935a568c Florent Chuffart
Usage
1471 935a568c Florent Chuffart
~~~~~
1472 935a568c Florent Chuffart
1473 935a568c Florent Chuffart
   perform_anovas(replicates, aligned_inter_strain_nucs, inputs_name = "Mnase_Seq",
1474 935a568c Florent Chuffart
       plot_anova_boxes = FALSE)
1475 935a568c Florent Chuffart
1476 935a568c Florent Chuffart
1477 935a568c Florent Chuffart
Arguments
1478 935a568c Florent Chuffart
~~~~~~~~~
1479 935a568c Florent Chuffart
1480 935a568c Florent Chuffart
"replicates"
1481 935a568c Florent Chuffart
1482 935a568c Florent Chuffart
Set of replicates, each replicate is a list of samples (ideally 3).
1483 935a568c Florent Chuffart
Each sample is a list like *sample = list(id=..., marker=...,
1484 935a568c Florent Chuffart
strain=..., roi=..., inputs=..., outputs=...)* with *roi =
1485 935a568c Florent Chuffart
list(name=..., begin=..., end=..., chr=..., genome=...)*. In the
1486 935a568c Florent Chuffart
*perform_anovas* contexte, we need 4 replicates (4 * (3 samples)): 2
1487 935a568c Florent Chuffart
strains * (1 marker + 1 input (Mnase_Seq)).
1488 935a568c Florent Chuffart
1489 935a568c Florent Chuffart
"aligned_inter_strain_nucs"
1490 935a568c Florent Chuffart
1491 935a568c Florent Chuffart
List of common nucleosomes.
1492 935a568c Florent Chuffart
1493 935a568c Florent Chuffart
"inputs_name"
1494 935a568c Florent Chuffart
1495 935a568c Florent Chuffart
Name of the input.
1496 935a568c Florent Chuffart
1497 935a568c Florent Chuffart
"plot_anova_boxes"
1498 935a568c Florent Chuffart
1499 935a568c Florent Chuffart
Plot (or not) boxplot for each nuc.
1500 935a568c Florent Chuffart
1501 935a568c Florent Chuffart
1502 935a568c Florent Chuffart
Value
1503 935a568c Florent Chuffart
~~~~~
1504 935a568c Florent Chuffart
1505 935a568c Florent Chuffart
Returns ANOVA results and comunted reads.
1506 935a568c Florent Chuffart
1507 935a568c Florent Chuffart
1508 935a568c Florent Chuffart
Author(s)
1509 935a568c Florent Chuffart
~~~~~~~~~
1510 935a568c Florent Chuffart
1511 935a568c Florent Chuffart
Florent Chuffart
1512 935a568c Florent Chuffart
1513 935a568c Florent Chuffart
R: Plot the distribution of reads.
1514 935a568c Florent Chuffart
1515 935a568c Florent Chuffart
1516 935a568c Florent Chuffart
Plot the distribution of reads.
1517 935a568c Florent Chuffart
-------------------------------
1518 935a568c Florent Chuffart
1519 935a568c Florent Chuffart
1520 935a568c Florent Chuffart
Description
1521 935a568c Florent Chuffart
~~~~~~~~~~~
1522 935a568c Florent Chuffart
1523 935a568c Florent Chuffart
This fuxntion use the deseq nomalization feature to compare
1524 935a568c Florent Chuffart
qualitatively the distribution.
1525 935a568c Florent Chuffart
1526 935a568c Florent Chuffart
1527 935a568c Florent Chuffart
Usage
1528 935a568c Florent Chuffart
~~~~~
1529 935a568c Florent Chuffart
1530 935a568c Florent Chuffart
   plot_dist_samples(strain, marker, res, all_samples, NEWPLOT = TRUE)
1531 935a568c Florent Chuffart
1532 935a568c Florent Chuffart
1533 935a568c Florent Chuffart
Arguments
1534 935a568c Florent Chuffart
~~~~~~~~~
1535 935a568c Florent Chuffart
1536 935a568c Florent Chuffart
"strain"
1537 935a568c Florent Chuffart
1538 935a568c Florent Chuffart
The strain to considere.
1539 935a568c Florent Chuffart
1540 935a568c Florent Chuffart
"marker"
1541 935a568c Florent Chuffart
1542 935a568c Florent Chuffart
The marker to considere.
1543 935a568c Florent Chuffart
1544 935a568c Florent Chuffart
"res"
1545 935a568c Florent Chuffart
1546 935a568c Florent Chuffart
Data
1547 935a568c Florent Chuffart
1548 935a568c Florent Chuffart
"all_samples"
1549 935a568c Florent Chuffart
1550 935a568c Florent Chuffart
Global list of samples.
1551 935a568c Florent Chuffart
1552 935a568c Florent Chuffart
"NEWPLOT"
1553 935a568c Florent Chuffart
1554 935a568c Florent Chuffart
If FALSE the curve will be add to the current plot.
1555 935a568c Florent Chuffart
1556 935a568c Florent Chuffart
1557 935a568c Florent Chuffart
Author(s)
1558 935a568c Florent Chuffart
~~~~~~~~~
1559 935a568c Florent Chuffart
1560 935a568c Florent Chuffart
Florent Chuffart
1561 935a568c Florent Chuffart
1562 935a568c Florent Chuffart
R: Remove wp nucs from common nucs list.
1563 935a568c Florent Chuffart
1564 935a568c Florent Chuffart
1565 935a568c Florent Chuffart
Remove wp nucs from common nucs list.
1566 935a568c Florent Chuffart
-------------------------------------
1567 935a568c Florent Chuffart
1568 935a568c Florent Chuffart
1569 935a568c Florent Chuffart
Description
1570 935a568c Florent Chuffart
~~~~~~~~~~~
1571 935a568c Florent Chuffart
1572 935a568c Florent Chuffart
It is based on common wp nucs index on nucs and region.
1573 935a568c Florent Chuffart
1574 935a568c Florent Chuffart
1575 935a568c Florent Chuffart
Usage
1576 935a568c Florent Chuffart
~~~~~
1577 935a568c Florent Chuffart
1578 935a568c Florent Chuffart
   remove_aligned_wp(strain_maps, roi_index, tmp_common_nucs, strain)
1579 935a568c Florent Chuffart
1580 935a568c Florent Chuffart
1581 935a568c Florent Chuffart
Arguments
1582 935a568c Florent Chuffart
~~~~~~~~~
1583 935a568c Florent Chuffart
1584 935a568c Florent Chuffart
"strain_maps"
1585 935a568c Florent Chuffart
1586 935a568c Florent Chuffart
Nuc maps.
1587 935a568c Florent Chuffart
1588 935a568c Florent Chuffart
"roi_index"
1589 935a568c Florent Chuffart
1590 935a568c Florent Chuffart
The region of interest index.
1591 935a568c Florent Chuffart
1592 935a568c Florent Chuffart
"tmp_common_nucs"
1593 935a568c Florent Chuffart
1594 935a568c Florent Chuffart
the list of wp nucs.
1595 935a568c Florent Chuffart
1596 935a568c Florent Chuffart
"strain"
1597 935a568c Florent Chuffart
1598 935a568c Florent Chuffart
The strain to consider.
1599 935a568c Florent Chuffart
1600 935a568c Florent Chuffart
1601 935a568c Florent Chuffart
Author(s)
1602 935a568c Florent Chuffart
~~~~~~~~~
1603 935a568c Florent Chuffart
1604 935a568c Florent Chuffart
Florent Chuffart
1605 935a568c Florent Chuffart
1606 935a568c Florent Chuffart
R: sign from strand
1607 935a568c Florent Chuffart
1608 935a568c Florent Chuffart
1609 935a568c Florent Chuffart
sign from strand
1610 935a568c Florent Chuffart
----------------
1611 935a568c Florent Chuffart
1612 935a568c Florent Chuffart
1613 935a568c Florent Chuffart
Description
1614 935a568c Florent Chuffart
~~~~~~~~~~~
1615 935a568c Florent Chuffart
1616 935a568c Florent Chuffart
Get the sign of strand
1617 935a568c Florent Chuffart
1618 935a568c Florent Chuffart
1619 935a568c Florent Chuffart
Usage
1620 935a568c Florent Chuffart
~~~~~
1621 935a568c Florent Chuffart
1622 935a568c Florent Chuffart
   sign_from_strand(strands)
1623 935a568c Florent Chuffart
1624 935a568c Florent Chuffart
1625 935a568c Florent Chuffart
Arguments
1626 935a568c Florent Chuffart
~~~~~~~~~
1627 935a568c Florent Chuffart
1628 935a568c Florent Chuffart
+-----------------+------+
1629 935a568c Florent Chuffart
+-----------------+------+
1630 935a568c Florent Chuffart
1631 935a568c Florent Chuffart
1632 935a568c Florent Chuffart
Value
1633 935a568c Florent Chuffart
~~~~~
1634 935a568c Florent Chuffart
1635 935a568c Florent Chuffart
If strand in forward then returns 1 else returns -1
1636 935a568c Florent Chuffart
1637 935a568c Florent Chuffart
1638 935a568c Florent Chuffart
Author(s)
1639 935a568c Florent Chuffart
~~~~~~~~~
1640 935a568c Florent Chuffart
1641 935a568c Florent Chuffart
Florent Chuffart
1642 935a568c Florent Chuffart
1643 935a568c Florent Chuffart
R: Substract to a list of regions an other list of regions that...
1644 935a568c Florent Chuffart
1645 935a568c Florent Chuffart
1646 935a568c Florent Chuffart
Substract to a list of regions an other list of regions that intersect it.
1647 935a568c Florent Chuffart
--------------------------------------------------------------------------
1648 935a568c Florent Chuffart
1649 935a568c Florent Chuffart
1650 935a568c Florent Chuffart
Description
1651 935a568c Florent Chuffart
~~~~~~~~~~~
1652 935a568c Florent Chuffart
1653 935a568c Florent Chuffart
This fucntion embed a recursive part. It occurs when a substracted
1654 935a568c Florent Chuffart
region split an original region on two.
1655 935a568c Florent Chuffart
1656 935a568c Florent Chuffart
1657 935a568c Florent Chuffart
Usage
1658 935a568c Florent Chuffart
~~~~~
1659 935a568c Florent Chuffart
1660 935a568c Florent Chuffart
   substract_region(region1, region2)
1661 935a568c Florent Chuffart
1662 935a568c Florent Chuffart
1663 935a568c Florent Chuffart
Arguments
1664 935a568c Florent Chuffart
~~~~~~~~~
1665 935a568c Florent Chuffart
1666 935a568c Florent Chuffart
"region1"
1667 935a568c Florent Chuffart
1668 935a568c Florent Chuffart
Original regions.
1669 935a568c Florent Chuffart
1670 935a568c Florent Chuffart
"region2"
1671 935a568c Florent Chuffart
1672 935a568c Florent Chuffart
Regions to substract.
1673 935a568c Florent Chuffart
1674 935a568c Florent Chuffart
1675 935a568c Florent Chuffart
Author(s)
1676 935a568c Florent Chuffart
~~~~~~~~~
1677 935a568c Florent Chuffart
1678 935a568c Florent Chuffart
Florent Chuffart
1679 935a568c Florent Chuffart
1680 8e9facd8 Florent Chuffart
R: Switch a pairlist
1681 8e9facd8 Florent Chuffart
1682 8e9facd8 Florent Chuffart
1683 8e9facd8 Florent Chuffart
Switch a pairlist
1684 8e9facd8 Florent Chuffart
-----------------
1685 8e9facd8 Florent Chuffart
1686 8e9facd8 Florent Chuffart
1687 8e9facd8 Florent Chuffart
Description
1688 8e9facd8 Florent Chuffart
~~~~~~~~~~~
1689 8e9facd8 Florent Chuffart
1690 8e9facd8 Florent Chuffart
Take a pairlist key:value and return the switched pairlist value:key.
1691 8e9facd8 Florent Chuffart
1692 8e9facd8 Florent Chuffart
1693 8e9facd8 Florent Chuffart
Usage
1694 8e9facd8 Florent Chuffart
~~~~~
1695 8e9facd8 Florent Chuffart
1696 8e9facd8 Florent Chuffart
   switch_pairlist(l)
1697 8e9facd8 Florent Chuffart
1698 8e9facd8 Florent Chuffart
1699 8e9facd8 Florent Chuffart
Arguments
1700 8e9facd8 Florent Chuffart
~~~~~~~~~
1701 8e9facd8 Florent Chuffart
1702 8e9facd8 Florent Chuffart
"l"
1703 8e9facd8 Florent Chuffart
1704 8e9facd8 Florent Chuffart
The pairlist to switch.
1705 8e9facd8 Florent Chuffart
1706 8e9facd8 Florent Chuffart
1707 8e9facd8 Florent Chuffart
Value
1708 8e9facd8 Florent Chuffart
~~~~~
1709 8e9facd8 Florent Chuffart
1710 8e9facd8 Florent Chuffart
The switched pairlist.
1711 8e9facd8 Florent Chuffart
1712 8e9facd8 Florent Chuffart
1713 8e9facd8 Florent Chuffart
Author(s)
1714 8e9facd8 Florent Chuffart
~~~~~~~~~
1715 8e9facd8 Florent Chuffart
1716 8e9facd8 Florent Chuffart
Florent Chuffart
1717 8e9facd8 Florent Chuffart
1718 8e9facd8 Florent Chuffart
1719 8e9facd8 Florent Chuffart
Examples
1720 8e9facd8 Florent Chuffart
~~~~~~~~
1721 8e9facd8 Florent Chuffart
1722 8e9facd8 Florent Chuffart
   l = list(key1 = "value1", key2 = "value2")
1723 8e9facd8 Florent Chuffart
   print(switch_pairlist(l))
1724 8e9facd8 Florent Chuffart
1725 935a568c Florent Chuffart
R: Translate a list of regions from a strain ref to another.
1726 935a568c Florent Chuffart
1727 935a568c Florent Chuffart
1728 935a568c Florent Chuffart
Translate a list of regions from a strain ref to another.
1729 935a568c Florent Chuffart
---------------------------------------------------------
1730 935a568c Florent Chuffart
1731 935a568c Florent Chuffart
1732 935a568c Florent Chuffart
Description
1733 935a568c Florent Chuffart
~~~~~~~~~~~
1734 935a568c Florent Chuffart
1735 935a568c Florent Chuffart
This function is an eloborated call to translate_roi.
1736 935a568c Florent Chuffart
1737 935a568c Florent Chuffart
1738 935a568c Florent Chuffart
Usage
1739 935a568c Florent Chuffart
~~~~~
1740 935a568c Florent Chuffart
1741 8e9facd8 Florent Chuffart
   translate_regions(regions, combi, roi_index, config = NULL, roi)
1742 935a568c Florent Chuffart
1743 935a568c Florent Chuffart
1744 935a568c Florent Chuffart
Arguments
1745 935a568c Florent Chuffart
~~~~~~~~~
1746 935a568c Florent Chuffart
1747 935a568c Florent Chuffart
"regions"
1748 935a568c Florent Chuffart
1749 935a568c Florent Chuffart
Regions to be translated.
1750 935a568c Florent Chuffart
1751 935a568c Florent Chuffart
"combi"
1752 935a568c Florent Chuffart
1753 935a568c Florent Chuffart
Combination of strains.
1754 935a568c Florent Chuffart
1755 935a568c Florent Chuffart
"roi_index"
1756 935a568c Florent Chuffart
1757 935a568c Florent Chuffart
The region of interest index.
1758 935a568c Florent Chuffart
1759 8e9facd8 Florent Chuffart
"config"
1760 8e9facd8 Florent Chuffart
1761 8e9facd8 Florent Chuffart
GLOBAL config variable
1762 8e9facd8 Florent Chuffart
1763 935a568c Florent Chuffart
"roi"
1764 935a568c Florent Chuffart
1765 935a568c Florent Chuffart
The region of interest.
1766 935a568c Florent Chuffart
1767 935a568c Florent Chuffart
1768 935a568c Florent Chuffart
Author(s)
1769 935a568c Florent Chuffart
~~~~~~~~~
1770 935a568c Florent Chuffart
1771 935a568c Florent Chuffart
Florent Chuffart
1772 935a568c Florent Chuffart
1773 935a568c Florent Chuffart
R: Translate coords of a genome region.
1774 935a568c Florent Chuffart
1775 935a568c Florent Chuffart
1776 935a568c Florent Chuffart
Translate coords of a genome region.
1777 935a568c Florent Chuffart
------------------------------------
1778 935a568c Florent Chuffart
1779 935a568c Florent Chuffart
1780 935a568c Florent Chuffart
Description
1781 935a568c Florent Chuffart
~~~~~~~~~~~
1782 935a568c Florent Chuffart
1783 935a568c Florent Chuffart
This function is used in the examples, usualy you have to define your
1784 935a568c Florent Chuffart
own translation function and overwrite this one using *unlockBinding*
1785 935a568c Florent Chuffart
features. Please, refer to the example.
1786 935a568c Florent Chuffart
1787 935a568c Florent Chuffart
1788 935a568c Florent Chuffart
Usage
1789 935a568c Florent Chuffart
~~~~~
1790 935a568c Florent Chuffart
1791 8e9facd8 Florent Chuffart
   translate_roi(roi, strain2, config = NULL, big_roi = NULL)
1792 935a568c Florent Chuffart
1793 935a568c Florent Chuffart
1794 935a568c Florent Chuffart
Arguments
1795 935a568c Florent Chuffart
~~~~~~~~~
1796 935a568c Florent Chuffart
1797 935a568c Florent Chuffart
"roi"
1798 935a568c Florent Chuffart
1799 935a568c Florent Chuffart
Original genome region of interest.
1800 935a568c Florent Chuffart
1801 935a568c Florent Chuffart
"strain2"
1802 935a568c Florent Chuffart
1803 935a568c Florent Chuffart
The strain in wich you want the genome region of interest.
1804 935a568c Florent Chuffart
1805 8e9facd8 Florent Chuffart
"config"
1806 935a568c Florent Chuffart
1807 8e9facd8 Florent Chuffart
GLOBAL config variable
1808 935a568c Florent Chuffart
1809 8e9facd8 Florent Chuffart
"big_roi"
1810 935a568c Florent Chuffart
1811 8e9facd8 Florent Chuffart
A largest region than roi use to filter c2c if it is needed.
1812 935a568c Florent Chuffart
1813 935a568c Florent Chuffart
1814 935a568c Florent Chuffart
Author(s)
1815 935a568c Florent Chuffart
~~~~~~~~~
1816 935a568c Florent Chuffart
1817 935a568c Florent Chuffart
Florent Chuffart
1818 935a568c Florent Chuffart
1819 935a568c Florent Chuffart
1820 935a568c Florent Chuffart
Examples
1821 935a568c Florent Chuffart
~~~~~~~~
1822 935a568c Florent Chuffart
1823 935a568c Florent Chuffart
   # Define new translate_roi function...
1824 8e9facd8 Florent Chuffart
   translate_roi = function(roi, strain2, config) {
1825 935a568c Florent Chuffart
       strain1 = roi$strain_ref
1826 935a568c Florent Chuffart
       if (strain1 == strain2) {
1827 935a568c Florent Chuffart
           return(roi)
1828 935a568c Florent Chuffart
       } else {
1829 935a568c Florent Chuffart
         stop("Here is my new translate_roi function...")
1830 935a568c Florent Chuffart
       }
1831 935a568c Florent Chuffart
   }
1832 935a568c Florent Chuffart
   # Binding it by uncomment follwing lines.
1833 935a568c Florent Chuffart
   # unlockBinding("translate_roi", as.environment("package:nm"))
1834 935a568c Florent Chuffart
   # unlockBinding("translate_roi", getNamespace("nm"))
1835 935a568c Florent Chuffart
   # assign("translate_roi", translate_roi, "package:nm")
1836 935a568c Florent Chuffart
   # assign("translate_roi", translate_roi, getNamespace("nm"))
1837 935a568c Florent Chuffart
   # lockBinding("translate_roi", getNamespace("nm"))
1838 935a568c Florent Chuffart
   # lockBinding("translate_roi", as.environment("package:nm"))
1839 935a568c Florent Chuffart
1840 935a568c Florent Chuffart
R: Aggregate regions that intersect themnselves.
1841 935a568c Florent Chuffart
1842 935a568c Florent Chuffart
1843 935a568c Florent Chuffart
Aggregate regions that intersect themnselves.
1844 935a568c Florent Chuffart
---------------------------------------------
1845 935a568c Florent Chuffart
1846 935a568c Florent Chuffart
1847 935a568c Florent Chuffart
Description
1848 935a568c Florent Chuffart
~~~~~~~~~~~
1849 935a568c Florent Chuffart
1850 935a568c Florent Chuffart
This function is based on sort of lower bounds to detect regions that
1851 935a568c Florent Chuffart
intersect. We compare lower bound and upper bound of the porevious
1852 935a568c Florent Chuffart
item. This function embed a while loop and break break regions list
1853 935a568c Florent Chuffart
become stable.
1854 935a568c Florent Chuffart
1855 935a568c Florent Chuffart
1856 935a568c Florent Chuffart
Usage
1857 935a568c Florent Chuffart
~~~~~
1858 935a568c Florent Chuffart
1859 935a568c Florent Chuffart
   union_regions(regions)
1860 935a568c Florent Chuffart
1861 935a568c Florent Chuffart
1862 935a568c Florent Chuffart
Arguments
1863 935a568c Florent Chuffart
~~~~~~~~~
1864 935a568c Florent Chuffart
1865 935a568c Florent Chuffart
"regions"
1866 935a568c Florent Chuffart
1867 935a568c Florent Chuffart
The Regions to be aggregated
1868 935a568c Florent Chuffart
1869 935a568c Florent Chuffart
1870 935a568c Florent Chuffart
Author(s)
1871 935a568c Florent Chuffart
~~~~~~~~~
1872 935a568c Florent Chuffart
1873 935a568c Florent Chuffart
Florent Chuffart
1874 935a568c Florent Chuffart
1875 935a568c Florent Chuffart
R: Watching analysis of samples
1876 935a568c Florent Chuffart
1877 935a568c Florent Chuffart
1878 935a568c Florent Chuffart
Watching analysis of samples
1879 935a568c Florent Chuffart
----------------------------
1880 935a568c Florent Chuffart
1881 935a568c Florent Chuffart
1882 935a568c Florent Chuffart
Description
1883 935a568c Florent Chuffart
~~~~~~~~~~~
1884 935a568c Florent Chuffart
1885 935a568c Florent Chuffart
This function allows to view analysis for a particuler region of the
1886 935a568c Florent Chuffart
genome.
1887 935a568c Florent Chuffart
1888 935a568c Florent Chuffart
1889 935a568c Florent Chuffart
Usage
1890 935a568c Florent Chuffart
~~~~~
1891 935a568c Florent Chuffart
1892 935a568c Florent Chuffart
   watch_samples(replicates, read_length, plot_ref_genome = TRUE,
1893 935a568c Florent Chuffart
       plot_arrow_raw_reads = TRUE, plot_arrow_nuc_reads = TRUE,
1894 935a568c Florent Chuffart
       plot_squared_reads = TRUE, plot_coverage = FALSE, plot_gaussian_reads = TRUE,
1895 935a568c Florent Chuffart
       plot_gaussian_unified_reads = TRUE, plot_ellipse_nucs = TRUE,
1896 21b8928f Florent Chuffart
       change_col = TRUE, plot_wp_nucs = TRUE, plot_wp_nuc_model = TRUE,
1897 21b8928f Florent Chuffart
       plot_common_nucs = TRUE, plot_anovas = FALSE, plot_anova_boxes = FALSE,
1898 21b8928f Florent Chuffart
       plot_wp_nucs_4_nonmnase = FALSE, plot_chain = FALSE, aggregated_intra_strain_nucs = NULL,
1899 21b8928f Florent Chuffart
       aligned_inter_strain_nucs = NULL, height = 10, config = NULL)
1900 935a568c Florent Chuffart
1901 935a568c Florent Chuffart
1902 935a568c Florent Chuffart
Arguments
1903 935a568c Florent Chuffart
~~~~~~~~~
1904 935a568c Florent Chuffart
1905 935a568c Florent Chuffart
"replicates"
1906 935a568c Florent Chuffart
1907 935a568c Florent Chuffart
replicates under the form...
1908 935a568c Florent Chuffart
1909 935a568c Florent Chuffart
"read_length"
1910 935a568c Florent Chuffart
1911 935a568c Florent Chuffart
length of the reads
1912 935a568c Florent Chuffart
1913 935a568c Florent Chuffart
"plot_ref_genome"
1914 935a568c Florent Chuffart
1915 935a568c Florent Chuffart
Plot (or not) reference genome.
1916 935a568c Florent Chuffart
1917 935a568c Florent Chuffart
"plot_arrow_raw_reads"
1918 935a568c Florent Chuffart
1919 935a568c Florent Chuffart
Plot (or not) arrows for raw reads.
1920 935a568c Florent Chuffart
1921 935a568c Florent Chuffart
"plot_arrow_nuc_reads"
1922 935a568c Florent Chuffart
1923 935a568c Florent Chuffart
Plot (or not) arrows for reads aasiocied to a nucleosome.
1924 935a568c Florent Chuffart
1925 935a568c Florent Chuffart
"plot_squared_reads"
1926 935a568c Florent Chuffart
1927 935a568c Florent Chuffart
Plot (or not) reads in the square fashion.
1928 935a568c Florent Chuffart
1929 935a568c Florent Chuffart
"plot_coverage"
1930 935a568c Florent Chuffart
1931 935a568c Florent Chuffart
Plot (or not) reads in the covergae fashion. fashion.
1932 935a568c Florent Chuffart
1933 935a568c Florent Chuffart
"plot_gaussian_reads"
1934 935a568c Florent Chuffart
1935 935a568c Florent Chuffart
Plot (or not) gaussian model of a F anf R reads.
1936 935a568c Florent Chuffart
1937 935a568c Florent Chuffart
"plot_gaussian_unified_reads"
1938 935a568c Florent Chuffart
1939 935a568c Florent Chuffart
Plot (or not) gaussian model of a nuc.
1940 935a568c Florent Chuffart
1941 935a568c Florent Chuffart
"plot_ellipse_nucs"
1942 935a568c Florent Chuffart
1943 935a568c Florent Chuffart
Plot (or not) ellipse for a nuc.
1944 935a568c Florent Chuffart
1945 21b8928f Florent Chuffart
"change_col"
1946 21b8928f Florent Chuffart
1947 21b8928f Florent Chuffart
Change the color of each nucleosome.
1948 21b8928f Florent Chuffart
1949 935a568c Florent Chuffart
"plot_wp_nucs"
1950 935a568c Florent Chuffart
1951 935a568c Florent Chuffart
Plot (or not) cluster of nucs
1952 935a568c Florent Chuffart
1953 935a568c Florent Chuffart
"plot_wp_nuc_model"
1954 935a568c Florent Chuffart
1955 935a568c Florent Chuffart
Plot (or not) gaussian model for a cluster of nucs
1956 935a568c Florent Chuffart
1957 935a568c Florent Chuffart
"plot_common_nucs"
1958 935a568c Florent Chuffart
1959 935a568c Florent Chuffart
Plot (or not) aligned reads.
1960 935a568c Florent Chuffart
1961 935a568c Florent Chuffart
"plot_anovas"
1962 935a568c Florent Chuffart
1963 935a568c Florent Chuffart
Plot (or not) scatter for each nuc.
1964 935a568c Florent Chuffart
1965 935a568c Florent Chuffart
"plot_anova_boxes"
1966 935a568c Florent Chuffart
1967 935a568c Florent Chuffart
Plot (or not) boxplot for each nuc.
1968 935a568c Florent Chuffart
1969 935a568c Florent Chuffart
"plot_wp_nucs_4_nonmnase"
1970 935a568c Florent Chuffart
1971 935a568c Florent Chuffart
Plot (or not) clusters for non inputs samples.
1972 935a568c Florent Chuffart
1973 21b8928f Florent Chuffart
"plot_chain"
1974 21b8928f Florent Chuffart
1975 21b8928f Florent Chuffart
Plot (or not) clusterised nuceosomes between mnase samples.
1976 21b8928f Florent Chuffart
1977 935a568c Florent Chuffart
"aggregated_intra_strain_nucs"
1978 935a568c Florent Chuffart
1979 935a568c Florent Chuffart
list of aggregated intra strain nucs. If NULL, it will be computed.
1980 935a568c Florent Chuffart
1981 935a568c Florent Chuffart
"aligned_inter_strain_nucs"
1982 935a568c Florent Chuffart
1983 935a568c Florent Chuffart
list of aligned inter strain nucs. If NULL, it will be computed.
1984 935a568c Florent Chuffart
1985 935a568c Florent Chuffart
"height"
1986 935a568c Florent Chuffart
1987 935a568c Florent Chuffart
Number of reads in per million read for each sample, graphical
1988 935a568c Florent Chuffart
parametre for the y axis.
1989 935a568c Florent Chuffart
1990 8e9facd8 Florent Chuffart
"config"
1991 8e9facd8 Florent Chuffart
1992 8e9facd8 Florent Chuffart
GLOBAL config variable
1993 8e9facd8 Florent Chuffart
1994 935a568c Florent Chuffart
1995 935a568c Florent Chuffart
Author(s)
1996 935a568c Florent Chuffart
~~~~~~~~~
1997 935a568c Florent Chuffart
1998 935a568c Florent Chuffart
Florent Chuffart