6 |
6 |
Python Reference
|
7 |
7 |
================
|
8 |
8 |
|
9 |
|
configurator.CSV_SAMPLE_FILE = None
|
10 |
|
|
11 |
|
Path to cvs file that contains sample information.
|
12 |
|
|
13 |
|
configurator.BOWTIE_BUILD_BIN = None
|
14 |
|
|
15 |
|
Path for bowtie2 build bin.
|
16 |
|
|
17 |
|
configurator.BOWTIE2_BIN = None
|
18 |
|
|
19 |
|
Path for bowtie2 bin.
|
20 |
|
|
21 |
|
configurator.SAMTOOLS_BIN = None
|
22 |
|
|
23 |
|
Path for samtools bin.
|
24 |
|
|
25 |
|
configurator.BEDTOOLS_BIN = None
|
26 |
|
|
27 |
|
Path for bedtools bin.
|
28 |
|
|
29 |
|
configurator.TF_BIN = None
|
30 |
|
|
31 |
|
Path for TemplateFilter bin.
|
32 |
|
|
33 |
|
configurator.TF_TEMPLATES_FILE = None
|
34 |
|
|
35 |
|
Path for TemplateFilter templates file.
|
36 |
|
|
37 |
|
configurator.ILLUMINA_OUTPUTFILE_PREFIX = None
|
38 |
|
|
39 |
|
Prefix for Illumina fastq output files.
|
40 |
|
|
41 |
|
configurator.INDEX_DIR = None
|
42 |
|
|
43 |
|
Path for index dir.
|
44 |
|
|
45 |
|
configurator.ALIGN_DIR = None
|
46 |
|
|
47 |
|
Path for align dir.
|
48 |
|
|
49 |
|
configurator.LOG_DIR = None
|
50 |
|
|
51 |
|
Path for log dir
|
52 |
|
|
53 |
|
configurator.CACHE_DIR = None
|
54 |
|
|
55 |
|
Path for cache dir.
|
56 |
|
|
57 |
|
configurator.RESULTS_DIR = None
|
58 |
|
|
59 |
|
Path for results dir
|
60 |
|
|
61 |
|
configurator.FASTA_REFERENCE_GENOME_FILES = None
|
62 |
|
|
63 |
|
Dictionary where each fasta reference genomes is indexed by
|
64 |
|
reference strain that it corresponds.
|
65 |
|
|
66 |
|
configurator.AREA_BLACK_LIST = None
|
67 |
|
|
68 |
|
Dictionary where keys are strain and values are black listed of
|
69 |
|
geneome region.
|
70 |
|
|
71 |
|
configurator.FASTA_INDEXES = None
|
72 |
|
|
73 |
|
Dictionary of strain that indexes dictionaries where keys are
|
74 |
|
chromosome reference from Fastq file and value are its
|
75 |
|
correspondance for Templatefilter.
|
76 |
|
|
77 |
|
configurator.C2C_FILES = None
|
78 |
|
|
79 |
|
Dictionary where each strain combination indexes genome aligment.
|
80 |
|
|
81 |
|
configurator.READ_LENGTH = None
|
82 |
|
|
83 |
|
Length of Illumina reads.
|
84 |
|
|
85 |
|
configurator.MAPQ_THRES = None
|
86 |
|
|
87 |
|
Aligment quality thresold.
|
88 |
|
|
89 |
|
configurator.TF_CORR = None
|
90 |
|
|
91 |
|
TemplateFilter Template correlation threshold.
|
92 |
|
|
93 |
|
configurator.TF_MINW = None
|
94 |
|
|
95 |
|
TemplateFilter minimum width of a nucleosome.
|
96 |
|
|
97 |
|
configurator.TF_MAXW = None
|
98 |
|
|
99 |
|
TemplateFilter maximum width of a nucleosome.
|
100 |
|
|
101 |
|
configurator.TF_OL = None
|
102 |
|
|
103 |
|
TemplateFilter maximum allowed overlap for two nucleosomes.
|
104 |
|
|
105 |
|
libcoverage.create_bowtie_index(strain, strain_fasta_ref, index_dir, bowtie_build_bin)
|
106 |
|
|
107 |
|
Creates bowtie index for a strain *strain*.
|
108 |
|
|
109 |
|
Parameters:
|
110 |
|
* **strain** -- the strain reference.
|
111 |
|
|
112 |
|
* **strain_fasta_ref** -- fasta reference genome.
|
113 |
|
|
114 |
|
* **index_dir** -- directories where to put bowtie index.
|
115 |
|
|
116 |
|
* **bowtie_build_bin** -- bowtie2 build binary.
|
117 |
|
|
118 |
|
libcoverage.align_reads(sample, align_dir, log_dir, index_dir, illumina_outputfile_prefix, bowtie2_bin, samtools_bin, bedtools_bin)
|
119 |
|
|
120 |
|
Aligns reads to reference genomes. It produces .sam files, that are
|
121 |
|
converted to .bam, that are converted to .bed.
|
122 |
|
|
123 |
|
Parameters:
|
124 |
|
* **sample** -- a dict that describe a sample.
|
125 |
|
|
126 |
|
* **align_dir** -- directory where aligned reads will be
|
127 |
|
stored.
|
128 |
|
|
129 |
|
* **log_dir** -- directory where logs will be stored.
|
130 |
|
|
131 |
|
* **illumina_outputfile_prefix** -- prefix of Illumina
|
132 |
|
sequencer fastq.gz output files.
|
133 |
|
|
134 |
|
* **bowtie2_bin** -- bowtie2 binary.
|
135 |
|
|
136 |
|
* **samtools_bin** -- samtools binary.
|
137 |
|
|
138 |
|
* **bedtools_bin** -- bedtools binary.
|
139 |
|
|
140 |
|
* **index_dir** -- bowtie index directory.
|
141 |
|
|
142 |
|
libcoverage.split_fr_4_TF(sample, align_dir, fasta_indexes, area_black_list, read_length, mapq_thres)
|
143 |
|
|
144 |
|
Create TempleFilter input files form bed files. This function
|
145 |
|
appends in two times. First, it collects reads from bed files and
|
146 |
|
feeds a datastructure
|
147 |
|
|
148 |
|
Parameters:
|
149 |
|
* **sample** -- a dict that describe a sample.
|
150 |
|
|
151 |
|
* **align_dir** -- directory where aligned reads will be
|
152 |
|
stored.
|
153 |
|
|
154 |
|
* **fasta_index** -- the chr reference from the illumina
|
155 |
|
output file.
|
156 |
|
|
157 |
|
* **area_black_list** -- the description of genome that will
|
158 |
|
be omit.
|
159 |
|
|
160 |
|
* **read_length** -- Length of Illumina reads.
|
161 |
|
|
162 |
|
* **mapq_thres** -- mapping quality criterion threshold, see
|
163 |
|
MAPQ in BED/BAM file format.
|
164 |
|
|
165 |
|
libcoverage.template_filter(sample, align_dir, log_dir, tf_bin, tf_templates_file, corr, minw, maxw, ol)
|
166 |
|
|
167 |
|
Run TemplateFilter on a specifi sample. It produces .tab file.
|
168 |
|
|
169 |
|
Parameters:
|
170 |
|
* **sample** -- a dict that describe a sample.
|
171 |
|
|
172 |
|
* **align_dir** -- directory where aligned reads will be
|
173 |
|
stored.
|
174 |
|
|
175 |
|
* **log_dir** -- directory where logs will be stored.
|
176 |
|
|
177 |
|
* **tf_bin** -- path to the TemplateFilter binary.
|
178 |
|
|
179 |
|
* **tf_templates_file** -- path to the TemplateFilter
|
180 |
|
templates file.
|
181 |
|
|
182 |
|
* **corr** -- correlation threshold transmits to
|
183 |
|
TemplateFilter.
|
184 |
|
|
185 |
|
* **minw** -- minimum width of a nuc, transmits to
|
186 |
|
TemplateFilter.
|
187 |
|
|
188 |
|
* **maxw** -- maximum width of a nuc, transmits to
|
189 |
|
TemplateFilter.
|
190 |
|
|
191 |
|
* **ol** -- maximum overlaps for 2 nuc, transmits to
|
192 |
|
TemplateFilter.
|
193 |
|
|
194 |
9 |
|
195 |
10 |
R Reference
|
196 |
11 |
===========
|
... | ... | |
450 |
265 |
Examples
|
451 |
266 |
~~~~~~~~
|
452 |
267 |
|
453 |
|
# Define new translate_roi function...
|
454 |
|
translate_roi = function(roi, strain2, big_roi=NULL, config=NULL) {
|
|
268 |
# Define new translate_cur function...
|
|
269 |
translate_cur = function(roi, strain2, big_cur=NULL, config=NULL) {
|
455 |
270 |
return(roi)
|
456 |
271 |
}
|
457 |
272 |
# Binding it by uncomment follwing lines.
|
458 |
|
unlockBinding("translate_roi", as.environment("package:nucleominer"))
|
459 |
|
unlockBinding("translate_roi", getNamespace("nucleominer"))
|
460 |
|
assign("translate_roi", translate_roi, "package:nucleominer")
|
461 |
|
assign("translate_roi", translate_roi, getNamespace("nucleominer"))
|
462 |
|
lockBinding("translate_roi", getNamespace("nucleominer"))
|
463 |
|
lockBinding("translate_roi", as.environment("package:nucleominer"))
|
|
273 |
unlockBinding("translate_cur", as.environment("package:nucleominer"))
|
|
274 |
unlockBinding("translate_cur", getNamespace("nucleominer"))
|
|
275 |
assign("translate_cur", translate_cur, "package:nucleominer")
|
|
276 |
assign("translate_cur", translate_cur, getNamespace("nucleominer"))
|
|
277 |
lockBinding("translate_cur", getNamespace("nucleominer"))
|
|
278 |
lockBinding("translate_cur", as.environment("package:nucleominer"))
|
464 |
279 |
|
465 |
280 |
# Dealing with a region of interest
|
466 |
281 |
roi =list(name="example", begin=1000, end=1300, chr="1", genome=rep("A",301), strain_ref1 = "STRAINREF1")
|
467 |
|
roi2 = translate_roi(roi, roi$strain_ref1)
|
|
282 |
roi2 = translate_cur(roi, roi$strain_ref1)
|
468 |
283 |
replicates = list()
|
469 |
284 |
for (j in 1:2) {
|
470 |
285 |
samples = list()
|
... | ... | |
615 |
430 |
# plot_common_nucs = FALSE,
|
616 |
431 |
# height = 50)
|
617 |
432 |
|
|
433 |
R: Extract a sub part of the corresponding c2c file
|
|
434 |
|
|
435 |
|
|
436 |
Extract a sub part of the corresponding c2c file
|
|
437 |
------------------------------------------------
|
|
438 |
|
|
439 |
|
|
440 |
Description
|
|
441 |
~~~~~~~~~~~
|
|
442 |
|
|
443 |
This fonction allow to acces to a specific part of the c2c file.
|
|
444 |
|
|
445 |
|
|
446 |
Usage
|
|
447 |
~~~~~
|
|
448 |
|
|
449 |
c2c_extraction(strain1, strain2, chr = NULL, lower_bound = NULL,
|
|
450 |
upper_bound = NULL, config = NULL)
|
|
451 |
|
|
452 |
|
|
453 |
Arguments
|
|
454 |
~~~~~~~~~
|
|
455 |
|
|
456 |
"strain1"
|
|
457 |
|
|
458 |
the key strain
|
|
459 |
|
|
460 |
"strain2"
|
|
461 |
|
|
462 |
the target strain
|
|
463 |
|
|
464 |
"chr"
|
|
465 |
|
|
466 |
if defined, the c2c will filtered according to the chromosome value
|
|
467 |
|
|
468 |
"lower_bound"
|
|
469 |
|
|
470 |
if defined, the c2c will filtered for part of the genome upper than
|
|
471 |
lower_bound
|
|
472 |
|
|
473 |
"upper_bound"
|
|
474 |
|
|
475 |
if defined, the c2c will filtered for part of the genome lower than
|
|
476 |
upper_bound
|
|
477 |
|
|
478 |
"config"
|
|
479 |
|
|
480 |
GLOBAL config variable
|
|
481 |
|
|
482 |
|
|
483 |
Author(s)
|
|
484 |
~~~~~~~~~
|
|
485 |
|
|
486 |
Florent Chuffart
|
|
487 |
|
618 |
488 |
R: reformat an "apply manipulated" list of regions
|
619 |
489 |
|
620 |
490 |
|
... | ... | |
662 |
532 |
Usage
|
663 |
533 |
~~~~~
|
664 |
534 |
|
665 |
|
compute_inter_all_strain_curs(diff_allowed = 10, min_cur_width = 200,
|
666 |
|
config = NULL, plot = FALSE)
|
|
535 |
compute_inter_all_strain_curs(diff_allowed = 30, min_cur_width = 4000,
|
|
536 |
config = NULL)
|
667 |
537 |
|
668 |
538 |
|
669 |
539 |
Arguments
|
... | ... | |
681 |
551 |
|
682 |
552 |
GLOBAL config variable
|
683 |
553 |
|
684 |
|
"plot"
|
685 |
|
|
686 |
|
Plot CURs or not
|
687 |
|
|
688 |
554 |
|
689 |
555 |
Author(s)
|
690 |
556 |
~~~~~~~~~
|
... | ... | |
701 |
567 |
Description
|
702 |
568 |
~~~~~~~~~~~
|
703 |
569 |
|
704 |
|
The fucntion is no more necessary since we remove "big_roi" bug in
|
705 |
|
translate_roi function.
|
|
570 |
The fucntion is no more necessary since we remove "big_cur" bug in
|
|
571 |
translate_cur function.
|
706 |
572 |
|
707 |
573 |
|
708 |
574 |
Usage
|
... | ... | |
795 |
661 |
df = dfadd(df, list(key1 = "value1'", key2 = "value2'"))
|
796 |
662 |
print(df)
|
797 |
663 |
|
798 |
|
R: Extract wp nucs from nuc map.
|
799 |
|
|
800 |
|
|
801 |
|
Extract wp nucs from nuc map.
|
802 |
|
-----------------------------
|
803 |
|
|
804 |
|
|
805 |
|
Description
|
806 |
|
~~~~~~~~~~~
|
807 |
|
|
808 |
|
Function based on common wp nuc index and roi_index.
|
809 |
|
|
810 |
|
|
811 |
|
Usage
|
812 |
|
~~~~~
|
813 |
|
|
814 |
|
extract_wp(strain_maps, roi_index, strain, tmp_common_nucs)
|
815 |
|
|
816 |
|
|
817 |
|
Arguments
|
818 |
|
~~~~~~~~~
|
819 |
|
|
820 |
|
"strain_maps"
|
821 |
|
|
822 |
|
Nuc maps.
|
823 |
|
|
824 |
|
"roi_index"
|
825 |
|
|
826 |
|
The region of interest index.
|
827 |
|
|
828 |
|
"strain"
|
829 |
|
|
830 |
|
The strain to consider.
|
831 |
|
|
832 |
|
"tmp_common_nucs"
|
833 |
|
|
834 |
|
the list of wp nucs.
|
835 |
|
|
836 |
|
|
837 |
|
Author(s)
|
838 |
|
~~~~~~~~~
|
839 |
|
|
840 |
|
Florent Chuffart
|
841 |
|
|
842 |
664 |
R: Prefetch data
|
843 |
665 |
|
844 |
666 |
|
... | ... | |
1050 |
872 |
Usage
|
1051 |
873 |
~~~~~
|
1052 |
874 |
|
1053 |
|
flat_aggregated_intra_strain_nucs(partial_strain_maps, roi_index)
|
|
875 |
flat_aggregated_intra_strain_nucs(partial_strain_maps, cur_index)
|
1054 |
876 |
|
1055 |
877 |
|
1056 |
878 |
Arguments
|
... | ... | |
1060 |
882 |
|
1061 |
883 |
the output of aggregate_intra_strain_nucs function
|
1062 |
884 |
|
1063 |
|
"roi_index"
|
|
885 |
"cur_index"
|
1064 |
886 |
|
1065 |
887 |
the index of the roi involved
|
1066 |
888 |
|
... | ... | |
1241 |
1063 |
|
1242 |
1064 |
Florent Chuffart
|
1243 |
1065 |
|
1244 |
|
R: Compute the fuzzy nucs.
|
|
1066 |
R: Compute the fuzzy list for a given strain.
|
1245 |
1067 |
|
1246 |
1068 |
|
1247 |
|
Compute the fuzzy nucs.
|
1248 |
|
-----------------------
|
|
1069 |
Compute the fuzzy list for a given strain.
|
|
1070 |
------------------------------------------
|
1249 |
1071 |
|
1250 |
1072 |
|
1251 |
1073 |
Description
|
1252 |
1074 |
~~~~~~~~~~~
|
1253 |
1075 |
|
1254 |
|
This function aggregate non common wp nucs for each strain and
|
1255 |
|
substract common wp nucs. It does not take care about the size of the
|
1256 |
|
resulting fuzzy regions. It will be take into account in the count
|
1257 |
|
read part og the pipeline.
|
|
1076 |
This function grabs the nucleosomes detxted by template_filter that
|
|
1077 |
have been rejected bt aggregate_intra_strain_nucs as well positions.
|
1258 |
1078 |
|
1259 |
1079 |
|
1260 |
1080 |
Usage
|
1261 |
1081 |
~~~~~
|
1262 |
1082 |
|
1263 |
|
get_fuzzy(combi, roi, roi_index, strain_maps, common_nuc_results,
|
1264 |
|
config = NULL)
|
|
1083 |
get_intra_strain_fuzzy(wp_map, roi, strain, config = NULL)
|
1265 |
1084 |
|
1266 |
1085 |
|
1267 |
1086 |
Arguments
|
1268 |
1087 |
~~~~~~~~~
|
1269 |
1088 |
|
1270 |
|
"combi"
|
|
1089 |
"wp_map"
|
1271 |
1090 |
|
1272 |
|
The strain combination to consider.
|
|
1091 |
Well positionned nucleosomes map.
|
1273 |
1092 |
|
1274 |
1093 |
"roi"
|
1275 |
1094 |
|
1276 |
1095 |
The region of interest.
|
1277 |
1096 |
|
1278 |
|
"roi_index"
|
1279 |
|
|
1280 |
|
The region of interest index.
|
1281 |
|
|
1282 |
|
"strain_maps"
|
1283 |
|
|
1284 |
|
Nuc maps.
|
|
1097 |
"strain"
|
1285 |
1098 |
|
1286 |
|
"common_nuc_results"
|
1287 |
|
|
1288 |
|
Common wp nuc maps
|
|
1099 |
The strain we want to extracvt the fuzzy map.
|
1289 |
1100 |
|
1290 |
1101 |
"config"
|
1291 |
1102 |
|
1292 |
|
GLOBAL config variable
|
|
1103 |
GLOBAL config variable.
|
1293 |
1104 |
|
1294 |
1105 |
|
1295 |
1106 |
Author(s)
|
... | ... | |
1351 |
1162 |
|
1352 |
1163 |
marker = "H3K4me1"
|
1353 |
1164 |
combi = c("BY", "YJM")
|
1354 |
|
form = "wpfuzzy" # "wp" | "fuzzy" | "wpfuzzy"
|
|
1165 |
form = "wpunr" # "wp" | "unr" | "wpunr"
|
1355 |
1166 |
# foo = get_sneps(marker, combi, form)
|
1356 |
1167 |
# foo = get_sneps("H4K12ac", c("BY", "RM"), "wp")
|
1357 |
1168 |
|
|
1169 |
R: Compute the unaligned nucleosomal regions (UNRs).
|
|
1170 |
|
|
1171 |
|
|
1172 |
Compute the unaligned nucleosomal regions (UNRs).
|
|
1173 |
-------------------------------------------------
|
|
1174 |
|
|
1175 |
|
|
1176 |
Description
|
|
1177 |
~~~~~~~~~~~
|
|
1178 |
|
|
1179 |
This function aggregate non common wp nucs for each strain and
|
|
1180 |
substract common wp nucs. It does not take care about the size of the
|
|
1181 |
resulting UNR. It will be take into account in the count read part og
|
|
1182 |
the pipeline.
|
|
1183 |
|
|
1184 |
|
|
1185 |
Usage
|
|
1186 |
~~~~~
|
|
1187 |
|
|
1188 |
get_unrs(combi, roi, cur_index, wp_maps, fuzzy_maps, common_nuc_results,
|
|
1189 |
config = NULL)
|
|
1190 |
|
|
1191 |
|
|
1192 |
Arguments
|
|
1193 |
~~~~~~~~~
|
|
1194 |
|
|
1195 |
"combi"
|
|
1196 |
|
|
1197 |
The strain combination to consider.
|
|
1198 |
|
|
1199 |
"roi"
|
|
1200 |
|
|
1201 |
The region of interest.
|
|
1202 |
|
|
1203 |
"cur_index"
|
|
1204 |
|
|
1205 |
The region of interest index.
|
|
1206 |
|
|
1207 |
"wp_maps"
|
|
1208 |
|
|
1209 |
Well positionned nucleosomes maps.
|
|
1210 |
|
|
1211 |
"fuzzy_maps"
|
|
1212 |
|
|
1213 |
Fuzzy nucleosomes maps.
|
|
1214 |
|
|
1215 |
"common_nuc_results"
|
|
1216 |
|
|
1217 |
Common wp nuc maps
|
|
1218 |
|
|
1219 |
"config"
|
|
1220 |
|
|
1221 |
GLOBAL config variable
|
|
1222 |
|
|
1223 |
|
|
1224 |
Author(s)
|
|
1225 |
~~~~~~~~~
|
|
1226 |
|
|
1227 |
Florent Chuffart
|
|
1228 |
|
|
1229 |
R: Returns the intersection of 2 list on regions.
|
|
1230 |
|
|
1231 |
|
|
1232 |
Returns the intersection of 2 list on regions.
|
|
1233 |
----------------------------------------------
|
|
1234 |
|
|
1235 |
|
|
1236 |
Description
|
|
1237 |
~~~~~~~~~~~
|
|
1238 |
|
|
1239 |
This function...
|
|
1240 |
|
|
1241 |
|
|
1242 |
Usage
|
|
1243 |
~~~~~
|
|
1244 |
|
|
1245 |
intersect_region(region1, region2)
|
|
1246 |
|
|
1247 |
|
|
1248 |
Arguments
|
|
1249 |
~~~~~~~~~
|
|
1250 |
|
|
1251 |
"region1"
|
|
1252 |
|
|
1253 |
Original regions.
|
|
1254 |
|
|
1255 |
"region2"
|
|
1256 |
|
|
1257 |
Regions to intersect.
|
|
1258 |
|
|
1259 |
|
|
1260 |
Author(s)
|
|
1261 |
~~~~~~~~~
|
|
1262 |
|
|
1263 |
Florent Chuffart
|
|
1264 |
|
1358 |
1265 |
R: Likelihood ratio
|
1359 |
1266 |
|
1360 |
1267 |
|
... | ... | |
1439 |
1346 |
+-----------------+-----------------------------------------------------+
|
1440 |
1347 |
| Author: | Florent Chuffart |
|
1441 |
1348 |
+-----------------+-----------------------------------------------------+
|
1442 |
|
| Version: | 2.3.29 |
|
|
1349 |
| Version: | 2.3.40 |
|
1443 |
1350 |
+-----------------+-----------------------------------------------------+
|
1444 |
1351 |
| License: | CeCILL |
|
1445 |
1352 |
+-----------------+-----------------------------------------------------+
|
... | ... | |
1454 |
1361 |
|
1455 |
1362 |
Florent Chuffart
|
1456 |
1363 |
|
1457 |
|
R: Performaing ANOVAs
|
1458 |
|
|
1459 |
|
|
1460 |
|
Performaing ANOVAs
|
1461 |
|
------------------
|
1462 |
|
|
1463 |
|
|
1464 |
|
Description
|
1465 |
|
~~~~~~~~~~~
|
1466 |
|
|
1467 |
|
Counts reads and Performs ANOVAS for each common nucleosomes involved.
|
1468 |
|
|
1469 |
|
|
1470 |
|
Usage
|
1471 |
|
~~~~~
|
1472 |
|
|
1473 |
|
perform_anovas(replicates, aligned_inter_strain_nucs, inputs_name = "Mnase_Seq",
|
1474 |
|
plot_anova_boxes = FALSE)
|
1475 |
|
|
1476 |
|
|
1477 |
|
Arguments
|
1478 |
|
~~~~~~~~~
|
1479 |
|
|
1480 |
|
"replicates"
|
1481 |
|
|
1482 |
|
Set of replicates, each replicate is a list of samples (ideally 3).
|
1483 |
|
Each sample is a list like *sample = list(id=..., marker=...,
|
1484 |
|
strain=..., roi=..., inputs=..., outputs=...)* with *roi =
|
1485 |
|
list(name=..., begin=..., end=..., chr=..., genome=...)*. In the
|
1486 |
|
*perform_anovas* contexte, we need 4 replicates (4 * (3 samples)): 2
|
1487 |
|
strains * (1 marker + 1 input (Mnase_Seq)).
|
1488 |
|
|
1489 |
|
"aligned_inter_strain_nucs"
|
1490 |
|
|
1491 |
|
List of common nucleosomes.
|
1492 |
|
|
1493 |
|
"inputs_name"
|
1494 |
|
|
1495 |
|
Name of the input.
|
1496 |
|
|
1497 |
|
"plot_anova_boxes"
|
1498 |
|
|
1499 |
|
Plot (or not) boxplot for each nuc.
|
1500 |
|
|
1501 |
|
|
1502 |
|
Value
|
1503 |
|
~~~~~
|
1504 |
|
|
1505 |
|
Returns ANOVA results and comunted reads.
|
1506 |
|
|
1507 |
|
|
1508 |
|
Author(s)
|
1509 |
|
~~~~~~~~~
|
1510 |
|
|
1511 |
|
Florent Chuffart
|
1512 |
|
|
1513 |
1364 |
R: Plot the distribution of reads.
|
1514 |
1365 |
|
1515 |
1366 |
|
... | ... | |
1559 |
1410 |
|
1560 |
1411 |
Florent Chuffart
|
1561 |
1412 |
|
1562 |
|
R: Remove wp nucs from common nucs list.
|
1563 |
|
|
1564 |
|
|
1565 |
|
Remove wp nucs from common nucs list.
|
1566 |
|
-------------------------------------
|
1567 |
|
|
1568 |
|
|
1569 |
|
Description
|
1570 |
|
~~~~~~~~~~~
|
1571 |
|
|
1572 |
|
It is based on common wp nucs index on nucs and region.
|
1573 |
|
|
1574 |
|
|
1575 |
|
Usage
|
1576 |
|
~~~~~
|
1577 |
|
|
1578 |
|
remove_aligned_wp(strain_maps, roi_index, tmp_common_nucs, strain)
|
1579 |
|
|
1580 |
|
|
1581 |
|
Arguments
|
1582 |
|
~~~~~~~~~
|
1583 |
|
|
1584 |
|
"strain_maps"
|
1585 |
|
|
1586 |
|
Nuc maps.
|
1587 |
|
|
1588 |
|
"roi_index"
|
1589 |
|
|
1590 |
|
The region of interest index.
|
1591 |
|
|
1592 |
|
"tmp_common_nucs"
|
1593 |
|
|
1594 |
|
the list of wp nucs.
|
1595 |
|
|
1596 |
|
"strain"
|
1597 |
|
|
1598 |
|
The strain to consider.
|
1599 |
|
|
1600 |
|
|
1601 |
|
Author(s)
|
1602 |
|
~~~~~~~~~
|
1603 |
|
|
1604 |
|
Florent Chuffart
|
1605 |
|
|
1606 |
1413 |
R: sign from strand
|
1607 |
1414 |
|
1608 |
1415 |
|
... | ... | |
1722 |
1529 |
l = list(key1 = "value1", key2 = "value2")
|
1723 |
1530 |
print(switch_pairlist(l))
|
1724 |
1531 |
|
1725 |
|
R: Translate a list of regions from a strain ref to another.
|
|
1532 |
R: Translate coords of a genome region.
|
1726 |
1533 |
|
1727 |
1534 |
|
1728 |
|
Translate a list of regions from a strain ref to another.
|
1729 |
|
---------------------------------------------------------
|
|
1535 |
Translate coords of a genome region.
|
|
1536 |
------------------------------------
|
1730 |
1537 |
|
1731 |
1538 |
|
1732 |
1539 |
Description
|
1733 |
1540 |
~~~~~~~~~~~
|
1734 |
1541 |
|
1735 |
|
This function is an eloborated call to translate_roi.
|
|
1542 |
This function is used in the examples, usualy you have to define your
|
|
1543 |
own translation function and overwrite this one using *unlockBinding*
|
|
1544 |
features. Please, refer to the example.
|
1736 |
1545 |
|
1737 |
1546 |
|
1738 |
1547 |
Usage
|
1739 |
1548 |
~~~~~
|
1740 |
1549 |
|
1741 |
|
translate_regions(regions, combi, roi_index, config = NULL, roi)
|
|
1550 |
translate_cur(roi, strain2, config = NULL, big_cur = NULL)
|
1742 |
1551 |
|
1743 |
1552 |
|
1744 |
1553 |
Arguments
|
1745 |
1554 |
~~~~~~~~~
|
1746 |
1555 |
|
1747 |
|
"regions"
|
1748 |
|
|
1749 |
|
Regions to be translated.
|
1750 |
|
|
1751 |
|
"combi"
|
|
1556 |
"roi"
|
1752 |
1557 |
|
1753 |
|
Combination of strains.
|
|
1558 |
Original genome region of interest.
|
1754 |
1559 |
|
1755 |
|
"roi_index"
|
|
1560 |
"strain2"
|
1756 |
1561 |
|
1757 |
|
The region of interest index.
|
|
1562 |
The strain in wich you want the genome region of interest.
|
1758 |
1563 |
|
1759 |
1564 |
"config"
|
1760 |
1565 |
|
1761 |
1566 |
GLOBAL config variable
|
1762 |
1567 |
|
1763 |
|
"roi"
|
|
1568 |
"big_cur"
|
1764 |
1569 |
|
1765 |
|
The region of interest.
|
|
1570 |
A largest region than roi use to filter c2c if it is needed.
|
1766 |
1571 |
|
1767 |
1572 |
|
1768 |
1573 |
Author(s)
|
... | ... | |
1770 |
1575 |
|
1771 |
1576 |
Florent Chuffart
|
1772 |
1577 |
|
1773 |
|
R: Translate coords of a genome region.
|
1774 |
1578 |
|
|
1579 |
Examples
|
|
1580 |
~~~~~~~~
|
1775 |
1581 |
|
1776 |
|
Translate coords of a genome region.
|
1777 |
|
------------------------------------
|
|
1582 |
# Define new translate_cur function...
|
|
1583 |
translate_cur = function(roi, strain2, config) {
|
|
1584 |
strain1 = roi$strain_ref
|
|
1585 |
if (strain1 == strain2) {
|
|
1586 |
return(roi)
|
|
1587 |
} else {
|
|
1588 |
stop("Here is my new translate_cur function...")
|
|
1589 |
}
|
|
1590 |
}
|
|
1591 |
# Binding it by uncomment follwing lines.
|
|
1592 |
# unlockBinding("translate_cur", as.environment("package:nm"))
|
|
1593 |
# unlockBinding("translate_cur", getNamespace("nm"))
|
|
1594 |
# assign("translate_cur", translate_cur, "package:nm")
|
|
1595 |
# assign("translate_cur", translate_cur, getNamespace("nm"))
|
|
1596 |
# lockBinding("translate_cur", getNamespace("nm"))
|
|
1597 |
# lockBinding("translate_cur", as.environment("package:nm"))
|
|
1598 |
|
|
1599 |
R: Translate a list of regions from a strain ref to another.
|
|
1600 |
|
|
1601 |
|
|
1602 |
Translate a list of regions from a strain ref to another.
|
|
1603 |
---------------------------------------------------------
|
1778 |
1604 |
|
1779 |
1605 |
|
1780 |
1606 |
Description
|
1781 |
1607 |
~~~~~~~~~~~
|
1782 |
1608 |
|
1783 |
|
This function is used in the examples, usualy you have to define your
|
1784 |
|
own translation function and overwrite this one using *unlockBinding*
|
1785 |
|
features. Please, refer to the example.
|
|
1609 |
This function is an eloborated call to translate_cur.
|
1786 |
1610 |
|
1787 |
1611 |
|
1788 |
1612 |
Usage
|
1789 |
1613 |
~~~~~
|
1790 |
1614 |
|
1791 |
|
translate_roi(roi, strain2, config = NULL, big_roi = NULL)
|
|
1615 |
translate_regions(regions, combi, cur_index, config = NULL, roi)
|
1792 |
1616 |
|
1793 |
1617 |
|
1794 |
1618 |
Arguments
|
1795 |
1619 |
~~~~~~~~~
|
1796 |
1620 |
|
1797 |
|
"roi"
|
|
1621 |
"regions"
|
1798 |
1622 |
|
1799 |
|
Original genome region of interest.
|
|
1623 |
Regions to be translated.
|
1800 |
1624 |
|
1801 |
|
"strain2"
|
|
1625 |
"combi"
|
1802 |
1626 |
|
1803 |
|
The strain in wich you want the genome region of interest.
|
|
1627 |
Combination of strains.
|
|
1628 |
|
|
1629 |
"cur_index"
|
|
1630 |
|
|
1631 |
The region of interest index.
|
1804 |
1632 |
|
1805 |
1633 |
"config"
|
1806 |
1634 |
|
1807 |
1635 |
GLOBAL config variable
|
1808 |
1636 |
|
1809 |
|
"big_roi"
|
|
1637 |
"roi"
|
1810 |
1638 |
|
1811 |
|
A largest region than roi use to filter c2c if it is needed.
|
|
1639 |
The region of interest.
|
1812 |
1640 |
|
1813 |
1641 |
|
1814 |
1642 |
Author(s)
|
... | ... | |
1816 |
1644 |
|
1817 |
1645 |
Florent Chuffart
|
1818 |
1646 |
|
1819 |
|
|
1820 |
|
Examples
|
1821 |
|
~~~~~~~~
|
1822 |
|
|
1823 |
|
# Define new translate_roi function...
|
1824 |
|
translate_roi = function(roi, strain2, config) {
|
1825 |
|
strain1 = roi$strain_ref
|
1826 |
|
if (strain1 == strain2) {
|
1827 |
|
return(roi)
|
1828 |
|
} else {
|
1829 |
|
stop("Here is my new translate_roi function...")
|
1830 |
|
}
|
1831 |
|
}
|
1832 |
|
# Binding it by uncomment follwing lines.
|
1833 |
|
# unlockBinding("translate_roi", as.environment("package:nm"))
|
1834 |
|
# unlockBinding("translate_roi", getNamespace("nm"))
|
1835 |
|
# assign("translate_roi", translate_roi, "package:nm")
|
1836 |
|
# assign("translate_roi", translate_roi, getNamespace("nm"))
|
1837 |
|
# lockBinding("translate_roi", getNamespace("nm"))
|
1838 |
|
# lockBinding("translate_roi", as.environment("package:nm"))
|
1839 |
|
|
1840 |
1647 |
R: Aggregate regions that intersect themnselves.
|
1841 |
1648 |
|
1842 |
1649 |
|
... | ... | |
1893 |
1700 |
plot_arrow_raw_reads = TRUE, plot_arrow_nuc_reads = TRUE,
|
1894 |
1701 |
plot_squared_reads = TRUE, plot_coverage = FALSE, plot_gaussian_reads = TRUE,
|
1895 |
1702 |
plot_gaussian_unified_reads = TRUE, plot_ellipse_nucs = TRUE,
|
1896 |
|
change_col = TRUE, plot_wp_nucs = TRUE, plot_wp_nuc_model = TRUE,
|
1897 |
|
plot_common_nucs = TRUE, plot_anovas = FALSE, plot_anova_boxes = FALSE,
|
1898 |
|
plot_wp_nucs_4_nonmnase = FALSE, plot_chain = FALSE, aggregated_intra_strain_nucs = NULL,
|
1899 |
|
aligned_inter_strain_nucs = NULL, height = 10, config = NULL)
|
|
1703 |
change_col = TRUE, plot_wp_nucs = TRUE, plot_fuzzy_nucs = TRUE,
|
|
1704 |
plot_wp_nuc_model = TRUE, plot_common_nucs = FALSE, plot_common_unrs = FALSE,
|
|
1705 |
plot_wp_nucs_4_nonmnase = FALSE, plot_chain = FALSE, plot_sample_id = FALSE,
|
|
1706 |
aggregated_intra_strain_nucs = NULL, aligned_inter_strain_nucs = NULL,
|
|
1707 |
height = 10, main = NULL, xlab = NULL, ylab = "#reads (per million reads)",
|
|
1708 |
config = NULL)
|
1900 |
1709 |
|
1901 |
1710 |
|
1902 |
1711 |
Arguments
|
... | ... | |
1950 |
1759 |
|
1951 |
1760 |
Plot (or not) cluster of nucs
|
1952 |
1761 |
|
|
1762 |
"plot_fuzzy_nucs"
|
|
1763 |
|
|
1764 |
Plot (or not) cluster of fuzzy
|
|
1765 |
|
1953 |
1766 |
"plot_wp_nuc_model"
|
1954 |
1767 |
|
1955 |
1768 |
Plot (or not) gaussian model for a cluster of nucs
|
... | ... | |
1958 |
1771 |
|
1959 |
1772 |
Plot (or not) aligned reads.
|
1960 |
1773 |
|
1961 |
|
"plot_anovas"
|
1962 |
|
|
1963 |
|
Plot (or not) scatter for each nuc.
|
|
1774 |
"plot_common_unrs"
|
1964 |
1775 |
|
1965 |
|
"plot_anova_boxes"
|
1966 |
|
|
1967 |
|
Plot (or not) boxplot for each nuc.
|
|
1776 |
Plot (or not) unaligned nucleosomal refgions (UNRs).
|
1968 |
1777 |
|
1969 |
1778 |
"plot_wp_nucs_4_nonmnase"
|
1970 |
1779 |
|
... | ... | |
1974 |
1783 |
|
1975 |
1784 |
Plot (or not) clusterised nuceosomes between mnase samples.
|
1976 |
1785 |
|
|
1786 |
"plot_sample_id"
|
|
1787 |
|
|
1788 |
Plot (or not) the sample id for each sample.
|
|
1789 |
|
1977 |
1790 |
"aggregated_intra_strain_nucs"
|
1978 |
1791 |
|
1979 |
1792 |
list of aggregated intra strain nucs. If NULL, it will be computed.
|
... | ... | |
1987 |
1800 |
Number of reads in per million read for each sample, graphical
|
1988 |
1801 |
parametre for the y axis.
|
1989 |
1802 |
|
|
1803 |
"main"
|
|
1804 |
|
|
1805 |
main title of the produced plot
|
|
1806 |
|
|
1807 |
"xlab"
|
|
1808 |
|
|
1809 |
xlab of the produced plot
|
|
1810 |
|
|
1811 |
"ylab"
|
|
1812 |
|
|
1813 |
ylab of the produced plot
|
|
1814 |
|
1990 |
1815 |
"config"
|
1991 |
1816 |
|
1992 |
1817 |
GLOBAL config variable
|