Statistiques
| Branche: | Révision :

root / doc / sphinx_doc / rref.rst @ 780f632a

Historique | Voir | Annoter | Télécharger (29,64 ko)

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