Statistiques
| Branche: | Révision :

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

Historique | Voir | Annoter | Télécharger (32,9 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 dadb6a4d Florent Chuffart
configurator.CSV_SAMPLE_FILE = None
10 dadb6a4d Florent Chuffart
11 dadb6a4d Florent Chuffart
   Path to cvs file that contains sample information.
12 dadb6a4d Florent Chuffart
13 dadb6a4d Florent Chuffart
configurator.BOWTIE_BUILD_BIN = None
14 dadb6a4d Florent Chuffart
15 dadb6a4d Florent Chuffart
   Path for bowtie2 build bin.
16 dadb6a4d Florent Chuffart
17 dadb6a4d Florent Chuffart
configurator.BOWTIE2_BIN = None
18 dadb6a4d Florent Chuffart
19 dadb6a4d Florent Chuffart
   Path for bowtie2 bin.
20 dadb6a4d Florent Chuffart
21 dadb6a4d Florent Chuffart
configurator.SAMTOOLS_BIN = None
22 dadb6a4d Florent Chuffart
23 dadb6a4d Florent Chuffart
   Path for samtools bin.
24 dadb6a4d Florent Chuffart
25 dadb6a4d Florent Chuffart
configurator.BEDTOOLS_BIN = None
26 dadb6a4d Florent Chuffart
27 dadb6a4d Florent Chuffart
   Path for bedtools bin.
28 dadb6a4d Florent Chuffart
29 dadb6a4d Florent Chuffart
configurator.TF_BIN = None
30 dadb6a4d Florent Chuffart
31 dadb6a4d Florent Chuffart
   Path for TemplateFilter bin.
32 dadb6a4d Florent Chuffart
33 dadb6a4d Florent Chuffart
configurator.TF_TEMPLATES_FILE = None
34 dadb6a4d Florent Chuffart
35 dadb6a4d Florent Chuffart
   Path for TemplateFilter templates file.
36 dadb6a4d Florent Chuffart
37 dadb6a4d Florent Chuffart
configurator.ILLUMINA_OUTPUTFILE_PREFIX = None
38 dadb6a4d Florent Chuffart
39 dadb6a4d Florent Chuffart
   Prefix for Illumina fastq output files.
40 dadb6a4d Florent Chuffart
41 dadb6a4d Florent Chuffart
configurator.INDEX_DIR = None
42 dadb6a4d Florent Chuffart
43 dadb6a4d Florent Chuffart
   Path for index dir.
44 dadb6a4d Florent Chuffart
45 dadb6a4d Florent Chuffart
configurator.ALIGN_DIR = None
46 dadb6a4d Florent Chuffart
47 dadb6a4d Florent Chuffart
   Path for align dir.
48 dadb6a4d Florent Chuffart
49 dadb6a4d Florent Chuffart
configurator.LOG_DIR = None
50 dadb6a4d Florent Chuffart
51 dadb6a4d Florent Chuffart
   Path for log dir
52 dadb6a4d Florent Chuffart
53 dadb6a4d Florent Chuffart
configurator.CACHE_DIR = None
54 dadb6a4d Florent Chuffart
55 dadb6a4d Florent Chuffart
   Path for cache dir.
56 dadb6a4d Florent Chuffart
57 dadb6a4d Florent Chuffart
configurator.RESULTS_DIR = None
58 dadb6a4d Florent Chuffart
59 dadb6a4d Florent Chuffart
   Path for results dir
60 dadb6a4d Florent Chuffart
61 dadb6a4d Florent Chuffart
configurator.FASTA_REFERENCE_GENOME_FILES = None
62 dadb6a4d Florent Chuffart
63 dadb6a4d Florent Chuffart
   Dictionary where each fasta reference genomes is indexed by
64 dadb6a4d Florent Chuffart
   reference strain that it corresponds.
65 dadb6a4d Florent Chuffart
66 dadb6a4d Florent Chuffart
configurator.AREA_BLACK_LIST = None
67 dadb6a4d Florent Chuffart
68 dadb6a4d Florent Chuffart
   Dictionary where keys are strain and values are black listed of
69 dadb6a4d Florent Chuffart
   geneome region.
70 dadb6a4d Florent Chuffart
71 dadb6a4d Florent Chuffart
configurator.FASTA_INDEXES = None
72 dadb6a4d Florent Chuffart
73 dadb6a4d Florent Chuffart
   Dictionary of strain that indexes dictionaries where keys are
74 dadb6a4d Florent Chuffart
   chromosome reference from Fastq file and value are its
75 dadb6a4d Florent Chuffart
   correspondance for Templatefilter.
76 dadb6a4d Florent Chuffart
77 dadb6a4d Florent Chuffart
configurator.C2C_FILES = None
78 dadb6a4d Florent Chuffart
79 dadb6a4d Florent Chuffart
   Dictionary where each strain combination indexes genome aligment.
80 dadb6a4d Florent Chuffart
81 dadb6a4d Florent Chuffart
configurator.READ_LENGTH = None
82 dadb6a4d Florent Chuffart
83 dadb6a4d Florent Chuffart
   Length of Illumina reads.
84 dadb6a4d Florent Chuffart
85 dadb6a4d Florent Chuffart
configurator.MAPQ_THRES = None
86 dadb6a4d Florent Chuffart
87 dadb6a4d Florent Chuffart
   Aligment quality thresold.
88 dadb6a4d Florent Chuffart
89 dadb6a4d Florent Chuffart
configurator.TF_CORR = None
90 dadb6a4d Florent Chuffart
91 dadb6a4d Florent Chuffart
   TemplateFilter Template correlation threshold.
92 dadb6a4d Florent Chuffart
93 dadb6a4d Florent Chuffart
configurator.TF_MINW = None
94 dadb6a4d Florent Chuffart
95 dadb6a4d Florent Chuffart
   TemplateFilter minimum width of a nucleosome.
96 dadb6a4d Florent Chuffart
97 dadb6a4d Florent Chuffart
configurator.TF_MAXW = None
98 dadb6a4d Florent Chuffart
99 dadb6a4d Florent Chuffart
   TemplateFilter maximum  width of a nucleosome.
100 dadb6a4d Florent Chuffart
101 dadb6a4d Florent Chuffart
configurator.TF_OL = None
102 dadb6a4d Florent Chuffart
103 dadb6a4d Florent Chuffart
   TemplateFilter maximum allowed overlap for two nucleosomes.
104 dadb6a4d Florent Chuffart
105 dadb6a4d Florent Chuffart
wf.json_conf_file = 'src/current/nucleominer_config.json'
106 dadb6a4d Florent Chuffart
107 dadb6a4d Florent Chuffart
   Path to the json configuration file.
108 dadb6a4d Florent Chuffart
109 dadb6a4d Florent Chuffart
wf.samples = []
110 dadb6a4d Florent Chuffart
111 dadb6a4d Florent Chuffart
   List of samples where a sample is identify by an id (key: *id*) and
112 dadb6a4d Florent Chuffart
   a strain name (key *strain*).
113 dadb6a4d Florent Chuffart
114 dadb6a4d Florent Chuffart
wf.samples_mnase = []
115 dadb6a4d Florent Chuffart
116 dadb6a4d Florent Chuffart
   List of Mnase samples.
117 dadb6a4d Florent Chuffart
118 dadb6a4d Florent Chuffart
wf.strains = []
119 dadb6a4d Florent Chuffart
120 dadb6a4d Florent Chuffart
   List of reference strains.
121 dadb6a4d Florent Chuffart
122 dadb6a4d Florent Chuffart
libcoverage.create_bowtie_index(strain, strain_fasta_ref, index_dir, bowtie_build_bin)
123 dadb6a4d Florent Chuffart
124 dadb6a4d Florent Chuffart
   Creates bowtie index for a strain *strain*.
125 dadb6a4d Florent Chuffart
126 dadb6a4d Florent Chuffart
   Parameters:
127 dadb6a4d Florent Chuffart
      * **strain** -- the strain reference.
128 dadb6a4d Florent Chuffart
129 dadb6a4d Florent Chuffart
      * **strain_fasta_ref** -- fasta reference genome.
130 dadb6a4d Florent Chuffart
131 dadb6a4d Florent Chuffart
      * **index_dir** -- directories where to put bowtie index.
132 dadb6a4d Florent Chuffart
133 dadb6a4d Florent Chuffart
      * **bowtie_build_bin** -- bowtie2 build binary.
134 dadb6a4d Florent Chuffart
135 dadb6a4d Florent Chuffart
libcoverage.align_reads(sample, align_dir, log_dir, index_dir, illumina_outputfile_prefix, bowtie2_bin, samtools_bin, bedtools_bin)
136 dadb6a4d Florent Chuffart
137 dadb6a4d Florent Chuffart
   Aligns reads to reference genomes. It produces .sam files, that are
138 dadb6a4d Florent Chuffart
   converted to .bam, that are converted to .bed.
139 dadb6a4d Florent Chuffart
140 dadb6a4d Florent Chuffart
   Parameters:
141 dadb6a4d Florent Chuffart
      * **sample** -- a dict that describe a sample.
142 dadb6a4d Florent Chuffart
143 dadb6a4d Florent Chuffart
      * **align_dir** -- directory where aligned reads will be
144 dadb6a4d Florent Chuffart
        stored.
145 dadb6a4d Florent Chuffart
146 dadb6a4d Florent Chuffart
      * **log_dir** -- directory where logs will be stored.
147 dadb6a4d Florent Chuffart
148 dadb6a4d Florent Chuffart
      * **illumina_outputfile_prefix** -- prefix of Illumina
149 dadb6a4d Florent Chuffart
        sequencer fastq.gz output files.
150 dadb6a4d Florent Chuffart
151 dadb6a4d Florent Chuffart
      * **bowtie2_bin** -- bowtie2 binary.
152 dadb6a4d Florent Chuffart
153 dadb6a4d Florent Chuffart
      * **samtools_bin** -- samtools binary.
154 dadb6a4d Florent Chuffart
155 dadb6a4d Florent Chuffart
      * **bedtools_bin** -- bedtools binary.
156 dadb6a4d Florent Chuffart
157 dadb6a4d Florent Chuffart
      * **index_dir** -- bowtie index directory.
158 dadb6a4d Florent Chuffart
159 dadb6a4d Florent Chuffart
libcoverage.split_fr_4_TF(sample, align_dir, fasta_indexes, area_black_list, read_length, mapq_thres)
160 dadb6a4d Florent Chuffart
161 dadb6a4d Florent Chuffart
   Create TempleFilter input files form bed files. This function
162 dadb6a4d Florent Chuffart
   appends in two times. First, it collects reads from bed files and
163 dadb6a4d Florent Chuffart
   feeds a datastructure
164 dadb6a4d Florent Chuffart
165 dadb6a4d Florent Chuffart
   Parameters:
166 dadb6a4d Florent Chuffart
      * **sample** -- a dict that describe a sample.
167 dadb6a4d Florent Chuffart
168 dadb6a4d Florent Chuffart
      * **align_dir** -- directory where aligned reads will be
169 dadb6a4d Florent Chuffart
        stored.
170 dadb6a4d Florent Chuffart
171 dadb6a4d Florent Chuffart
      * **fasta_index** -- the chr reference from the illumina
172 dadb6a4d Florent Chuffart
        output file.
173 dadb6a4d Florent Chuffart
174 dadb6a4d Florent Chuffart
      * **area_black_list** -- the description of genome that will
175 dadb6a4d Florent Chuffart
        be omit.
176 dadb6a4d Florent Chuffart
177 dadb6a4d Florent Chuffart
      * **read_length** -- Length of Illumina reads.
178 dadb6a4d Florent Chuffart
179 dadb6a4d Florent Chuffart
      * **mapq_thres** -- mapping quality criterion threshold, see
180 dadb6a4d Florent Chuffart
        MAPQ in BED/BAM file format.
181 dadb6a4d Florent Chuffart
182 dadb6a4d Florent Chuffart
libcoverage.template_filter(sample, align_dir, log_dir, tf_bin, tf_templates_file, corr, minw, maxw, ol)
183 dadb6a4d Florent Chuffart
184 dadb6a4d Florent Chuffart
   Run TemplateFilter on a specifi sample. It produces .tab file.
185 dadb6a4d Florent Chuffart
186 dadb6a4d Florent Chuffart
   Parameters:
187 dadb6a4d Florent Chuffart
      * **sample** -- a dict that describe a sample.
188 dadb6a4d Florent Chuffart
189 dadb6a4d Florent Chuffart
      * **align_dir** -- directory where aligned reads will be
190 dadb6a4d Florent Chuffart
        stored.
191 dadb6a4d Florent Chuffart
192 dadb6a4d Florent Chuffart
      * **log_dir** -- directory where logs will be stored.
193 dadb6a4d Florent Chuffart
194 dadb6a4d Florent Chuffart
      * **tf_bin** -- path to the TemplateFilter binary.
195 dadb6a4d Florent Chuffart
196 dadb6a4d Florent Chuffart
      * **tf_templates_file** -- path to the TemplateFilter
197 dadb6a4d Florent Chuffart
        templates file.
198 dadb6a4d Florent Chuffart
199 dadb6a4d Florent Chuffart
      * **corr** -- correlation threshold transmits to
200 dadb6a4d Florent Chuffart
        TemplateFilter.
201 dadb6a4d Florent Chuffart
202 dadb6a4d Florent Chuffart
      * **minw** -- minimum width of a nuc, transmits to
203 dadb6a4d Florent Chuffart
        TemplateFilter.
204 dadb6a4d Florent Chuffart
205 dadb6a4d Florent Chuffart
      * **maxw** -- maximum width of a nuc, transmits to
206 dadb6a4d Florent Chuffart
        TemplateFilter.
207 dadb6a4d Florent Chuffart
208 dadb6a4d Florent Chuffart
      * **ol** -- maximum overlaps for 2 nuc, transmits to
209 dadb6a4d Florent Chuffart
        TemplateFilter.
210 dadb6a4d 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 7e2d37e1 Florent Chuffart
function returns a list of clusters and all computed *llr_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 7e2d37e1 Florent Chuffart
   aggregate_intra_strain_nucs(samples, llr_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 7e2d37e1 Florent Chuffart
"llr_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 7e2d37e1 Florent Chuffart
Returns a list of clusterized nucleosomes, and all computed llr
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 7e2d37e1 Florent Chuffart
       wp_nucs_strain_ref2 = NULL, corr_thres = 0.5, llr_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 7e2d37e1 Florent Chuffart
"llr_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 7e2d37e1 Florent Chuffart
Returns a list of clusterized nucleosomes, and all computed llr
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 6e0010bc Florent Chuffart
       # Define new translate_cur function...
471 6e0010bc Florent Chuffart
       translate_cur = function(roi, strain2, big_cur=NULL, config=NULL) {
472 8e9facd8 Florent Chuffart
         return(roi)
473 8e9facd8 Florent Chuffart
       }
474 8e9facd8 Florent Chuffart
       # Binding it by uncomment follwing lines.
475 6e0010bc Florent Chuffart
       unlockBinding("translate_cur", as.environment("package:nucleominer"))
476 6e0010bc Florent Chuffart
       unlockBinding("translate_cur", getNamespace("nucleominer"))
477 6e0010bc Florent Chuffart
       assign("translate_cur", translate_cur, "package:nucleominer")
478 6e0010bc Florent Chuffart
       assign("translate_cur", translate_cur, getNamespace("nucleominer"))
479 6e0010bc Florent Chuffart
       lockBinding("translate_cur", getNamespace("nucleominer"))
480 6e0010bc Florent Chuffart
       lockBinding("translate_cur", 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 6e0010bc Florent Chuffart
   roi2 = translate_cur(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 6e0010bc Florent Chuffart
R: Extract a sub part of the corresponding c2c file
636 6e0010bc Florent Chuffart
637 6e0010bc Florent Chuffart
638 6e0010bc Florent Chuffart
Extract a sub part of the corresponding c2c file
639 6e0010bc Florent Chuffart
------------------------------------------------
640 6e0010bc Florent Chuffart
641 6e0010bc Florent Chuffart
642 6e0010bc Florent Chuffart
Description
643 6e0010bc Florent Chuffart
~~~~~~~~~~~
644 6e0010bc Florent Chuffart
645 6e0010bc Florent Chuffart
This fonction allow to acces to a specific part of the c2c file.
646 6e0010bc Florent Chuffart
647 6e0010bc Florent Chuffart
648 6e0010bc Florent Chuffart
Usage
649 6e0010bc Florent Chuffart
~~~~~
650 6e0010bc Florent Chuffart
651 6e0010bc Florent Chuffart
   c2c_extraction(strain1, strain2, chr = NULL, lower_bound = NULL,
652 6e0010bc Florent Chuffart
       upper_bound = NULL, config = NULL)
653 6e0010bc Florent Chuffart
654 6e0010bc Florent Chuffart
655 6e0010bc Florent Chuffart
Arguments
656 6e0010bc Florent Chuffart
~~~~~~~~~
657 6e0010bc Florent Chuffart
658 6e0010bc Florent Chuffart
"strain1"
659 6e0010bc Florent Chuffart
660 6e0010bc Florent Chuffart
the key strain
661 6e0010bc Florent Chuffart
662 6e0010bc Florent Chuffart
"strain2"
663 6e0010bc Florent Chuffart
664 6e0010bc Florent Chuffart
the target strain
665 6e0010bc Florent Chuffart
666 6e0010bc Florent Chuffart
"chr"
667 6e0010bc Florent Chuffart
668 6e0010bc Florent Chuffart
if defined, the c2c will filtered according to the chromosome value
669 6e0010bc Florent Chuffart
670 6e0010bc Florent Chuffart
"lower_bound"
671 6e0010bc Florent Chuffart
672 6e0010bc Florent Chuffart
if defined, the c2c will filtered for part of the genome upper than
673 6e0010bc Florent Chuffart
lower_bound
674 6e0010bc Florent Chuffart
675 6e0010bc Florent Chuffart
"upper_bound"
676 6e0010bc Florent Chuffart
677 6e0010bc Florent Chuffart
if defined, the c2c will filtered for part of the genome lower than
678 6e0010bc Florent Chuffart
upper_bound
679 6e0010bc Florent Chuffart
680 6e0010bc Florent Chuffart
"config"
681 6e0010bc Florent Chuffart
682 6e0010bc Florent Chuffart
GLOBAL config variable
683 6e0010bc Florent Chuffart
684 6e0010bc Florent Chuffart
685 6e0010bc Florent Chuffart
Author(s)
686 6e0010bc Florent Chuffart
~~~~~~~~~
687 6e0010bc Florent Chuffart
688 6e0010bc Florent Chuffart
Florent Chuffart
689 6e0010bc Florent Chuffart
690 21b8928f Florent Chuffart
R: reformat an "apply manipulated" list of regions
691 21b8928f Florent Chuffart
692 21b8928f Florent Chuffart
693 21b8928f Florent Chuffart
reformat an "apply manipulated" list of regions
694 21b8928f Florent Chuffart
-----------------------------------------------
695 21b8928f Florent Chuffart
696 21b8928f Florent Chuffart
697 21b8928f Florent Chuffart
Description
698 21b8928f Florent Chuffart
~~~~~~~~~~~
699 21b8928f Florent Chuffart
700 21b8928f Florent Chuffart
Utils to reformat an "apply manipulated" list of regions
701 21b8928f Florent Chuffart
702 21b8928f Florent Chuffart
703 21b8928f Florent Chuffart
Usage
704 21b8928f Florent Chuffart
~~~~~
705 21b8928f Florent Chuffart
706 21b8928f Florent Chuffart
   collapse_regions(regions)
707 21b8928f Florent Chuffart
708 21b8928f Florent Chuffart
709 21b8928f Florent Chuffart
Arguments
710 21b8928f Florent Chuffart
~~~~~~~~~
711 21b8928f Florent Chuffart
712 21b8928f Florent Chuffart
+-----------------+------+
713 21b8928f Florent Chuffart
+-----------------+------+
714 21b8928f Florent Chuffart
715 21b8928f Florent Chuffart
716 21b8928f Florent Chuffart
Author(s)
717 21b8928f Florent Chuffart
~~~~~~~~~
718 21b8928f Florent Chuffart
719 21b8928f Florent Chuffart
Florent Chuffart
720 21b8928f Florent Chuffart
721 8e9facd8 Florent Chuffart
R: Compute Common Uninterrupted Regions (CUR)
722 8e9facd8 Florent Chuffart
723 8e9facd8 Florent Chuffart
724 8e9facd8 Florent Chuffart
Compute Common Uninterrupted Regions (CUR)
725 8e9facd8 Florent Chuffart
------------------------------------------
726 8e9facd8 Florent Chuffart
727 8e9facd8 Florent Chuffart
728 8e9facd8 Florent Chuffart
Description
729 8e9facd8 Florent Chuffart
~~~~~~~~~~~
730 8e9facd8 Florent Chuffart
731 8e9facd8 Florent Chuffart
CURs are regions that can be aligned between the genomes
732 8e9facd8 Florent Chuffart
733 8e9facd8 Florent Chuffart
734 8e9facd8 Florent Chuffart
Usage
735 8e9facd8 Florent Chuffart
~~~~~
736 8e9facd8 Florent Chuffart
737 6e0010bc Florent Chuffart
   compute_inter_all_strain_curs(diff_allowed = 30, min_cur_width = 4000,
738 6e0010bc Florent Chuffart
       config = NULL)
739 8e9facd8 Florent Chuffart
740 8e9facd8 Florent Chuffart
741 8e9facd8 Florent Chuffart
Arguments
742 8e9facd8 Florent Chuffart
~~~~~~~~~
743 8e9facd8 Florent Chuffart
744 8e9facd8 Florent Chuffart
"diff_allowed"
745 8e9facd8 Florent Chuffart
746 8e9facd8 Florent Chuffart
the maximum indel width allowe din a CUR
747 8e9facd8 Florent Chuffart
748 8e9facd8 Florent Chuffart
"min_cur_width"
749 8e9facd8 Florent Chuffart
750 8e9facd8 Florent Chuffart
The minimum width of a CUR
751 8e9facd8 Florent Chuffart
752 8e9facd8 Florent Chuffart
"config"
753 8e9facd8 Florent Chuffart
754 8e9facd8 Florent Chuffart
GLOBAL config variable
755 8e9facd8 Florent Chuffart
756 8e9facd8 Florent Chuffart
757 8e9facd8 Florent Chuffart
Author(s)
758 8e9facd8 Florent Chuffart
~~~~~~~~~
759 8e9facd8 Florent Chuffart
760 8e9facd8 Florent Chuffart
Florent Chuffart
761 8e9facd8 Florent Chuffart
762 935a568c Florent Chuffart
R: Crop bound of regions according to region of interest bound
763 935a568c Florent Chuffart
764 935a568c Florent Chuffart
765 935a568c Florent Chuffart
Crop bound of regions according to region of interest bound
766 935a568c Florent Chuffart
-----------------------------------------------------------
767 935a568c Florent Chuffart
768 935a568c Florent Chuffart
769 935a568c Florent Chuffart
Description
770 935a568c Florent Chuffart
~~~~~~~~~~~
771 935a568c Florent Chuffart
772 6e0010bc Florent Chuffart
The fucntion is no more necessary since we remove "big_cur" bug in
773 6e0010bc Florent Chuffart
translate_cur function.
774 935a568c Florent Chuffart
775 935a568c Florent Chuffart
776 935a568c Florent Chuffart
Usage
777 935a568c Florent Chuffart
~~~~~
778 935a568c Florent Chuffart
779 8e9facd8 Florent Chuffart
   crop_fuzzy(tmp_fuzzy_nucs, roi, strain, config = NULL)
780 935a568c Florent Chuffart
781 935a568c Florent Chuffart
782 935a568c Florent Chuffart
Arguments
783 935a568c Florent Chuffart
~~~~~~~~~
784 935a568c Florent Chuffart
785 935a568c Florent Chuffart
"tmp_fuzzy_nucs"
786 935a568c Florent Chuffart
787 935a568c Florent Chuffart
the regiuons to be croped.
788 935a568c Florent Chuffart
789 935a568c Florent Chuffart
"roi"
790 935a568c Florent Chuffart
791 935a568c Florent Chuffart
The region of interest.
792 935a568c Florent Chuffart
793 935a568c Florent Chuffart
"strain"
794 935a568c Florent Chuffart
795 935a568c Florent Chuffart
The strain to consider.
796 935a568c Florent Chuffart
797 8e9facd8 Florent Chuffart
"config"
798 8e9facd8 Florent Chuffart
799 8e9facd8 Florent Chuffart
GLOBAL config variable
800 8e9facd8 Florent Chuffart
801 935a568c Florent Chuffart
802 935a568c Florent Chuffart
Author(s)
803 935a568c Florent Chuffart
~~~~~~~~~
804 935a568c Florent Chuffart
805 935a568c Florent Chuffart
Florent Chuffart
806 935a568c Florent Chuffart
807 935a568c Florent Chuffart
R: Adding list to a dataframe.
808 935a568c Florent Chuffart
809 935a568c Florent Chuffart
810 935a568c Florent Chuffart
Adding list to a dataframe.
811 935a568c Florent Chuffart
---------------------------
812 935a568c Florent Chuffart
813 935a568c Florent Chuffart
814 935a568c Florent Chuffart
Description
815 935a568c Florent Chuffart
~~~~~~~~~~~
816 935a568c Florent Chuffart
817 935a568c Florent Chuffart
Add a list *l* to a dataframe *df*. Create it if *df* is *NULL*.
818 935a568c Florent Chuffart
Return the dataframe *df*.
819 935a568c Florent Chuffart
820 935a568c Florent Chuffart
821 935a568c Florent Chuffart
Usage
822 935a568c Florent Chuffart
~~~~~
823 935a568c Florent Chuffart
824 935a568c Florent Chuffart
   dfadd(df, l)
825 935a568c Florent Chuffart
826 935a568c Florent Chuffart
827 935a568c Florent Chuffart
Arguments
828 935a568c Florent Chuffart
~~~~~~~~~
829 935a568c Florent Chuffart
830 935a568c Florent Chuffart
"df"
831 935a568c Florent Chuffart
832 935a568c Florent Chuffart
A dataframe
833 935a568c Florent Chuffart
834 935a568c Florent Chuffart
"l"
835 935a568c Florent Chuffart
836 935a568c Florent Chuffart
A list
837 935a568c Florent Chuffart
838 935a568c Florent Chuffart
839 935a568c Florent Chuffart
Value
840 935a568c Florent Chuffart
~~~~~
841 935a568c Florent Chuffart
842 935a568c Florent Chuffart
Return the dataframe *df*.
843 935a568c Florent Chuffart
844 935a568c Florent Chuffart
845 935a568c Florent Chuffart
Author(s)
846 935a568c Florent Chuffart
~~~~~~~~~
847 935a568c Florent Chuffart
848 935a568c Florent Chuffart
Florent Chuffart
849 935a568c Florent Chuffart
850 935a568c Florent Chuffart
851 935a568c Florent Chuffart
Examples
852 935a568c Florent Chuffart
~~~~~~~~
853 935a568c Florent Chuffart
854 935a568c Florent Chuffart
   ## Here dataframe is NULL
855 935a568c Florent Chuffart
   print(df)
856 935a568c Florent Chuffart
   df = NULL
857 935a568c Florent Chuffart
858 935a568c Florent Chuffart
   # Initialize df
859 935a568c Florent Chuffart
   df = dfadd(df, list(key1 = "value1", key2 = "value2"))
860 935a568c Florent Chuffart
   print(df)
861 935a568c Florent Chuffart
862 935a568c Florent Chuffart
   # Adding elements to df
863 935a568c Florent Chuffart
   df = dfadd(df, list(key1 = "value1'", key2 = "value2'"))
864 935a568c Florent Chuffart
   print(df)
865 935a568c Florent Chuffart
866 935a568c Florent Chuffart
R: Prefetch data
867 935a568c Florent Chuffart
868 935a568c Florent Chuffart
869 935a568c Florent Chuffart
Prefetch data
870 935a568c Florent Chuffart
-------------
871 935a568c Florent Chuffart
872 935a568c Florent Chuffart
873 935a568c Florent Chuffart
Description
874 935a568c Florent Chuffart
~~~~~~~~~~~
875 935a568c Florent Chuffart
876 935a568c Florent Chuffart
Fetch and filter inputs and outpouts per region of interest. Organize
877 935a568c Florent Chuffart
it per replicates.
878 935a568c Florent Chuffart
879 935a568c Florent Chuffart
880 935a568c Florent Chuffart
Usage
881 935a568c Florent Chuffart
~~~~~
882 935a568c Florent Chuffart
883 8e9facd8 Florent Chuffart
   fetch_mnase_replicates(strain, roi, all_samples, config = NULL,
884 8e9facd8 Florent Chuffart
       only_fetch = FALSE, get_genome = FALSE, get_ouputs = TRUE)
885 935a568c Florent Chuffart
886 935a568c Florent Chuffart
887 935a568c Florent Chuffart
Arguments
888 935a568c Florent Chuffart
~~~~~~~~~
889 935a568c Florent Chuffart
890 935a568c Florent Chuffart
"strain"
891 935a568c Florent Chuffart
892 935a568c Florent Chuffart
The strain we want mnase replicatesList of replicates. Each replicates
893 935a568c Florent Chuffart
is a vector of sample ids.
894 935a568c Florent Chuffart
895 935a568c Florent Chuffart
"roi"
896 935a568c Florent Chuffart
897 935a568c Florent Chuffart
Region of interest.
898 935a568c Florent Chuffart
899 935a568c Florent Chuffart
"all_samples"
900 935a568c Florent Chuffart
901 935a568c Florent Chuffart
Global list of samples.
902 935a568c Florent Chuffart
903 935a568c Florent Chuffart
"config"
904 935a568c Florent Chuffart
905 935a568c Florent Chuffart
GLOBAL config variable
906 935a568c Florent Chuffart
907 935a568c Florent Chuffart
"only_fetch"
908 935a568c Florent Chuffart
909 935a568c Florent Chuffart
If TRUE, only fetch and not filtering. It is used tio load sample
910 935a568c Florent Chuffart
files into memory before forking.
911 935a568c Florent Chuffart
912 935a568c Florent Chuffart
"get_genome"
913 935a568c Florent Chuffart
914 935a568c Florent Chuffart
If TRUE, load corresponding genome sequence.
915 935a568c Florent Chuffart
916 935a568c Florent Chuffart
"get_ouputs"
917 935a568c Florent Chuffart
918 935a568c Florent Chuffart
If TRUE, get also ouput corresponding TF output files.
919 935a568c Florent Chuffart
920 935a568c Florent Chuffart
921 935a568c Florent Chuffart
Author(s)
922 935a568c Florent Chuffart
~~~~~~~~~
923 935a568c Florent Chuffart
924 935a568c Florent Chuffart
Florent Chuffart
925 935a568c Florent Chuffart
926 935a568c Florent Chuffart
R: Filter TemplateFilter inputs
927 935a568c Florent Chuffart
928 935a568c Florent Chuffart
929 935a568c Florent Chuffart
Filter TemplateFilter inputs
930 935a568c Florent Chuffart
----------------------------
931 935a568c Florent Chuffart
932 935a568c Florent Chuffart
933 935a568c Florent Chuffart
Description
934 935a568c Florent Chuffart
~~~~~~~~~~~
935 935a568c Florent Chuffart
936 935a568c Florent Chuffart
This function filters TemplateFilter inputs according genome area
937 935a568c Florent Chuffart
observed properties. It takes into account reads that are at the
938 935a568c Florent Chuffart
frontier of this area and the strand of these reads.
939 935a568c Florent Chuffart
940 935a568c Florent Chuffart
941 935a568c Florent Chuffart
Usage
942 935a568c Florent Chuffart
~~~~~
943 935a568c Florent Chuffart
944 935a568c Florent Chuffart
   filter_tf_inputs(inputs, chr, x_min, x_max, nuc_width = 160,
945 21b8928f Florent Chuffart
       only_f = FALSE, only_r = FALSE, filter_for_coverage = FALSE)
946 935a568c Florent Chuffart
947 935a568c Florent Chuffart
948 935a568c Florent Chuffart
Arguments
949 935a568c Florent Chuffart
~~~~~~~~~
950 935a568c Florent Chuffart
951 935a568c Florent Chuffart
"inputs"
952 935a568c Florent Chuffart
953 935a568c Florent Chuffart
TF inputs to be filtered.
954 935a568c Florent Chuffart
955 935a568c Florent Chuffart
"chr"
956 935a568c Florent Chuffart
957 935a568c Florent Chuffart
Chromosome observed, here chr is an integer.
958 935a568c Florent Chuffart
959 935a568c Florent Chuffart
"x_min"
960 935a568c Florent Chuffart
961 935a568c Florent Chuffart
Coordinate of the first bp observed.
962 935a568c Florent Chuffart
963 935a568c Florent Chuffart
"x_max"
964 935a568c Florent Chuffart
965 935a568c Florent Chuffart
Coordinate of the last bp observed.
966 935a568c Florent Chuffart
967 935a568c Florent Chuffart
"nuc_width"
968 935a568c Florent Chuffart
969 935a568c Florent Chuffart
Nucleosome width.
970 935a568c Florent Chuffart
971 935a568c Florent Chuffart
"only_f"
972 935a568c Florent Chuffart
973 935a568c Florent Chuffart
Filter only F reads.
974 935a568c Florent Chuffart
975 935a568c Florent Chuffart
"only_r"
976 935a568c Florent Chuffart
977 935a568c Florent Chuffart
Filter only R reads.
978 935a568c Florent Chuffart
979 21b8928f Florent Chuffart
"filter_for_coverage"
980 21b8928f Florent Chuffart
981 21b8928f Florent Chuffart
Does it filter for plot coverage?
982 21b8928f Florent Chuffart
983 935a568c Florent Chuffart
984 935a568c Florent Chuffart
Value
985 935a568c Florent Chuffart
~~~~~
986 935a568c Florent Chuffart
987 935a568c Florent Chuffart
Returns filtred inputs.
988 935a568c Florent Chuffart
989 935a568c Florent Chuffart
990 935a568c Florent Chuffart
Author(s)
991 935a568c Florent Chuffart
~~~~~~~~~
992 935a568c Florent Chuffart
993 935a568c Florent Chuffart
Florent Chuffart
994 935a568c Florent Chuffart
995 935a568c Florent Chuffart
R: Filter TemplateFilter outputs
996 935a568c Florent Chuffart
997 935a568c Florent Chuffart
998 935a568c Florent Chuffart
Filter TemplateFilter outputs
999 935a568c Florent Chuffart
-----------------------------
1000 935a568c Florent Chuffart
1001 935a568c Florent Chuffart
1002 935a568c Florent Chuffart
Description
1003 935a568c Florent Chuffart
~~~~~~~~~~~
1004 935a568c Florent Chuffart
1005 935a568c Florent Chuffart
This function filters TemplateFilter outputs according, not only
1006 dadb6a4d Florent Chuffart
genome area observerved properties, but also correlation and
1007 dadb6a4d Florent Chuffart
overlapping threshold.
1008 935a568c Florent Chuffart
1009 935a568c Florent Chuffart
1010 935a568c Florent Chuffart
Usage
1011 935a568c Florent Chuffart
~~~~~
1012 935a568c Florent Chuffart
1013 935a568c Florent Chuffart
   filter_tf_outputs(tf_outputs, chr, x_min, x_max, nuc_width = 160,
1014 935a568c Florent Chuffart
       ol_bp = 59, corr_thres = 0.5)
1015 935a568c Florent Chuffart
1016 935a568c Florent Chuffart
1017 935a568c Florent Chuffart
Arguments
1018 935a568c Florent Chuffart
~~~~~~~~~
1019 935a568c Florent Chuffart
1020 935a568c Florent Chuffart
"tf_outputs"
1021 935a568c Florent Chuffart
1022 935a568c Florent Chuffart
TemplateFilter outputs.
1023 935a568c Florent Chuffart
1024 935a568c Florent Chuffart
"chr"
1025 935a568c Florent Chuffart
1026 935a568c Florent Chuffart
Chromosome observed, here chr is an integer.
1027 935a568c Florent Chuffart
1028 935a568c Florent Chuffart
"x_min"
1029 935a568c Florent Chuffart
1030 935a568c Florent Chuffart
Coordinate of the first bp observed.
1031 935a568c Florent Chuffart
1032 935a568c Florent Chuffart
"x_max"
1033 935a568c Florent Chuffart
1034 935a568c Florent Chuffart
Coordinate of the last bp observed.
1035 935a568c Florent Chuffart
1036 935a568c Florent Chuffart
"nuc_width"
1037 935a568c Florent Chuffart
1038 935a568c Florent Chuffart
Nucleosome width.
1039 935a568c Florent Chuffart
1040 935a568c Florent Chuffart
"ol_bp"
1041 935a568c Florent Chuffart
1042 935a568c Florent Chuffart
Overlap Threshold.
1043 935a568c Florent Chuffart
1044 935a568c Florent Chuffart
"corr_thres"
1045 935a568c Florent Chuffart
1046 935a568c Florent Chuffart
Correlation threshold.
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 filtered TemplateFilter Outputs
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 21b8928f Florent Chuffart
R: to flat aggregate_intra_strain_nucs function output
1061 21b8928f Florent Chuffart
1062 21b8928f Florent Chuffart
1063 21b8928f Florent Chuffart
to flat aggregate_intra_strain_nucs function output
1064 21b8928f Florent Chuffart
---------------------------------------------------
1065 21b8928f Florent Chuffart
1066 21b8928f Florent Chuffart
1067 21b8928f Florent Chuffart
Description
1068 21b8928f Florent Chuffart
~~~~~~~~~~~
1069 21b8928f Florent Chuffart
1070 21b8928f Florent Chuffart
This function builds a dataframe of all clusters obtain from
1071 21b8928f Florent Chuffart
aggregate_intra_strain_nucs function.
1072 21b8928f Florent Chuffart
1073 21b8928f Florent Chuffart
1074 21b8928f Florent Chuffart
Usage
1075 21b8928f Florent Chuffart
~~~~~
1076 21b8928f Florent Chuffart
1077 6e0010bc Florent Chuffart
   flat_aggregated_intra_strain_nucs(partial_strain_maps, cur_index)
1078 21b8928f Florent Chuffart
1079 21b8928f Florent Chuffart
1080 21b8928f Florent Chuffart
Arguments
1081 21b8928f Florent Chuffart
~~~~~~~~~
1082 21b8928f Florent Chuffart
1083 21b8928f Florent Chuffart
"partial_strain_maps"
1084 21b8928f Florent Chuffart
1085 21b8928f Florent Chuffart
the output of aggregate_intra_strain_nucs function
1086 21b8928f Florent Chuffart
1087 6e0010bc Florent Chuffart
"cur_index"
1088 21b8928f Florent Chuffart
1089 21b8928f Florent Chuffart
the index of the roi involved
1090 21b8928f Florent Chuffart
1091 21b8928f Florent Chuffart
1092 21b8928f Florent Chuffart
Value
1093 21b8928f Florent Chuffart
~~~~~
1094 21b8928f Florent Chuffart
1095 21b8928f Florent Chuffart
Returns a dataframe of all clusters obtain from
1096 21b8928f Florent Chuffart
aggregate_intra_strain_nucs function.
1097 21b8928f Florent Chuffart
1098 21b8928f Florent Chuffart
1099 21b8928f Florent Chuffart
Author(s)
1100 21b8928f Florent Chuffart
~~~~~~~~~
1101 21b8928f Florent Chuffart
1102 21b8928f Florent Chuffart
Florent Chuffart
1103 21b8928f Florent Chuffart
1104 935a568c Florent Chuffart
R: flat reads
1105 935a568c Florent Chuffart
1106 935a568c Florent Chuffart
1107 935a568c Florent Chuffart
flat reads
1108 935a568c Florent Chuffart
----------
1109 935a568c Florent Chuffart
1110 935a568c Florent Chuffart
1111 935a568c Florent Chuffart
Description
1112 935a568c Florent Chuffart
~~~~~~~~~~~
1113 935a568c Florent Chuffart
1114 935a568c Florent Chuffart
Extract reads coordinates from TempleteFilter input sequence
1115 935a568c Florent Chuffart
1116 935a568c Florent Chuffart
1117 935a568c Florent Chuffart
Usage
1118 935a568c Florent Chuffart
~~~~~
1119 935a568c Florent Chuffart
1120 935a568c Florent Chuffart
   flat_reads(reads, nuc_width)
1121 935a568c Florent Chuffart
1122 935a568c Florent Chuffart
1123 935a568c Florent Chuffart
Arguments
1124 935a568c Florent Chuffart
~~~~~~~~~
1125 935a568c Florent Chuffart
1126 935a568c Florent Chuffart
"reads"
1127 935a568c Florent Chuffart
1128 935a568c Florent Chuffart
TemplateFilter input reads
1129 935a568c Florent Chuffart
1130 935a568c Florent Chuffart
"nuc_width"
1131 935a568c Florent Chuffart
1132 935a568c Florent Chuffart
Width used to shift F and R reads.
1133 935a568c Florent Chuffart
1134 935a568c Florent Chuffart
1135 935a568c Florent Chuffart
Value
1136 935a568c Florent Chuffart
~~~~~
1137 935a568c Florent Chuffart
1138 935a568c Florent Chuffart
Returns a list of F reads, R reads and joint/shifted F and R reads.
1139 935a568c Florent Chuffart
1140 935a568c Florent Chuffart
1141 935a568c Florent Chuffart
Author(s)
1142 935a568c Florent Chuffart
~~~~~~~~~
1143 935a568c Florent Chuffart
1144 935a568c Florent Chuffart
Florent Chuffart
1145 935a568c Florent Chuffart
1146 935a568c Florent Chuffart
R: Retrieve Reads
1147 935a568c Florent Chuffart
1148 935a568c Florent Chuffart
1149 935a568c Florent Chuffart
Retrieve Reads
1150 935a568c Florent Chuffart
--------------
1151 935a568c Florent Chuffart
1152 935a568c Florent Chuffart
1153 935a568c Florent Chuffart
Description
1154 935a568c Florent Chuffart
~~~~~~~~~~~
1155 935a568c Florent Chuffart
1156 935a568c Florent Chuffart
Retrieve reads for a given marker, combi, form.
1157 935a568c Florent Chuffart
1158 935a568c Florent Chuffart
1159 935a568c Florent Chuffart
Usage
1160 935a568c Florent Chuffart
~~~~~
1161 935a568c Florent Chuffart
1162 21b8928f Florent Chuffart
   get_all_reads(marker, combi, form = "wp", config = NULL)
1163 935a568c Florent Chuffart
1164 935a568c Florent Chuffart
1165 935a568c Florent Chuffart
Arguments
1166 935a568c Florent Chuffart
~~~~~~~~~
1167 935a568c Florent Chuffart
1168 935a568c Florent Chuffart
"marker"
1169 935a568c Florent Chuffart
1170 935a568c Florent Chuffart
The marker to considere.
1171 935a568c Florent Chuffart
1172 935a568c Florent Chuffart
"combi"
1173 935a568c Florent Chuffart
1174 935a568c Florent Chuffart
The starin combination to considere.
1175 935a568c Florent Chuffart
1176 935a568c Florent Chuffart
"form"
1177 935a568c Florent Chuffart
1178 935a568c Florent Chuffart
The nuc form to considere.
1179 935a568c Florent Chuffart
1180 21b8928f Florent Chuffart
"config"
1181 21b8928f Florent Chuffart
1182 21b8928f Florent Chuffart
GLOBAL config variable
1183 21b8928f Florent Chuffart
1184 935a568c Florent Chuffart
1185 935a568c Florent Chuffart
Author(s)
1186 935a568c Florent Chuffart
~~~~~~~~~
1187 935a568c Florent Chuffart
1188 935a568c Florent Chuffart
Florent Chuffart
1189 935a568c Florent Chuffart
1190 935a568c Florent Chuffart
R: get comp strand
1191 935a568c Florent Chuffart
1192 935a568c Florent Chuffart
1193 935a568c Florent Chuffart
get comp strand
1194 935a568c Florent Chuffart
---------------
1195 935a568c Florent Chuffart
1196 935a568c Florent Chuffart
1197 935a568c Florent Chuffart
Description
1198 935a568c Florent Chuffart
~~~~~~~~~~~
1199 935a568c Florent Chuffart
1200 935a568c Florent Chuffart
Compute the complementatry strand.
1201 935a568c Florent Chuffart
1202 935a568c Florent Chuffart
1203 935a568c Florent Chuffart
Usage
1204 935a568c Florent Chuffart
~~~~~
1205 935a568c Florent Chuffart
1206 935a568c Florent Chuffart
   get_comp_strand(strand)
1207 935a568c Florent Chuffart
1208 935a568c Florent Chuffart
1209 935a568c Florent Chuffart
Arguments
1210 935a568c Florent Chuffart
~~~~~~~~~
1211 935a568c Florent Chuffart
1212 935a568c Florent Chuffart
"strand"
1213 935a568c Florent Chuffart
1214 935a568c Florent Chuffart
The original strand.
1215 935a568c Florent Chuffart
1216 935a568c Florent Chuffart
1217 935a568c Florent Chuffart
Value
1218 935a568c Florent Chuffart
~~~~~
1219 935a568c Florent Chuffart
1220 935a568c Florent Chuffart
Returns the complementatry strand.
1221 935a568c Florent Chuffart
1222 935a568c Florent Chuffart
1223 935a568c Florent Chuffart
Author(s)
1224 935a568c Florent Chuffart
~~~~~~~~~
1225 935a568c Florent Chuffart
1226 935a568c Florent Chuffart
Florent Chuffart
1227 935a568c Florent Chuffart
1228 935a568c Florent Chuffart
R: Build the design for deseq
1229 935a568c Florent Chuffart
1230 935a568c Florent Chuffart
1231 935a568c Florent Chuffart
Build the design for deseq
1232 935a568c Florent Chuffart
--------------------------
1233 935a568c Florent Chuffart
1234 935a568c Florent Chuffart
1235 935a568c Florent Chuffart
Description
1236 935a568c Florent Chuffart
~~~~~~~~~~~
1237 935a568c Florent Chuffart
1238 935a568c Florent Chuffart
This function build the design according sample properties.
1239 935a568c Florent Chuffart
1240 935a568c Florent Chuffart
1241 935a568c Florent Chuffart
Usage
1242 935a568c Florent Chuffart
~~~~~
1243 935a568c Florent Chuffart
1244 935a568c Florent Chuffart
   get_design(marker, combi, all_samples)
1245 935a568c Florent Chuffart
1246 935a568c Florent Chuffart
1247 935a568c Florent Chuffart
Arguments
1248 935a568c Florent Chuffart
~~~~~~~~~
1249 935a568c Florent Chuffart
1250 935a568c Florent Chuffart
"marker"
1251 935a568c Florent Chuffart
1252 935a568c Florent Chuffart
The marker to considere.
1253 935a568c Florent Chuffart
1254 935a568c Florent Chuffart
"combi"
1255 935a568c Florent Chuffart
1256 935a568c Florent Chuffart
The starin combination to considere.
1257 935a568c Florent Chuffart
1258 935a568c Florent Chuffart
"all_samples"
1259 935a568c Florent Chuffart
1260 935a568c Florent Chuffart
Global list of samples.
1261 935a568c Florent Chuffart
1262 935a568c Florent Chuffart
1263 935a568c Florent Chuffart
Author(s)
1264 935a568c Florent Chuffart
~~~~~~~~~
1265 935a568c Florent Chuffart
1266 935a568c Florent Chuffart
Florent Chuffart
1267 935a568c Florent Chuffart
1268 6e0010bc Florent Chuffart
R: Compute the fuzzy list for a given strain.
1269 935a568c Florent Chuffart
1270 935a568c Florent Chuffart
1271 6e0010bc Florent Chuffart
Compute the fuzzy list for a given strain.
1272 6e0010bc Florent Chuffart
------------------------------------------
1273 935a568c Florent Chuffart
1274 935a568c Florent Chuffart
1275 935a568c Florent Chuffart
Description
1276 935a568c Florent Chuffart
~~~~~~~~~~~
1277 935a568c Florent Chuffart
1278 6e0010bc Florent Chuffart
This function grabs the nucleosomes detxted by template_filter that
1279 6e0010bc Florent Chuffart
have been rejected bt aggregate_intra_strain_nucs as well positions.
1280 935a568c Florent Chuffart
1281 935a568c Florent Chuffart
1282 935a568c Florent Chuffart
Usage
1283 935a568c Florent Chuffart
~~~~~
1284 935a568c Florent Chuffart
1285 6e0010bc Florent Chuffart
   get_intra_strain_fuzzy(wp_map, roi, strain, config = NULL)
1286 935a568c Florent Chuffart
1287 935a568c Florent Chuffart
1288 935a568c Florent Chuffart
Arguments
1289 935a568c Florent Chuffart
~~~~~~~~~
1290 935a568c Florent Chuffart
1291 6e0010bc Florent Chuffart
"wp_map"
1292 935a568c Florent Chuffart
1293 6e0010bc Florent Chuffart
Well positionned nucleosomes map.
1294 935a568c Florent Chuffart
1295 935a568c Florent Chuffart
"roi"
1296 935a568c Florent Chuffart
1297 935a568c Florent Chuffart
The region of interest.
1298 935a568c Florent Chuffart
1299 6e0010bc Florent Chuffart
"strain"
1300 935a568c Florent Chuffart
1301 6e0010bc Florent Chuffart
The strain we want to extracvt the fuzzy map.
1302 935a568c Florent Chuffart
1303 8e9facd8 Florent Chuffart
"config"
1304 8e9facd8 Florent Chuffart
1305 6e0010bc Florent Chuffart
GLOBAL config variable.
1306 8e9facd8 Florent Chuffart
1307 935a568c Florent Chuffart
1308 935a568c Florent Chuffart
Author(s)
1309 935a568c Florent Chuffart
~~~~~~~~~
1310 935a568c Florent Chuffart
1311 935a568c Florent Chuffart
Florent Chuffart
1312 935a568c Florent Chuffart
1313 935a568c Florent Chuffart
R: Compute the list of SNEPs for a given set of marker, strain...
1314 935a568c Florent Chuffart
1315 935a568c Florent Chuffart
1316 935a568c Florent Chuffart
Compute the list of SNEPs for a given set of marker, strain combination and nuc form.
1317 935a568c Florent Chuffart
-------------------------------------------------------------------------------------
1318 935a568c Florent Chuffart
1319 935a568c Florent Chuffart
1320 935a568c Florent Chuffart
Description
1321 935a568c Florent Chuffart
~~~~~~~~~~~
1322 935a568c Florent Chuffart
1323 935a568c Florent Chuffart
This function uses
1324 935a568c Florent Chuffart
1325 935a568c Florent Chuffart
1326 935a568c Florent Chuffart
Usage
1327 935a568c Florent Chuffart
~~~~~
1328 935a568c Florent Chuffart
1329 21b8928f Florent Chuffart
   get_sneps(marker, combi, form, all_samples, config = NULL)
1330 935a568c Florent Chuffart
1331 935a568c Florent Chuffart
1332 935a568c Florent Chuffart
Arguments
1333 935a568c Florent Chuffart
~~~~~~~~~
1334 935a568c Florent Chuffart
1335 935a568c Florent Chuffart
"marker"
1336 935a568c Florent Chuffart
1337 935a568c Florent Chuffart
The marker involved.
1338 935a568c Florent Chuffart
1339 935a568c Florent Chuffart
"combi"
1340 935a568c Florent Chuffart
1341 935a568c Florent Chuffart
The strain combination involved.
1342 935a568c Florent Chuffart
1343 935a568c Florent Chuffart
"form"
1344 935a568c Florent Chuffart
1345 935a568c Florent Chuffart
the nuc form involved.
1346 935a568c Florent Chuffart
1347 935a568c Florent Chuffart
"all_samples"
1348 935a568c Florent Chuffart
1349 935a568c Florent Chuffart
Global list of samples.
1350 935a568c Florent Chuffart
1351 21b8928f Florent Chuffart
"config"
1352 21b8928f Florent Chuffart
1353 21b8928f Florent Chuffart
GLOBAL config variable
1354 21b8928f Florent Chuffart
1355 935a568c Florent Chuffart
1356 935a568c Florent Chuffart
Author(s)
1357 935a568c Florent Chuffart
~~~~~~~~~
1358 935a568c Florent Chuffart
1359 935a568c Florent Chuffart
Florent Chuffart
1360 935a568c Florent Chuffart
1361 935a568c Florent Chuffart
1362 935a568c Florent Chuffart
Examples
1363 935a568c Florent Chuffart
~~~~~~~~
1364 935a568c Florent Chuffart
1365 935a568c Florent Chuffart
   marker = "H3K4me1"
1366 935a568c Florent Chuffart
   combi = c("BY", "YJM")
1367 6e0010bc Florent Chuffart
   form = "wpunr" # "wp" | "unr" | "wpunr"
1368 935a568c Florent Chuffart
   # foo = get_sneps(marker, combi, form)
1369 935a568c Florent Chuffart
   # foo = get_sneps("H4K12ac", c("BY", "RM"), "wp")
1370 935a568c Florent Chuffart
1371 6e0010bc Florent Chuffart
R: Compute the unaligned nucleosomal regions (UNRs).
1372 6e0010bc Florent Chuffart
1373 6e0010bc Florent Chuffart
1374 6e0010bc Florent Chuffart
Compute the unaligned nucleosomal regions (UNRs).
1375 6e0010bc Florent Chuffart
-------------------------------------------------
1376 6e0010bc Florent Chuffart
1377 6e0010bc Florent Chuffart
1378 6e0010bc Florent Chuffart
Description
1379 6e0010bc Florent Chuffart
~~~~~~~~~~~
1380 6e0010bc Florent Chuffart
1381 6e0010bc Florent Chuffart
This function aggregate non common wp nucs for each strain and
1382 6e0010bc Florent Chuffart
substract common wp nucs. It does not take care about the size of the
1383 6e0010bc Florent Chuffart
resulting UNR. It will be take into account in the count read part og
1384 6e0010bc Florent Chuffart
the pipeline.
1385 6e0010bc Florent Chuffart
1386 6e0010bc Florent Chuffart
1387 6e0010bc Florent Chuffart
Usage
1388 6e0010bc Florent Chuffart
~~~~~
1389 6e0010bc Florent Chuffart
1390 6e0010bc Florent Chuffart
   get_unrs(combi, roi, cur_index, wp_maps, fuzzy_maps, common_nuc_results,
1391 6e0010bc Florent Chuffart
       config = NULL)
1392 6e0010bc Florent Chuffart
1393 6e0010bc Florent Chuffart
1394 6e0010bc Florent Chuffart
Arguments
1395 6e0010bc Florent Chuffart
~~~~~~~~~
1396 6e0010bc Florent Chuffart
1397 6e0010bc Florent Chuffart
"combi"
1398 6e0010bc Florent Chuffart
1399 6e0010bc Florent Chuffart
The strain combination to consider.
1400 6e0010bc Florent Chuffart
1401 6e0010bc Florent Chuffart
"roi"
1402 6e0010bc Florent Chuffart
1403 6e0010bc Florent Chuffart
The region of interest.
1404 6e0010bc Florent Chuffart
1405 6e0010bc Florent Chuffart
"cur_index"
1406 6e0010bc Florent Chuffart
1407 6e0010bc Florent Chuffart
The region of interest index.
1408 6e0010bc Florent Chuffart
1409 6e0010bc Florent Chuffart
"wp_maps"
1410 6e0010bc Florent Chuffart
1411 6e0010bc Florent Chuffart
Well positionned nucleosomes maps.
1412 6e0010bc Florent Chuffart
1413 6e0010bc Florent Chuffart
"fuzzy_maps"
1414 6e0010bc Florent Chuffart
1415 6e0010bc Florent Chuffart
Fuzzy nucleosomes maps.
1416 6e0010bc Florent Chuffart
1417 6e0010bc Florent Chuffart
"common_nuc_results"
1418 6e0010bc Florent Chuffart
1419 6e0010bc Florent Chuffart
Common wp nuc maps
1420 6e0010bc Florent Chuffart
1421 6e0010bc Florent Chuffart
"config"
1422 6e0010bc Florent Chuffart
1423 6e0010bc Florent Chuffart
GLOBAL config variable
1424 6e0010bc Florent Chuffart
1425 6e0010bc Florent Chuffart
1426 6e0010bc Florent Chuffart
Author(s)
1427 6e0010bc Florent Chuffart
~~~~~~~~~
1428 6e0010bc Florent Chuffart
1429 6e0010bc Florent Chuffart
Florent Chuffart
1430 6e0010bc Florent Chuffart
1431 6e0010bc Florent Chuffart
R: Returns the intersection of 2 list on regions.
1432 6e0010bc Florent Chuffart
1433 6e0010bc Florent Chuffart
1434 6e0010bc Florent Chuffart
Returns the intersection of 2 list on regions.
1435 6e0010bc Florent Chuffart
----------------------------------------------
1436 6e0010bc Florent Chuffart
1437 6e0010bc Florent Chuffart
1438 6e0010bc Florent Chuffart
Description
1439 6e0010bc Florent Chuffart
~~~~~~~~~~~
1440 6e0010bc Florent Chuffart
1441 6e0010bc Florent Chuffart
This function...
1442 6e0010bc Florent Chuffart
1443 6e0010bc Florent Chuffart
1444 6e0010bc Florent Chuffart
Usage
1445 6e0010bc Florent Chuffart
~~~~~
1446 6e0010bc Florent Chuffart
1447 6e0010bc Florent Chuffart
   intersect_region(region1, region2)
1448 6e0010bc Florent Chuffart
1449 6e0010bc Florent Chuffart
1450 6e0010bc Florent Chuffart
Arguments
1451 6e0010bc Florent Chuffart
~~~~~~~~~
1452 6e0010bc Florent Chuffart
1453 6e0010bc Florent Chuffart
"region1"
1454 6e0010bc Florent Chuffart
1455 6e0010bc Florent Chuffart
Original regions.
1456 6e0010bc Florent Chuffart
1457 6e0010bc Florent Chuffart
"region2"
1458 6e0010bc Florent Chuffart
1459 6e0010bc Florent Chuffart
Regions to intersect.
1460 6e0010bc Florent Chuffart
1461 6e0010bc Florent Chuffart
1462 6e0010bc Florent Chuffart
Author(s)
1463 6e0010bc Florent Chuffart
~~~~~~~~~
1464 6e0010bc Florent Chuffart
1465 6e0010bc Florent Chuffart
Florent Chuffart
1466 6e0010bc Florent Chuffart
1467 935a568c Florent Chuffart
R: Likelihood ratio
1468 935a568c Florent Chuffart
1469 935a568c Florent Chuffart
1470 935a568c Florent Chuffart
Likelihood ratio
1471 935a568c Florent Chuffart
----------------
1472 935a568c Florent Chuffart
1473 935a568c Florent Chuffart
1474 935a568c Florent Chuffart
Description
1475 935a568c Florent Chuffart
~~~~~~~~~~~
1476 935a568c Florent Chuffart
1477 7e2d37e1 Florent Chuffart
Compute the log likelihood ratio of two or more set of value.
1478 935a568c Florent Chuffart
1479 935a568c Florent Chuffart
1480 935a568c Florent Chuffart
Usage
1481 935a568c Florent Chuffart
~~~~~
1482 935a568c Florent Chuffart
1483 7e2d37e1 Florent Chuffart
   llr_score_nvecs(xs)
1484 935a568c Florent Chuffart
1485 935a568c Florent Chuffart
1486 935a568c Florent Chuffart
Arguments
1487 935a568c Florent Chuffart
~~~~~~~~~
1488 935a568c Florent Chuffart
1489 7e2d37e1 Florent Chuffart
"xs"
1490 935a568c Florent Chuffart
1491 7e2d37e1 Florent Chuffart
list of vectors.
1492 935a568c Florent Chuffart
1493 935a568c Florent Chuffart
1494 935a568c Florent Chuffart
Value
1495 935a568c Florent Chuffart
~~~~~
1496 935a568c Florent Chuffart
1497 7e2d37e1 Florent Chuffart
Returns the log likelihood ratio.
1498 935a568c Florent Chuffart
1499 935a568c Florent Chuffart
1500 935a568c Florent Chuffart
Author(s)
1501 935a568c Florent Chuffart
~~~~~~~~~
1502 935a568c Florent Chuffart
1503 935a568c Florent Chuffart
Florent Chuffart
1504 935a568c Florent Chuffart
1505 935a568c Florent Chuffart
1506 935a568c Florent Chuffart
Examples
1507 935a568c Florent Chuffart
~~~~~~~~
1508 935a568c Florent Chuffart
1509 935a568c Florent Chuffart
   # LOD score for 2 set of values
1510 935a568c Florent Chuffart
   mean1=5; sd1=2; card2 = 250
1511 935a568c Florent Chuffart
   mean2=6; sd2=3; card1 = 200
1512 935a568c Florent Chuffart
   x1 = rnorm(card1, mean1, sd1)
1513 935a568c Florent Chuffart
   x2 = rnorm(card2, mean2, sd2)
1514 935a568c Florent Chuffart
   min = floor(min(c(x1,x2)))
1515 935a568c Florent Chuffart
   max = ceiling(max(c(x1,x2)))
1516 935a568c Florent Chuffart
   hist(c(x1,x2), xlim=c(min, max), breaks=min:max)
1517 935a568c Florent Chuffart
   lines(min:max,dnorm(min:max,mean1,sd1)*card1,col=2)
1518 935a568c Florent Chuffart
   lines(min:max,dnorm(min:max,mean2,sd2)*card2,col=3)
1519 935a568c Florent Chuffart
   lines(min:max,dnorm(min:max,mean(c(x1,x2)),sd(c(x1,x2)))*card2,col=4)
1520 7e2d37e1 Florent Chuffart
   llr_score_nvecs(list(x1,x2))
1521 935a568c Florent Chuffart
1522 935a568c Florent Chuffart
R: nm
1523 935a568c Florent Chuffart
1524 935a568c Florent Chuffart
1525 935a568c Florent Chuffart
nm
1526 935a568c Florent Chuffart
--
1527 935a568c Florent Chuffart
1528 935a568c Florent Chuffart
1529 935a568c Florent Chuffart
Description
1530 935a568c Florent Chuffart
~~~~~~~~~~~
1531 935a568c Florent Chuffart
1532 935a568c Florent Chuffart
It provides a set of useful functions allowing to perform quantitative
1533 935a568c Florent Chuffart
analysis of nucleosomal epigenome.
1534 935a568c Florent Chuffart
1535 935a568c Florent Chuffart
1536 935a568c Florent Chuffart
Details
1537 935a568c Florent Chuffart
~~~~~~~
1538 935a568c Florent Chuffart
1539 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1540 935a568c Florent Chuffart
| Package:        | nucleominer                                         |
1541 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1542 935a568c Florent Chuffart
| Maintainer:     | Florent Chuffart <florent.chuffart@ens-lyon.fr>     |
1543 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1544 935a568c Florent Chuffart
| Author:         | Florent Chuffart                                    |
1545 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1546 dadb6a4d Florent Chuffart
| Version:        | 2.3.45                                              |
1547 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1548 935a568c Florent Chuffart
| License:        | CeCILL                                              |
1549 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1550 935a568c Florent Chuffart
| Title:          | nm                                                  |
1551 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1552 8e9facd8 Florent Chuffart
| Depends:        | seqinr, plotrix, DESeq, cachecache                  |
1553 935a568c Florent Chuffart
+-----------------+-----------------------------------------------------+
1554 935a568c Florent Chuffart
1555 935a568c Florent Chuffart
1556 935a568c Florent Chuffart
Author(s)
1557 935a568c Florent Chuffart
~~~~~~~~~
1558 935a568c Florent Chuffart
1559 935a568c Florent Chuffart
Florent Chuffart
1560 935a568c Florent Chuffart
1561 935a568c Florent Chuffart
R: Plot the distribution of reads.
1562 935a568c Florent Chuffart
1563 935a568c Florent Chuffart
1564 935a568c Florent Chuffart
Plot the distribution of reads.
1565 935a568c Florent Chuffart
-------------------------------
1566 935a568c Florent Chuffart
1567 935a568c Florent Chuffart
1568 935a568c Florent Chuffart
Description
1569 935a568c Florent Chuffart
~~~~~~~~~~~
1570 935a568c Florent Chuffart
1571 935a568c Florent Chuffart
This fuxntion use the deseq nomalization feature to compare
1572 935a568c Florent Chuffart
qualitatively the distribution.
1573 935a568c Florent Chuffart
1574 935a568c Florent Chuffart
1575 935a568c Florent Chuffart
Usage
1576 935a568c Florent Chuffart
~~~~~
1577 935a568c Florent Chuffart
1578 935a568c Florent Chuffart
   plot_dist_samples(strain, marker, res, all_samples, NEWPLOT = TRUE)
1579 935a568c Florent Chuffart
1580 935a568c Florent Chuffart
1581 935a568c Florent Chuffart
Arguments
1582 935a568c Florent Chuffart
~~~~~~~~~
1583 935a568c Florent Chuffart
1584 935a568c Florent Chuffart
"strain"
1585 935a568c Florent Chuffart
1586 935a568c Florent Chuffart
The strain to considere.
1587 935a568c Florent Chuffart
1588 935a568c Florent Chuffart
"marker"
1589 935a568c Florent Chuffart
1590 935a568c Florent Chuffart
The marker to considere.
1591 935a568c Florent Chuffart
1592 935a568c Florent Chuffart
"res"
1593 935a568c Florent Chuffart
1594 935a568c Florent Chuffart
Data
1595 935a568c Florent Chuffart
1596 935a568c Florent Chuffart
"all_samples"
1597 935a568c Florent Chuffart
1598 935a568c Florent Chuffart
Global list of samples.
1599 935a568c Florent Chuffart
1600 935a568c Florent Chuffart
"NEWPLOT"
1601 935a568c Florent Chuffart
1602 935a568c Florent Chuffart
If FALSE the curve will be add to the current plot.
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 935a568c Florent Chuffart
R: sign from strand
1611 935a568c Florent Chuffart
1612 935a568c Florent Chuffart
1613 935a568c Florent Chuffart
sign from strand
1614 935a568c Florent Chuffart
----------------
1615 935a568c Florent Chuffart
1616 935a568c Florent Chuffart
1617 935a568c Florent Chuffart
Description
1618 935a568c Florent Chuffart
~~~~~~~~~~~
1619 935a568c Florent Chuffart
1620 935a568c Florent Chuffart
Get the sign of strand
1621 935a568c Florent Chuffart
1622 935a568c Florent Chuffart
1623 935a568c Florent Chuffart
Usage
1624 935a568c Florent Chuffart
~~~~~
1625 935a568c Florent Chuffart
1626 935a568c Florent Chuffart
   sign_from_strand(strands)
1627 935a568c Florent Chuffart
1628 935a568c Florent Chuffart
1629 935a568c Florent Chuffart
Arguments
1630 935a568c Florent Chuffart
~~~~~~~~~
1631 935a568c Florent Chuffart
1632 935a568c Florent Chuffart
+-----------------+------+
1633 935a568c Florent Chuffart
+-----------------+------+
1634 935a568c Florent Chuffart
1635 935a568c Florent Chuffart
1636 935a568c Florent Chuffart
Value
1637 935a568c Florent Chuffart
~~~~~
1638 935a568c Florent Chuffart
1639 935a568c Florent Chuffart
If strand in forward then returns 1 else returns -1
1640 935a568c Florent Chuffart
1641 935a568c Florent Chuffart
1642 935a568c Florent Chuffart
Author(s)
1643 935a568c Florent Chuffart
~~~~~~~~~
1644 935a568c Florent Chuffart
1645 935a568c Florent Chuffart
Florent Chuffart
1646 935a568c Florent Chuffart
1647 935a568c Florent Chuffart
R: Substract to a list of regions an other list of regions that...
1648 935a568c Florent Chuffart
1649 935a568c Florent Chuffart
1650 935a568c Florent Chuffart
Substract to a list of regions an other list of regions that intersect it.
1651 935a568c Florent Chuffart
--------------------------------------------------------------------------
1652 935a568c Florent Chuffart
1653 935a568c Florent Chuffart
1654 935a568c Florent Chuffart
Description
1655 935a568c Florent Chuffart
~~~~~~~~~~~
1656 935a568c Florent Chuffart
1657 935a568c Florent Chuffart
This fucntion embed a recursive part. It occurs when a substracted
1658 935a568c Florent Chuffart
region split an original region on two.
1659 935a568c Florent Chuffart
1660 935a568c Florent Chuffart
1661 935a568c Florent Chuffart
Usage
1662 935a568c Florent Chuffart
~~~~~
1663 935a568c Florent Chuffart
1664 935a568c Florent Chuffart
   substract_region(region1, region2)
1665 935a568c Florent Chuffart
1666 935a568c Florent Chuffart
1667 935a568c Florent Chuffart
Arguments
1668 935a568c Florent Chuffart
~~~~~~~~~
1669 935a568c Florent Chuffart
1670 935a568c Florent Chuffart
"region1"
1671 935a568c Florent Chuffart
1672 935a568c Florent Chuffart
Original regions.
1673 935a568c Florent Chuffart
1674 935a568c Florent Chuffart
"region2"
1675 935a568c Florent Chuffart
1676 935a568c Florent Chuffart
Regions to substract.
1677 935a568c Florent Chuffart
1678 935a568c Florent Chuffart
1679 935a568c Florent Chuffart
Author(s)
1680 935a568c Florent Chuffart
~~~~~~~~~
1681 935a568c Florent Chuffart
1682 935a568c Florent Chuffart
Florent Chuffart
1683 935a568c Florent Chuffart
1684 8e9facd8 Florent Chuffart
R: Switch a pairlist
1685 8e9facd8 Florent Chuffart
1686 8e9facd8 Florent Chuffart
1687 8e9facd8 Florent Chuffart
Switch a pairlist
1688 8e9facd8 Florent Chuffart
-----------------
1689 8e9facd8 Florent Chuffart
1690 8e9facd8 Florent Chuffart
1691 8e9facd8 Florent Chuffart
Description
1692 8e9facd8 Florent Chuffart
~~~~~~~~~~~
1693 8e9facd8 Florent Chuffart
1694 8e9facd8 Florent Chuffart
Take a pairlist key:value and return the switched pairlist value:key.
1695 8e9facd8 Florent Chuffart
1696 8e9facd8 Florent Chuffart
1697 8e9facd8 Florent Chuffart
Usage
1698 8e9facd8 Florent Chuffart
~~~~~
1699 8e9facd8 Florent Chuffart
1700 8e9facd8 Florent Chuffart
   switch_pairlist(l)
1701 8e9facd8 Florent Chuffart
1702 8e9facd8 Florent Chuffart
1703 8e9facd8 Florent Chuffart
Arguments
1704 8e9facd8 Florent Chuffart
~~~~~~~~~
1705 8e9facd8 Florent Chuffart
1706 8e9facd8 Florent Chuffart
"l"
1707 8e9facd8 Florent Chuffart
1708 8e9facd8 Florent Chuffart
The pairlist to switch.
1709 8e9facd8 Florent Chuffart
1710 8e9facd8 Florent Chuffart
1711 8e9facd8 Florent Chuffart
Value
1712 8e9facd8 Florent Chuffart
~~~~~
1713 8e9facd8 Florent Chuffart
1714 8e9facd8 Florent Chuffart
The switched pairlist.
1715 8e9facd8 Florent Chuffart
1716 8e9facd8 Florent Chuffart
1717 8e9facd8 Florent Chuffart
Author(s)
1718 8e9facd8 Florent Chuffart
~~~~~~~~~
1719 8e9facd8 Florent Chuffart
1720 8e9facd8 Florent Chuffart
Florent Chuffart
1721 8e9facd8 Florent Chuffart
1722 8e9facd8 Florent Chuffart
1723 8e9facd8 Florent Chuffart
Examples
1724 8e9facd8 Florent Chuffart
~~~~~~~~
1725 8e9facd8 Florent Chuffart
1726 8e9facd8 Florent Chuffart
   l = list(key1 = "value1", key2 = "value2")
1727 8e9facd8 Florent Chuffart
   print(switch_pairlist(l))
1728 8e9facd8 Florent Chuffart
1729 6e0010bc Florent Chuffart
R: Translate coords of a genome region.
1730 935a568c Florent Chuffart
1731 935a568c Florent Chuffart
1732 6e0010bc Florent Chuffart
Translate coords of a genome region.
1733 6e0010bc Florent Chuffart
------------------------------------
1734 935a568c Florent Chuffart
1735 935a568c Florent Chuffart
1736 935a568c Florent Chuffart
Description
1737 935a568c Florent Chuffart
~~~~~~~~~~~
1738 935a568c Florent Chuffart
1739 6e0010bc Florent Chuffart
This function is used in the examples, usualy you have to define your
1740 6e0010bc Florent Chuffart
own translation function and overwrite this one using *unlockBinding*
1741 6e0010bc Florent Chuffart
features. Please, refer to the example.
1742 935a568c Florent Chuffart
1743 935a568c Florent Chuffart
1744 935a568c Florent Chuffart
Usage
1745 935a568c Florent Chuffart
~~~~~
1746 935a568c Florent Chuffart
1747 6e0010bc Florent Chuffart
   translate_cur(roi, strain2, config = NULL, big_cur = NULL)
1748 935a568c Florent Chuffart
1749 935a568c Florent Chuffart
1750 935a568c Florent Chuffart
Arguments
1751 935a568c Florent Chuffart
~~~~~~~~~
1752 935a568c Florent Chuffart
1753 6e0010bc Florent Chuffart
"roi"
1754 935a568c Florent Chuffart
1755 6e0010bc Florent Chuffart
Original genome region of interest.
1756 935a568c Florent Chuffart
1757 6e0010bc Florent Chuffart
"strain2"
1758 935a568c Florent Chuffart
1759 6e0010bc Florent Chuffart
The strain in wich you want the genome region of interest.
1760 935a568c Florent Chuffart
1761 8e9facd8 Florent Chuffart
"config"
1762 8e9facd8 Florent Chuffart
1763 8e9facd8 Florent Chuffart
GLOBAL config variable
1764 8e9facd8 Florent Chuffart
1765 6e0010bc Florent Chuffart
"big_cur"
1766 935a568c Florent Chuffart
1767 6e0010bc Florent Chuffart
A largest region than roi use to filter c2c if it is needed.
1768 935a568c Florent Chuffart
1769 935a568c Florent Chuffart
1770 935a568c Florent Chuffart
Author(s)
1771 935a568c Florent Chuffart
~~~~~~~~~
1772 935a568c Florent Chuffart
1773 935a568c Florent Chuffart
Florent Chuffart
1774 935a568c Florent Chuffart
1775 935a568c Florent Chuffart
1776 6e0010bc Florent Chuffart
Examples
1777 6e0010bc Florent Chuffart
~~~~~~~~
1778 935a568c Florent Chuffart
1779 6e0010bc Florent Chuffart
   # Define new translate_cur function...
1780 6e0010bc Florent Chuffart
   translate_cur = function(roi, strain2, config) {
1781 6e0010bc Florent Chuffart
       strain1 = roi$strain_ref
1782 6e0010bc Florent Chuffart
       if (strain1 == strain2) {
1783 6e0010bc Florent Chuffart
           return(roi)
1784 6e0010bc Florent Chuffart
       } else {
1785 6e0010bc Florent Chuffart
         stop("Here is my new translate_cur function...")
1786 6e0010bc Florent Chuffart
       }
1787 6e0010bc Florent Chuffart
   }
1788 6e0010bc Florent Chuffart
   # Binding it by uncomment follwing lines.
1789 6e0010bc Florent Chuffart
   # unlockBinding("translate_cur", as.environment("package:nm"))
1790 6e0010bc Florent Chuffart
   # unlockBinding("translate_cur", getNamespace("nm"))
1791 6e0010bc Florent Chuffart
   # assign("translate_cur", translate_cur, "package:nm")
1792 6e0010bc Florent Chuffart
   # assign("translate_cur", translate_cur, getNamespace("nm"))
1793 6e0010bc Florent Chuffart
   # lockBinding("translate_cur", getNamespace("nm"))
1794 6e0010bc Florent Chuffart
   # lockBinding("translate_cur", as.environment("package:nm"))
1795 6e0010bc Florent Chuffart
1796 6e0010bc Florent Chuffart
R: Translate a list of regions from a strain ref to another.
1797 6e0010bc Florent Chuffart
1798 6e0010bc Florent Chuffart
1799 6e0010bc Florent Chuffart
Translate a list of regions from a strain ref to another.
1800 6e0010bc Florent Chuffart
---------------------------------------------------------
1801 935a568c Florent Chuffart
1802 935a568c Florent Chuffart
1803 935a568c Florent Chuffart
Description
1804 935a568c Florent Chuffart
~~~~~~~~~~~
1805 935a568c Florent Chuffart
1806 6e0010bc Florent Chuffart
This function is an eloborated call to translate_cur.
1807 935a568c Florent Chuffart
1808 935a568c Florent Chuffart
1809 935a568c Florent Chuffart
Usage
1810 935a568c Florent Chuffart
~~~~~
1811 935a568c Florent Chuffart
1812 6e0010bc Florent Chuffart
   translate_regions(regions, combi, cur_index, config = NULL, roi)
1813 935a568c Florent Chuffart
1814 935a568c Florent Chuffart
1815 935a568c Florent Chuffart
Arguments
1816 935a568c Florent Chuffart
~~~~~~~~~
1817 935a568c Florent Chuffart
1818 6e0010bc Florent Chuffart
"regions"
1819 935a568c Florent Chuffart
1820 6e0010bc Florent Chuffart
Regions to be translated.
1821 935a568c Florent Chuffart
1822 6e0010bc Florent Chuffart
"combi"
1823 935a568c Florent Chuffart
1824 6e0010bc Florent Chuffart
Combination of strains.
1825 6e0010bc Florent Chuffart
1826 6e0010bc Florent Chuffart
"cur_index"
1827 6e0010bc Florent Chuffart
1828 6e0010bc Florent Chuffart
The region of interest index.
1829 935a568c Florent Chuffart
1830 8e9facd8 Florent Chuffart
"config"
1831 935a568c Florent Chuffart
1832 8e9facd8 Florent Chuffart
GLOBAL config variable
1833 935a568c Florent Chuffart
1834 6e0010bc Florent Chuffart
"roi"
1835 935a568c Florent Chuffart
1836 6e0010bc Florent Chuffart
The region of interest.
1837 935a568c Florent Chuffart
1838 935a568c Florent Chuffart
1839 935a568c Florent Chuffart
Author(s)
1840 935a568c Florent Chuffart
~~~~~~~~~
1841 935a568c Florent Chuffart
1842 935a568c Florent Chuffart
Florent Chuffart
1843 935a568c Florent Chuffart
1844 935a568c Florent Chuffart
R: Aggregate regions that intersect themnselves.
1845 935a568c Florent Chuffart
1846 935a568c Florent Chuffart
1847 935a568c Florent Chuffart
Aggregate regions that intersect themnselves.
1848 935a568c Florent Chuffart
---------------------------------------------
1849 935a568c Florent Chuffart
1850 935a568c Florent Chuffart
1851 935a568c Florent Chuffart
Description
1852 935a568c Florent Chuffart
~~~~~~~~~~~
1853 935a568c Florent Chuffart
1854 935a568c Florent Chuffart
This function is based on sort of lower bounds to detect regions that
1855 935a568c Florent Chuffart
intersect. We compare lower bound and upper bound of the porevious
1856 935a568c Florent Chuffart
item. This function embed a while loop and break break regions list
1857 935a568c Florent Chuffart
become stable.
1858 935a568c Florent Chuffart
1859 935a568c Florent Chuffart
1860 935a568c Florent Chuffart
Usage
1861 935a568c Florent Chuffart
~~~~~
1862 935a568c Florent Chuffart
1863 935a568c Florent Chuffart
   union_regions(regions)
1864 935a568c Florent Chuffart
1865 935a568c Florent Chuffart
1866 935a568c Florent Chuffart
Arguments
1867 935a568c Florent Chuffart
~~~~~~~~~
1868 935a568c Florent Chuffart
1869 935a568c Florent Chuffart
"regions"
1870 935a568c Florent Chuffart
1871 935a568c Florent Chuffart
The Regions to be aggregated
1872 935a568c Florent Chuffart
1873 935a568c Florent Chuffart
1874 935a568c Florent Chuffart
Author(s)
1875 935a568c Florent Chuffart
~~~~~~~~~
1876 935a568c Florent Chuffart
1877 935a568c Florent Chuffart
Florent Chuffart
1878 935a568c Florent Chuffart
1879 935a568c Florent Chuffart
R: Watching analysis of samples
1880 935a568c Florent Chuffart
1881 935a568c Florent Chuffart
1882 935a568c Florent Chuffart
Watching analysis of samples
1883 935a568c Florent Chuffart
----------------------------
1884 935a568c Florent Chuffart
1885 935a568c Florent Chuffart
1886 935a568c Florent Chuffart
Description
1887 935a568c Florent Chuffart
~~~~~~~~~~~
1888 935a568c Florent Chuffart
1889 935a568c Florent Chuffart
This function allows to view analysis for a particuler region of the
1890 935a568c Florent Chuffart
genome.
1891 935a568c Florent Chuffart
1892 935a568c Florent Chuffart
1893 935a568c Florent Chuffart
Usage
1894 935a568c Florent Chuffart
~~~~~
1895 935a568c Florent Chuffart
1896 935a568c Florent Chuffart
   watch_samples(replicates, read_length, plot_ref_genome = TRUE,
1897 935a568c Florent Chuffart
       plot_arrow_raw_reads = TRUE, plot_arrow_nuc_reads = TRUE,
1898 935a568c Florent Chuffart
       plot_squared_reads = TRUE, plot_coverage = FALSE, plot_gaussian_reads = TRUE,
1899 935a568c Florent Chuffart
       plot_gaussian_unified_reads = TRUE, plot_ellipse_nucs = TRUE,
1900 6e0010bc Florent Chuffart
       change_col = TRUE, plot_wp_nucs = TRUE, plot_fuzzy_nucs = TRUE,
1901 6e0010bc Florent Chuffart
       plot_wp_nuc_model = TRUE, plot_common_nucs = FALSE, plot_common_unrs = FALSE,
1902 6e0010bc Florent Chuffart
       plot_wp_nucs_4_nonmnase = FALSE, plot_chain = FALSE, plot_sample_id = FALSE,
1903 6e0010bc Florent Chuffart
       aggregated_intra_strain_nucs = NULL, aligned_inter_strain_nucs = NULL,
1904 6e0010bc Florent Chuffart
       height = 10, main = NULL, xlab = NULL, ylab = "#reads (per million reads)",
1905 6e0010bc Florent Chuffart
       config = NULL)
1906 935a568c Florent Chuffart
1907 935a568c Florent Chuffart
1908 935a568c Florent Chuffart
Arguments
1909 935a568c Florent Chuffart
~~~~~~~~~
1910 935a568c Florent Chuffart
1911 935a568c Florent Chuffart
"replicates"
1912 935a568c Florent Chuffart
1913 935a568c Florent Chuffart
replicates under the form...
1914 935a568c Florent Chuffart
1915 935a568c Florent Chuffart
"read_length"
1916 935a568c Florent Chuffart
1917 935a568c Florent Chuffart
length of the reads
1918 935a568c Florent Chuffart
1919 935a568c Florent Chuffart
"plot_ref_genome"
1920 935a568c Florent Chuffart
1921 935a568c Florent Chuffart
Plot (or not) reference genome.
1922 935a568c Florent Chuffart
1923 935a568c Florent Chuffart
"plot_arrow_raw_reads"
1924 935a568c Florent Chuffart
1925 935a568c Florent Chuffart
Plot (or not) arrows for raw reads.
1926 935a568c Florent Chuffart
1927 935a568c Florent Chuffart
"plot_arrow_nuc_reads"
1928 935a568c Florent Chuffart
1929 935a568c Florent Chuffart
Plot (or not) arrows for reads aasiocied to a nucleosome.
1930 935a568c Florent Chuffart
1931 935a568c Florent Chuffart
"plot_squared_reads"
1932 935a568c Florent Chuffart
1933 935a568c Florent Chuffart
Plot (or not) reads in the square fashion.
1934 935a568c Florent Chuffart
1935 935a568c Florent Chuffart
"plot_coverage"
1936 935a568c Florent Chuffart
1937 935a568c Florent Chuffart
Plot (or not) reads in the covergae fashion. fashion.
1938 935a568c Florent Chuffart
1939 935a568c Florent Chuffart
"plot_gaussian_reads"
1940 935a568c Florent Chuffart
1941 935a568c Florent Chuffart
Plot (or not) gaussian model of a F anf R reads.
1942 935a568c Florent Chuffart
1943 935a568c Florent Chuffart
"plot_gaussian_unified_reads"
1944 935a568c Florent Chuffart
1945 935a568c Florent Chuffart
Plot (or not) gaussian model of a nuc.
1946 935a568c Florent Chuffart
1947 935a568c Florent Chuffart
"plot_ellipse_nucs"
1948 935a568c Florent Chuffart
1949 935a568c Florent Chuffart
Plot (or not) ellipse for a nuc.
1950 935a568c Florent Chuffart
1951 21b8928f Florent Chuffart
"change_col"
1952 21b8928f Florent Chuffart
1953 21b8928f Florent Chuffart
Change the color of each nucleosome.
1954 21b8928f Florent Chuffart
1955 935a568c Florent Chuffart
"plot_wp_nucs"
1956 935a568c Florent Chuffart
1957 935a568c Florent Chuffart
Plot (or not) cluster of nucs
1958 935a568c Florent Chuffart
1959 6e0010bc Florent Chuffart
"plot_fuzzy_nucs"
1960 6e0010bc Florent Chuffart
1961 6e0010bc Florent Chuffart
Plot (or not) cluster of fuzzy
1962 6e0010bc Florent Chuffart
1963 935a568c Florent Chuffart
"plot_wp_nuc_model"
1964 935a568c Florent Chuffart
1965 935a568c Florent Chuffart
Plot (or not) gaussian model for a cluster of nucs
1966 935a568c Florent Chuffart
1967 935a568c Florent Chuffart
"plot_common_nucs"
1968 935a568c Florent Chuffart
1969 935a568c Florent Chuffart
Plot (or not) aligned reads.
1970 935a568c Florent Chuffart
1971 6e0010bc Florent Chuffart
"plot_common_unrs"
1972 935a568c Florent Chuffart
1973 6e0010bc Florent Chuffart
Plot (or not) unaligned nucleosomal refgions (UNRs).
1974 935a568c Florent Chuffart
1975 935a568c Florent Chuffart
"plot_wp_nucs_4_nonmnase"
1976 935a568c Florent Chuffart
1977 935a568c Florent Chuffart
Plot (or not) clusters for non inputs samples.
1978 935a568c Florent Chuffart
1979 21b8928f Florent Chuffart
"plot_chain"
1980 21b8928f Florent Chuffart
1981 21b8928f Florent Chuffart
Plot (or not) clusterised nuceosomes between mnase samples.
1982 21b8928f Florent Chuffart
1983 6e0010bc Florent Chuffart
"plot_sample_id"
1984 6e0010bc Florent Chuffart
1985 6e0010bc Florent Chuffart
Plot (or not) the sample id for each sample.
1986 6e0010bc Florent Chuffart
1987 935a568c Florent Chuffart
"aggregated_intra_strain_nucs"
1988 935a568c Florent Chuffart
1989 935a568c Florent Chuffart
list of aggregated intra strain nucs. If NULL, it will be computed.
1990 935a568c Florent Chuffart
1991 935a568c Florent Chuffart
"aligned_inter_strain_nucs"
1992 935a568c Florent Chuffart
1993 935a568c Florent Chuffart
list of aligned inter strain nucs. If NULL, it will be computed.
1994 935a568c Florent Chuffart
1995 935a568c Florent Chuffart
"height"
1996 935a568c Florent Chuffart
1997 935a568c Florent Chuffart
Number of reads in per million read for each sample, graphical
1998 935a568c Florent Chuffart
parametre for the y axis.
1999 935a568c Florent Chuffart
2000 6e0010bc Florent Chuffart
"main"
2001 6e0010bc Florent Chuffart
2002 6e0010bc Florent Chuffart
main title of the produced plot
2003 6e0010bc Florent Chuffart
2004 6e0010bc Florent Chuffart
"xlab"
2005 6e0010bc Florent Chuffart
2006 6e0010bc Florent Chuffart
xlab of the produced plot
2007 6e0010bc Florent Chuffart
2008 6e0010bc Florent Chuffart
"ylab"
2009 6e0010bc Florent Chuffart
2010 6e0010bc Florent Chuffart
ylab of the produced plot
2011 6e0010bc Florent Chuffart
2012 8e9facd8 Florent Chuffart
"config"
2013 8e9facd8 Florent Chuffart
2014 8e9facd8 Florent Chuffart
GLOBAL config variable
2015 8e9facd8 Florent Chuffart
2016 935a568c Florent Chuffart
2017 935a568c Florent Chuffart
Author(s)
2018 935a568c Florent Chuffart
~~~~~~~~~
2019 935a568c Florent Chuffart
2020 935a568c Florent Chuffart
Florent Chuffart