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