Statistiques
| Branche: | Révision :

root / doc / sphinx_doc / build / text / ref.txt @ b20637ed

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