... | ... |
@@ -19,7 +19,8 @@ importMethodsFrom(GenomeInfoDb, seqnames, seqlengths, seqinfo, as.data.frame, |
19 | 19 |
importMethodsFrom(GenomicRanges, reduce, "strand<-", strand, start, end, |
20 | 20 |
findOverlaps, coverage, grglist) |
21 | 21 |
importMethodsFrom(XVector, subseq) |
22 |
-importMethodsFrom(RSQLite, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
|
22 |
+importMethodsFrom(DBI, dbGetQuery) |
|
23 |
+importMethodsFrom(RSQLite, dbConnect, dbDisconnect, dbWriteTable) |
|
23 | 24 |
importMethodsFrom(methods, initialize, show) |
24 | 25 |
importMethodsFrom(Biostrings, compareStrings) |
25 | 26 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
Update from Bioconductor and remove `fill` in `geom_text`
... | ... |
@@ -5,7 +5,7 @@ import(BiocGenerics) |
5 | 5 |
### Import S4 classes defined in other packages |
6 | 6 |
### |
7 | 7 |
importClassesFrom(methods, ANY, character, integer, missing) |
8 |
-importClassesFrom(S4Vectors, List, characterORNULL, DataFrame, Pairs) |
|
8 |
+importClassesFrom(S4Vectors, List, character_OR_NULL, DataFrame, Pairs) |
|
9 | 9 |
importClassesFrom(GenomicRanges, GRanges) |
10 | 10 |
importClassesFrom(Biostrings, DNAStringSet) |
11 | 11 |
|
... | ... |
@@ -89,7 +89,6 @@ exportMethods( |
89 | 89 |
syntenicDotplot, |
90 | 90 |
|
91 | 91 |
## Axt-methods.R |
92 |
- # mismatchSummary |
|
93 | 92 |
summary |
94 | 93 |
) |
95 | 94 |
|
... | ... |
@@ -104,7 +103,6 @@ export( |
104 | 103 |
binRangesFromCoordRange, |
105 | 104 |
binRestrictionString, |
106 | 105 |
readCNERangesFromSQLite, |
107 |
- #queryAnnotationSQLite, |
|
108 | 106 |
fetchChromSizes, |
109 | 107 |
|
110 | 108 |
## Axt-class.R |
... | ... |
@@ -118,6 +116,7 @@ export( |
118 | 116 |
|
119 | 117 |
## CNE-class.R |
120 | 118 |
CNE, |
119 |
+ |
|
121 | 120 |
## GRangePairs-class.R |
122 | 121 |
GRangePairs, |
123 | 122 |
|
... | ... |
@@ -131,14 +130,7 @@ export( |
131 | 130 |
read.rmskFasta, |
132 | 131 |
|
133 | 132 |
## ceScan.R |
134 |
- |
|
135 | 133 |
blatCNE, |
136 |
- #ceScanOneStep, |
|
137 |
- |
|
138 |
- ## makeGeneDbFromUCSC.r |
|
139 |
- #supportedUCSCtables, |
|
140 |
- #queryrefGene, queryknownGene, queryensGene, |
|
141 |
- #makeGeneDbFromUCSC, |
|
142 | 134 |
|
143 | 135 |
## WholeGenomeAlignment.R |
144 | 136 |
lastz, |
Add the function of mapping KEGG IDs and Gene IDs
... | ... |
@@ -62,6 +62,7 @@ importFrom(GO.db, GOCCANCESTOR, GOCCOFFSPRING, GOCCCHILDREN, |
62 | 62 |
GOMFANCESTOR, GOMFOFFSPRING, GOMFCHILDREN) |
63 | 63 |
importFrom("grDevices", "jpeg", "pdf", "png", "postscript") |
64 | 64 |
importFrom(R.utils, gunzip, gzip) |
65 |
+importFrom(KEGGREST, keggGet) |
|
65 | 66 |
|
66 | 67 |
### ----------------------------------------------------------------- |
67 | 68 |
### Export S4 classes defined in CNEr |
... | ... |
@@ -35,7 +35,8 @@ importMethodsFrom(GenomicAlignments, last) |
35 | 35 |
importFrom(GenomeInfoDb, Seqinfo) |
36 | 36 |
importFrom(GenomicRanges, GRanges) |
37 | 37 |
importFrom(GenomicAlignments, explodeCigarOps, CIGAR_OPS, explodeCigarOpLengths) |
38 |
-importFrom(Biostrings, DNAStringSet, DNA_BASES, fasta.seqlengths) |
|
38 |
+importFrom(Biostrings, DNAStringSet, DNA_BASES, fasta.seqlengths, |
|
39 |
+ readBStringSet) |
|
39 | 40 |
importFrom(RSQLite, SQLite) |
40 | 41 |
importFrom(methods, is, new, "as", "extends", "validObject") |
41 | 42 |
importFrom(rtracklayer, TwoBitFile) |
... | ... |
@@ -126,6 +127,7 @@ export( |
126 | 127 |
writeAxt, |
127 | 128 |
read.rmMask.GRanges, |
128 | 129 |
saveCNEToSQLite, |
130 |
+ read.rmskFasta, |
|
129 | 131 |
|
130 | 132 |
## ceScan.R |
131 | 133 |
|
... | ... |
@@ -46,7 +46,7 @@ importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame, |
46 | 46 |
isTRUEorFALSE, isSingleString, queryLength, subjectLength) |
47 | 47 |
importFrom(tools, file_ext) |
48 | 48 |
importFrom(parallel, mcmapply) |
49 |
-importFrom(utils, download.file, read.table, write.table) |
|
49 |
+importFrom(utils, download.file, read.table, write.table, read.delim) |
|
50 | 50 |
importFrom("stats", "setNames") |
51 | 51 |
importFrom(reshape2, melt) |
52 | 52 |
importFrom(ggplot2, ggplot, aes, aes_q, aes_string, geom_tile, theme_bw, |
remove the power law test. Problem of importing "dist_rand"
... | ... |
@@ -53,7 +53,7 @@ importFrom(ggplot2, ggplot, aes, aes_q, aes_string, geom_tile, theme_bw, |
53 | 53 |
xlab, ylab, ggtitle, geom_point, scale_colour_manual, |
54 | 54 |
scale_fill_continuous, geom_text, scale_x_continuous, scale_y_continuous, |
55 | 55 |
geom_segment, facet_wrap) |
56 |
-importFrom(poweRlaw, bootstrap_p, estimate_pars, estimate_xmin) |
|
56 |
+importFrom(poweRlaw, estimate_pars, estimate_xmin) |
|
57 | 57 |
importFrom("graphics", "lines", "par", "plot", "text") |
58 | 58 |
importFrom(annotate, getGOTerm) |
59 | 59 |
importFrom(GO.db, GOCCANCESTOR, GOCCOFFSPRING, GOCCCHILDREN, |
readAxt for gzip files works on Windows platform now
... | ... |
@@ -60,6 +60,7 @@ importFrom(GO.db, GOCCANCESTOR, GOCCOFFSPRING, GOCCCHILDREN, |
60 | 60 |
GOBPANCESTOR, GOBPOFFSPRING, GOBPCHILDREN, |
61 | 61 |
GOMFANCESTOR, GOMFOFFSPRING, GOMFCHILDREN) |
62 | 62 |
importFrom("grDevices", "jpeg", "pdf", "png", "postscript") |
63 |
+importFrom(R.utils, gunzip, gzip) |
|
63 | 64 |
|
64 | 65 |
### ----------------------------------------------------------------- |
65 | 66 |
### Export S4 classes defined in CNEr |
... | ... |
@@ -59,6 +59,8 @@ importFrom(annotate, getGOTerm) |
59 | 59 |
importFrom(GO.db, GOCCANCESTOR, GOCCOFFSPRING, GOCCCHILDREN, |
60 | 60 |
GOBPANCESTOR, GOBPOFFSPRING, GOBPCHILDREN, |
61 | 61 |
GOMFANCESTOR, GOMFOFFSPRING, GOMFCHILDREN) |
62 |
+importFrom("grDevices", "jpeg", "pdf", "png", "postscript") |
|
63 |
+ |
|
62 | 64 |
### ----------------------------------------------------------------- |
63 | 65 |
### Export S4 classes defined in CNEr |
64 | 66 |
### |
... | ... |
@@ -55,7 +55,10 @@ importFrom(ggplot2, ggplot, aes, aes_q, aes_string, geom_tile, theme_bw, |
55 | 55 |
geom_segment, facet_wrap) |
56 | 56 |
importFrom(poweRlaw, bootstrap_p, estimate_pars, estimate_xmin) |
57 | 57 |
importFrom("graphics", "lines", "par", "plot", "text") |
58 |
- |
|
58 |
+importFrom(annotate, getGOTerm) |
|
59 |
+importFrom(GO.db, GOCCANCESTOR, GOCCOFFSPRING, GOCCCHILDREN, |
|
60 |
+ GOBPANCESTOR, GOBPOFFSPRING, GOBPCHILDREN, |
|
61 |
+ GOMFANCESTOR, GOMFOFFSPRING, GOMFCHILDREN) |
|
59 | 62 |
### ----------------------------------------------------------------- |
60 | 63 |
### Export S4 classes defined in CNEr |
61 | 64 |
### |
... | ... |
@@ -12,7 +12,8 @@ importClassesFrom(Biostrings, DNAStringSet) |
12 | 12 |
### ----------------------------------------------------------------- |
13 | 13 |
### Import S4 methods defined in other packages |
14 | 14 |
### |
15 |
-importMethodsFrom(rtracklayer, import.bed, export.bedGraph, export.bed) |
|
15 |
+importMethodsFrom(rtracklayer, import.bed, export.bedGraph, export.bed, |
|
16 |
+ export.bw) |
|
16 | 17 |
importMethodsFrom(GenomeInfoDb, seqnames, seqlengths, seqinfo, as.data.frame, |
17 | 18 |
genome, "genome<-", "seqlengths<-") |
18 | 19 |
importMethodsFrom(GenomicRanges, reduce, "strand<-", strand, start, end, |
... | ... |
@@ -12,7 +12,7 @@ importClassesFrom(Biostrings, DNAStringSet) |
12 | 12 |
### ----------------------------------------------------------------- |
13 | 13 |
### Import S4 methods defined in other packages |
14 | 14 |
### |
15 |
-importMethodsFrom(rtracklayer, import.bed, export.bw, export.bed) |
|
15 |
+importMethodsFrom(rtracklayer, import.bed, export.bedGraph, export.bed) |
|
16 | 16 |
importMethodsFrom(GenomeInfoDb, seqnames, seqlengths, seqinfo, as.data.frame, |
17 | 17 |
genome, "genome<-", "seqlengths<-") |
18 | 18 |
importMethodsFrom(GenomicRanges, reduce, "strand<-", strand, start, end, |
... | ... |
@@ -148,7 +148,7 @@ export( |
148 | 148 |
makeGRBs, |
149 | 149 |
|
150 | 150 |
## Ancora.R |
151 |
- readAncora, readAncoraIntoSQLite, makeBedBigWig, |
|
151 |
+ readAncora, readAncoraIntoSQLite, makeCNEDensity, |
|
152 | 152 |
|
153 | 153 |
## plot.R |
154 | 154 |
CNEDensity, |
Function to export bed and bigwig for CNEs
... | ... |
@@ -12,7 +12,7 @@ importClassesFrom(Biostrings, DNAStringSet) |
12 | 12 |
### ----------------------------------------------------------------- |
13 | 13 |
### Import S4 methods defined in other packages |
14 | 14 |
### |
15 |
-importMethodsFrom(rtracklayer, import.bed) |
|
15 |
+importMethodsFrom(rtracklayer, import.bed, export.bw, export.bed) |
|
16 | 16 |
importMethodsFrom(GenomeInfoDb, seqnames, seqlengths, seqinfo, as.data.frame, |
17 | 17 |
genome, "genome<-", "seqlengths<-") |
18 | 18 |
importMethodsFrom(GenomicRanges, reduce, "strand<-", strand, start, end, |
... | ... |
@@ -148,7 +148,7 @@ export( |
148 | 148 |
makeGRBs, |
149 | 149 |
|
150 | 150 |
## Ancora.R |
151 |
- readAncora, readAncoraIntoSQLite, |
|
151 |
+ readAncora, readAncoraIntoSQLite, makeBedBigWig, |
|
152 | 152 |
|
153 | 153 |
## plot.R |
154 | 154 |
CNEDensity, |
... | ... |
@@ -23,7 +23,8 @@ importMethodsFrom(methods, initialize, show) |
23 | 23 |
importMethodsFrom(Biostrings, compareStrings) |
24 | 24 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
25 | 25 |
showAsCell, extractROWS, mcols, "mcols<-", split, runValue, |
26 |
- as.factor, "%in%", second, "first<-", "second<-") |
|
26 |
+ as.factor, "%in%", second, "first<-", "second<-", |
|
27 |
+ runLength) |
|
27 | 28 |
importMethodsFrom(IRanges, slice, ranges, "ranges<-") |
28 | 29 |
importMethodsFrom(GenomicAlignments, last) |
29 | 30 |
|
... | ... |
@@ -50,7 +51,7 @@ importFrom(reshape2, melt) |
50 | 51 |
importFrom(ggplot2, ggplot, aes, aes_q, aes_string, geom_tile, theme_bw, |
51 | 52 |
xlab, ylab, ggtitle, geom_point, scale_colour_manual, |
52 | 53 |
scale_fill_continuous, geom_text, scale_x_continuous, scale_y_continuous, |
53 |
- geom_segment) |
|
54 |
+ geom_segment, facet_wrap) |
|
54 | 55 |
importFrom(poweRlaw, bootstrap_p, estimate_pars, estimate_xmin) |
55 | 56 |
importFrom("graphics", "lines", "par", "plot", "text") |
56 | 57 |
|
... | ... |
@@ -153,7 +154,7 @@ export( |
153 | 154 |
CNEDensity, |
154 | 155 |
|
155 | 156 |
# CNE-utils.R |
156 |
- plotCNEWidth, |
|
157 |
+ plotCNEWidth, plotCNEDistribution, |
|
157 | 158 |
|
158 | 159 |
## AssemblyStats.R |
159 | 160 |
N50, N90 |
... | ... |
@@ -14,7 +14,7 @@ importClassesFrom(Biostrings, DNAStringSet) |
14 | 14 |
### |
15 | 15 |
importMethodsFrom(rtracklayer, import.bed) |
16 | 16 |
importMethodsFrom(GenomeInfoDb, seqnames, seqlengths, seqinfo, as.data.frame, |
17 |
- genome, "genome<-") |
|
17 |
+ genome, "genome<-", "seqlengths<-") |
|
18 | 18 |
importMethodsFrom(GenomicRanges, reduce, "strand<-", strand, start, end, |
19 | 19 |
findOverlaps, coverage, grglist) |
20 | 20 |
importMethodsFrom(XVector, subseq) |
... | ... |
@@ -24,7 +24,7 @@ importMethodsFrom(Biostrings, compareStrings) |
24 | 24 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
25 | 25 |
showAsCell, extractROWS, mcols, "mcols<-", split, runValue, |
26 | 26 |
as.factor, "%in%", second, "first<-", "second<-") |
27 |
-importMethodsFrom(IRanges, slice, ranges) |
|
27 |
+importMethodsFrom(IRanges, slice, ranges, "ranges<-") |
|
28 | 28 |
importMethodsFrom(GenomicAlignments, last) |
29 | 29 |
|
30 | 30 |
### ----------------------------------------------------------------- |
... | ... |
@@ -168,7 +168,7 @@ exportMethods( |
168 | 168 |
subAxt, |
169 | 169 |
|
170 | 170 |
## Axt-methods.R |
171 |
- matchDistribution, |
|
171 |
+ matchDistribution, fixCoordinates, |
|
172 | 172 |
|
173 | 173 |
# CNE-class.R |
174 | 174 |
CNE12, CNE21, |
... | ... |
@@ -5,7 +5,7 @@ import(BiocGenerics) |
5 | 5 |
### Import S4 classes defined in other packages |
6 | 6 |
### |
7 | 7 |
importClassesFrom(methods, ANY, character, integer, missing) |
8 |
-importClassesFrom(S4Vectors, List, characterORNULL, DataFrame) |
|
8 |
+importClassesFrom(S4Vectors, List, characterORNULL, DataFrame, Pairs) |
|
9 | 9 |
importClassesFrom(GenomicRanges, GRanges) |
10 | 10 |
importClassesFrom(Biostrings, DNAStringSet) |
11 | 11 |
|
... | ... |
@@ -23,7 +23,7 @@ importMethodsFrom(methods, initialize, show) |
23 | 23 |
importMethodsFrom(Biostrings, compareStrings) |
24 | 24 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
25 | 25 |
showAsCell, extractROWS, mcols, "mcols<-", split, runValue, |
26 |
- as.factor, "%in%") |
|
26 |
+ as.factor, "%in%", second, "first<-", "second<-") |
|
27 | 27 |
importMethodsFrom(IRanges, slice, ranges) |
28 | 28 |
importMethodsFrom(GenomicAlignments, last) |
29 | 29 |
|
... | ... |
@@ -41,7 +41,7 @@ importFrom(readr, read_tsv) |
41 | 41 |
importFrom(IRanges, IRanges, IntegerList, RleViewsList) |
42 | 42 |
importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame, |
43 | 43 |
normalizeSingleBracketSubscript, normalizeDoubleBracketSubscript, |
44 |
- isTRUEorFALSE, isSingleString) |
|
44 |
+ isTRUEorFALSE, isSingleString, queryLength, subjectLength) |
|
45 | 45 |
importFrom(tools, file_ext) |
46 | 46 |
importFrom(parallel, mcmapply) |
47 | 47 |
importFrom(utils, download.file, read.table, write.table) |
... | ... |
@@ -65,16 +65,15 @@ exportClasses(Axt, |
65 | 65 |
### Export S4 methods for generics not defined in CNEr |
66 | 66 |
### |
67 | 67 |
exportMethods( |
68 |
- "[", |
|
69 |
- c, |
|
68 |
+#"[", |
|
69 |
+ c, |
|
70 | 70 |
|
71 | 71 |
## AllClasses.r |
72 |
- length, |
|
73 | 72 |
score, |
74 |
- names, seqnames, "names<-", strand, |
|
73 |
+ seqnames, strand, |
|
75 | 74 |
|
76 | 75 |
## GRangePairs-class.R |
77 |
- first, last, grglist, seqinfo, unique, |
|
76 |
+ first, last, second, grglist, seqinfo, unique, |
|
78 | 77 |
|
79 | 78 |
## GRangePairs-methods.R |
80 | 79 |
syntenicDotplot, |
... | ... |
@@ -23,7 +23,7 @@ importMethodsFrom(methods, initialize, show) |
23 | 23 |
importMethodsFrom(Biostrings, compareStrings) |
24 | 24 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
25 | 25 |
showAsCell, extractROWS, mcols, "mcols<-", split, runValue, |
26 |
- as.factor) |
|
26 |
+ as.factor, "%in%") |
|
27 | 27 |
importMethodsFrom(IRanges, slice, ranges) |
28 | 28 |
importMethodsFrom(GenomicAlignments, last) |
29 | 29 |
|
... | ... |
@@ -13,7 +13,8 @@ importClassesFrom(Biostrings, DNAStringSet) |
13 | 13 |
### Import S4 methods defined in other packages |
14 | 14 |
### |
15 | 15 |
importMethodsFrom(rtracklayer, import.bed) |
16 |
-importMethodsFrom(GenomeInfoDb, seqnames, seqlengths, seqinfo, as.data.frame) |
|
16 |
+importMethodsFrom(GenomeInfoDb, seqnames, seqlengths, seqinfo, as.data.frame, |
|
17 |
+ genome, "genome<-") |
|
17 | 18 |
importMethodsFrom(GenomicRanges, reduce, "strand<-", strand, start, end, |
18 | 19 |
findOverlaps, coverage, grglist) |
19 | 20 |
importMethodsFrom(XVector, subseq) |
... | ... |
@@ -48,7 +48,8 @@ importFrom("stats", "setNames") |
48 | 48 |
importFrom(reshape2, melt) |
49 | 49 |
importFrom(ggplot2, ggplot, aes, aes_q, aes_string, geom_tile, theme_bw, |
50 | 50 |
xlab, ylab, ggtitle, geom_point, scale_colour_manual, |
51 |
- scale_fill_continuous, geom_text, scale_x_continuous, scale_y_continuous) |
|
51 |
+ scale_fill_continuous, geom_text, scale_x_continuous, scale_y_continuous, |
|
52 |
+ geom_segment) |
|
52 | 53 |
importFrom(poweRlaw, bootstrap_p, estimate_pars, estimate_xmin) |
53 | 54 |
importFrom("graphics", "lines", "par", "plot", "text") |
54 | 55 |
|
... | ... |
@@ -73,6 +74,9 @@ exportMethods( |
73 | 74 |
|
74 | 75 |
## GRangePairs-class.R |
75 | 76 |
first, last, grglist, seqinfo, unique, |
77 |
+ |
|
78 |
+ ## GRangePairs-methods.R |
|
79 |
+ syntenicDotplot, |
|
76 | 80 |
|
77 | 81 |
## Axt-methods.R |
78 | 82 |
# mismatchSummary |
... | ... |
@@ -97,7 +101,7 @@ export( |
97 | 101 |
Axt, |
98 | 102 |
|
99 | 103 |
## Axt-methods.R |
100 |
- dotplotAxt, |
|
104 |
+ #dotplotAxt, |
|
101 | 105 |
|
102 | 106 |
## CNE-class.R |
103 | 107 |
CNE, |
... | ... |
@@ -21,7 +21,8 @@ importMethodsFrom(RSQLite, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
21 | 21 |
importMethodsFrom(methods, initialize, show) |
22 | 22 |
importMethodsFrom(Biostrings, compareStrings) |
23 | 23 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
24 |
- showAsCell, extractROWS, mcols, "mcols<-", split, runValue) |
|
24 |
+ showAsCell, extractROWS, mcols, "mcols<-", split, runValue, |
|
25 |
+ as.factor) |
|
25 | 26 |
importMethodsFrom(IRanges, slice, ranges) |
26 | 27 |
importMethodsFrom(GenomicAlignments, last) |
27 | 28 |
|
... | ... |
@@ -33,7 +34,7 @@ importFrom(GenomicRanges, GRanges) |
33 | 34 |
importFrom(GenomicAlignments, explodeCigarOps, CIGAR_OPS, explodeCigarOpLengths) |
34 | 35 |
importFrom(Biostrings, DNAStringSet, DNA_BASES, fasta.seqlengths) |
35 | 36 |
importFrom(RSQLite, SQLite) |
36 |
-importFrom(methods, is, new) |
|
37 |
+importFrom(methods, is, new, "as", "extends", "validObject") |
|
37 | 38 |
importFrom(rtracklayer, TwoBitFile) |
38 | 39 |
importFrom(readr, read_tsv) |
39 | 40 |
importFrom(IRanges, IRanges, IntegerList, RleViewsList) |
... | ... |
@@ -46,8 +47,8 @@ importFrom(utils, download.file, read.table, write.table) |
46 | 47 |
importFrom("stats", "setNames") |
47 | 48 |
importFrom(reshape2, melt) |
48 | 49 |
importFrom(ggplot2, ggplot, aes, aes_q, aes_string, geom_tile, theme_bw, |
49 |
- xlab, ylab, ggtitle, |
|
50 |
- scale_fill_continuous, geom_text) |
|
50 |
+ xlab, ylab, ggtitle, geom_point, scale_colour_manual, |
|
51 |
+ scale_fill_continuous, geom_text, scale_x_continuous, scale_y_continuous) |
|
51 | 52 |
importFrom(poweRlaw, bootstrap_p, estimate_pars, estimate_xmin) |
52 | 53 |
importFrom("graphics", "lines", "par", "plot", "text") |
53 | 54 |
|
... | ... |
@@ -94,6 +95,10 @@ export( |
94 | 95 |
|
95 | 96 |
## Axt-class.R |
96 | 97 |
Axt, |
98 |
+ |
|
99 |
+ ## Axt-methods.R |
|
100 |
+ dotplotAxt, |
|
101 |
+ |
|
97 | 102 |
## CNE-class.R |
98 | 103 |
CNE, |
99 | 104 |
## GRangePairs-class.R |
... | ... |
@@ -31,7 +31,7 @@ importMethodsFrom(GenomicAlignments, last) |
31 | 31 |
importFrom(GenomeInfoDb, Seqinfo) |
32 | 32 |
importFrom(GenomicRanges, GRanges) |
33 | 33 |
importFrom(GenomicAlignments, explodeCigarOps, CIGAR_OPS, explodeCigarOpLengths) |
34 |
-importFrom(Biostrings, DNAStringSet, DNA_BASES, fasta.info) |
|
34 |
+importFrom(Biostrings, DNAStringSet, DNA_BASES, fasta.seqlengths) |
|
35 | 35 |
importFrom(RSQLite, SQLite) |
36 | 36 |
importFrom(methods, is, new) |
37 | 37 |
importFrom(rtracklayer, TwoBitFile) |
... | ... |
@@ -48,6 +48,8 @@ importFrom(reshape2, melt) |
48 | 48 |
importFrom(ggplot2, ggplot, aes, aes_q, aes_string, geom_tile, theme_bw, |
49 | 49 |
xlab, ylab, ggtitle, |
50 | 50 |
scale_fill_continuous, geom_text) |
51 |
+importFrom(poweRlaw, bootstrap_p, estimate_pars, estimate_xmin) |
|
52 |
+importFrom("graphics", "lines", "par", "plot", "text") |
|
51 | 53 |
|
52 | 54 |
### ----------------------------------------------------------------- |
53 | 55 |
### Export S4 classes defined in CNEr |
... | ... |
@@ -138,6 +140,9 @@ export( |
138 | 140 |
## plot.R |
139 | 141 |
CNEDensity, |
140 | 142 |
|
143 |
+ # CNE-utils.R |
|
144 |
+ plotCNEWidth, |
|
145 |
+ |
|
141 | 146 |
## AssemblyStats.R |
142 | 147 |
N50, N90 |
143 | 148 |
) |
... | ... |
@@ -19,7 +19,7 @@ importMethodsFrom(GenomicRanges, reduce, "strand<-", strand, start, end, |
19 | 19 |
importMethodsFrom(XVector, subseq) |
20 | 20 |
importMethodsFrom(RSQLite, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
21 | 21 |
importMethodsFrom(methods, initialize, show) |
22 |
-importMethodsFrom(Biostrings, mismatchSummary) |
|
22 |
+importMethodsFrom(Biostrings, compareStrings) |
|
23 | 23 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
24 | 24 |
showAsCell, extractROWS, mcols, "mcols<-", split, runValue) |
25 | 25 |
importMethodsFrom(IRanges, slice, ranges) |
... | ... |
@@ -72,7 +72,8 @@ exportMethods( |
72 | 72 |
first, last, grglist, seqinfo, unique, |
73 | 73 |
|
74 | 74 |
## Axt-methods.R |
75 |
- mismatchSummary |
|
75 |
+ # mismatchSummary |
|
76 |
+ summary |
|
76 | 77 |
) |
77 | 78 |
|
78 | 79 |
### ----------------------------------------------------------------- |
Add the distribution plot of Axt alignments
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
useDynLib(CNEr, .registration = TRUE) |
2 | 2 |
import(BiocGenerics) |
3 |
+ |
|
3 | 4 |
### ----------------------------------------------------------------- |
4 | 5 |
### Import S4 classes defined in other packages |
5 | 6 |
### |
... | ... |
@@ -16,7 +17,7 @@ importMethodsFrom(GenomeInfoDb, seqnames, seqlengths, seqinfo, as.data.frame) |
16 | 17 |
importMethodsFrom(GenomicRanges, reduce, "strand<-", strand, start, end, |
17 | 18 |
findOverlaps, coverage, grglist) |
18 | 19 |
importMethodsFrom(XVector, subseq) |
19 |
-importMethodsFrom(DBI, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
|
20 |
+importMethodsFrom(RSQLite, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
|
20 | 21 |
importMethodsFrom(methods, initialize, show) |
21 | 22 |
importMethodsFrom(Biostrings, mismatchSummary) |
22 | 23 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
... | ... |
@@ -43,6 +44,10 @@ importFrom(tools, file_ext) |
43 | 44 |
importFrom(parallel, mcmapply) |
44 | 45 |
importFrom(utils, download.file, read.table, write.table) |
45 | 46 |
importFrom("stats", "setNames") |
47 |
+importFrom(reshape2, melt) |
|
48 |
+importFrom(ggplot2, ggplot, aes, aes_q, aes_string, geom_tile, theme_bw, |
|
49 |
+ xlab, ylab, ggtitle, |
|
50 |
+ scale_fill_continuous, geom_text) |
|
46 | 51 |
|
47 | 52 |
### ----------------------------------------------------------------- |
48 | 53 |
### Export S4 classes defined in CNEr |
... | ... |
@@ -146,6 +151,9 @@ exportMethods( |
146 | 151 |
targetSeqs, querySeqs, |
147 | 152 |
symCount, |
148 | 153 |
subAxt, |
154 |
+ |
|
155 |
+ ## Axt-methods.R |
|
156 |
+ matchDistribution, |
|
149 | 157 |
|
150 | 158 |
# CNE-class.R |
151 | 159 |
CNE12, CNE21, |
... | ... |
@@ -158,4 +166,4 @@ exportMethods( |
158 | 166 |
## ceScan.R |
159 | 167 |
ceScan, |
160 | 168 |
cneMerge |
161 |
-) |
|
162 | 169 |
\ No newline at end of file |
170 |
+) |
... | ... |
@@ -129,6 +129,9 @@ export( |
129 | 129 |
## Ancora.R |
130 | 130 |
readAncora, |
131 | 131 |
|
132 |
+ ## plot.R |
|
133 |
+ CNEDensity, |
|
134 |
+ |
|
132 | 135 |
## AssemblyStats.R |
133 | 136 |
N50, N90 |
134 | 137 |
) |
... | ... |
@@ -154,8 +157,5 @@ exportMethods( |
154 | 157 |
|
155 | 158 |
## ceScan.R |
156 | 159 |
ceScan, |
157 |
- cneMerge, |
|
158 |
- |
|
159 |
- ## plot.r |
|
160 |
- CNEDensity |
|
160 |
+ cneMerge |
|
161 | 161 |
) |
162 | 162 |
\ No newline at end of file |
... | ... |
@@ -97,6 +97,7 @@ export( |
97 | 97 |
axtInfo, |
98 | 98 |
writeAxt, |
99 | 99 |
read.rmMask.GRanges, |
100 |
+ saveCNEToSQLite, |
|
100 | 101 |
|
101 | 102 |
## ceScan.R |
102 | 103 |
|
... | ... |
@@ -154,11 +155,7 @@ exportMethods( |
154 | 155 |
## ceScan.R |
155 | 156 |
ceScan, |
156 | 157 |
cneMerge, |
157 |
- |
|
158 |
- ## utils.r |
|
159 |
- saveCNEToSQLite, |
|
160 | 158 |
|
161 | 159 |
## plot.r |
162 | 160 |
CNEDensity |
163 |
-) |
|
164 |
- |
|
161 |
+) |
|
165 | 162 |
\ No newline at end of file |
... | ... |
@@ -64,7 +64,7 @@ exportMethods( |
64 | 64 |
names, seqnames, "names<-", strand, |
65 | 65 |
|
66 | 66 |
## GRangePairs-class.R |
67 |
- first, last, grglist, seqinfo, swap, |
|
67 |
+ first, last, grglist, seqinfo, unique, |
|
68 | 68 |
|
69 | 69 |
## Axt-methods.R |
70 | 70 |
mismatchSummary |
... | ... |
@@ -148,6 +148,9 @@ exportMethods( |
148 | 148 |
thresholds, |
149 | 149 |
CNEMerged, CNEFinal, |
150 | 150 |
|
151 |
+ # GRangePairs-class.R |
|
152 |
+ swap, |
|
153 |
+ |
|
151 | 154 |
## ceScan.R |
152 | 155 |
ceScan, |
153 | 156 |
cneMerge, |
... | ... |
@@ -35,7 +35,7 @@ importFrom(RSQLite, SQLite) |
35 | 35 |
importFrom(methods, is, new) |
36 | 36 |
importFrom(rtracklayer, TwoBitFile) |
37 | 37 |
importFrom(readr, read_tsv) |
38 |
-importFrom(IRanges, IRanges, IntegerList) |
|
38 |
+importFrom(IRanges, IRanges, IntegerList, RleViewsList) |
|
39 | 39 |
importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame, |
40 | 40 |
normalizeSingleBracketSubscript, normalizeDoubleBracketSubscript, |
41 | 41 |
isTRUEorFALSE, isSingleString) |
... | ... |
@@ -20,7 +20,7 @@ importMethodsFrom(DBI, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
20 | 20 |
importMethodsFrom(methods, initialize, show) |
21 | 21 |
importMethodsFrom(Biostrings, mismatchSummary) |
22 | 22 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
23 |
- showAsCell, extractROWS, mcols, "mcols<-") |
|
23 |
+ showAsCell, extractROWS, mcols, "mcols<-", split, runValue) |
|
24 | 24 |
importMethodsFrom(IRanges, slice, ranges) |
25 | 25 |
importMethodsFrom(GenomicAlignments, last) |
26 | 26 |
|
... | ... |
@@ -97,9 +97,8 @@ export( |
97 | 97 |
axtInfo, |
98 | 98 |
writeAxt, |
99 | 99 |
|
100 |
- ## ceScan.r |
|
101 |
- ceScan, |
|
102 |
- cneMerge, |
|
100 |
+ ## ceScan.R |
|
101 |
+ |
|
103 | 102 |
blatCNE, |
104 | 103 |
#ceScanOneStep, |
105 | 104 |
|
... | ... |
@@ -142,11 +141,14 @@ exportMethods( |
142 | 141 |
subAxt, |
143 | 142 |
|
144 | 143 |
# CNE-class.R |
145 |
- assembly1, assembly2, |
|
146 | 144 |
CNE12, CNE21, |
147 | 145 |
thresholds, |
148 | 146 |
CNEMerged, CNEFinal, |
149 | 147 |
|
148 |
+ ## ceScan.R |
|
149 |
+ ceScan, |
|
150 |
+ cneMerge, |
|
151 |
+ |
|
150 | 152 |
## utils.r |
151 | 153 |
saveCNEToSQLite, |
152 | 154 |
|
... | ... |
@@ -35,7 +35,7 @@ importFrom(RSQLite, SQLite) |
35 | 35 |
importFrom(methods, is, new) |
36 | 36 |
importFrom(rtracklayer, TwoBitFile) |
37 | 37 |
importFrom(readr, read_tsv) |
38 |
-importFrom(IRanges, IRanges) |
|
38 |
+importFrom(IRanges, IRanges, IntegerList) |
|
39 | 39 |
importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame, |
40 | 40 |
normalizeSingleBracketSubscript, normalizeDoubleBracketSubscript, |
41 | 41 |
isTRUEorFALSE, isSingleString) |
... | ... |
@@ -61,11 +61,10 @@ exportMethods( |
61 | 61 |
## AllClasses.r |
62 | 62 |
length, |
63 | 63 |
score, |
64 |
- nchar, |
|
65 | 64 |
names, seqnames, "names<-", strand, |
66 | 65 |
|
67 | 66 |
## GRangePairs-class.R |
68 |
- first, last, grglist, seqinfo, |
|
67 |
+ first, last, grglist, seqinfo, swap, |
|
69 | 68 |
|
70 | 69 |
## Axt-methods.R |
71 | 70 |
mismatchSummary |
... | ... |
@@ -85,12 +85,14 @@ export( |
85 | 85 |
#queryAnnotationSQLite, |
86 | 86 |
fetchChromSizes, |
87 | 87 |
|
88 |
- ## AllClasses.r |
|
88 |
+ ## Axt-class.R |
|
89 | 89 |
Axt, |
90 |
+ ## CNE-class.R |
|
90 | 91 |
CNE, |
92 |
+ ## GRangePairs-class.R |
|
91 | 93 |
GRangePairs, |
92 | 94 |
|
93 |
- # io.r |
|
95 |
+ # IO-methods.R |
|
94 | 96 |
readBed, |
95 | 97 |
readAxt, |
96 | 98 |
axtInfo, |
... | ... |
@@ -134,15 +136,17 @@ export( |
134 | 136 |
### |
135 | 137 |
|
136 | 138 |
exportMethods( |
137 |
- ## AllClasses.r |
|
139 |
+ ## Axt-class.R |
|
138 | 140 |
targetRanges, queryRanges, |
139 | 141 |
targetSeqs, querySeqs, |
140 | 142 |
symCount, |
141 | 143 |
subAxt, |
144 |
+ |
|
145 |
+ # CNE-class.R |
|
142 | 146 |
assembly1, assembly2, |
143 |
- CNE1, CNE2, |
|
147 |
+ CNE12, CNE21, |
|
144 | 148 |
thresholds, |
145 |
- CNEMerged, CNERepeatsFiltered, |
|
149 |
+ CNEMerged, CNEFinal, |
|
146 | 150 |
|
147 | 151 |
## utils.r |
148 | 152 |
saveCNEToSQLite, |
... | ... |
@@ -38,7 +38,7 @@ importFrom(readr, read_tsv) |
38 | 38 |
importFrom(IRanges, IRanges) |
39 | 39 |
importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame, |
40 | 40 |
normalizeSingleBracketSubscript, normalizeDoubleBracketSubscript, |
41 |
- isTRUEorFALSE) |
|
41 |
+ isTRUEorFALSE, isSingleString) |
|
42 | 42 |
importFrom(tools, file_ext) |
43 | 43 |
importFrom(parallel, mcmapply) |
44 | 44 |
importFrom(utils, download.file, read.table, write.table) |
... | ... |
@@ -14,13 +14,13 @@ importClassesFrom(Biostrings, DNAStringSet) |
14 | 14 |
importMethodsFrom(rtracklayer, import.bed) |
15 | 15 |
importMethodsFrom(GenomeInfoDb, seqnames, seqlengths, seqinfo, as.data.frame) |
16 | 16 |
importMethodsFrom(GenomicRanges, reduce, "strand<-", strand, start, end, |
17 |
- findOverlaps, coverage) |
|
17 |
+ findOverlaps, coverage, grglist) |
|
18 | 18 |
importMethodsFrom(XVector, subseq) |
19 | 19 |
importMethodsFrom(DBI, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
20 | 20 |
importMethodsFrom(methods, initialize, show) |
21 | 21 |
importMethodsFrom(Biostrings, mismatchSummary) |
22 | 22 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
23 |
- showAsCell, extractROWS, mcols) |
|
23 |
+ showAsCell, extractROWS, mcols, "mcols<-") |
|
24 | 24 |
importMethodsFrom(IRanges, slice, ranges) |
25 | 25 |
importMethodsFrom(GenomicAlignments, last) |
26 | 26 |
|
... | ... |
@@ -57,11 +57,15 @@ exportClasses(Axt, |
57 | 57 |
exportMethods( |
58 | 58 |
"[", |
59 | 59 |
c, |
60 |
+ |
|
60 | 61 |
## AllClasses.r |
61 | 62 |
length, |
62 | 63 |
score, |
63 | 64 |
nchar, |
64 |
- first, last, names, seqnames, "names<-", strand, |
|
65 |
+ names, seqnames, "names<-", strand, |
|
66 |
+ |
|
67 |
+ ## GRangePairs-class.R |
|
68 |
+ first, last, grglist, seqinfo, |
|
65 | 69 |
|
66 | 70 |
## Axt-methods.R |
67 | 71 |
mismatchSummary |
... | ... |
@@ -37,7 +37,8 @@ importFrom(rtracklayer, TwoBitFile) |
37 | 37 |
importFrom(readr, read_tsv) |
38 | 38 |
importFrom(IRanges, IRanges) |
39 | 39 |
importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame, |
40 |
- normalizeSingleBracketSubscript, normalizeDoubleBracketSubscript) |
|
40 |
+ normalizeSingleBracketSubscript, normalizeDoubleBracketSubscript, |
|
41 |
+ isTRUEorFALSE) |
|
41 | 42 |
importFrom(tools, file_ext) |
42 | 43 |
importFrom(parallel, mcmapply) |
43 | 44 |
importFrom(utils, download.file, read.table, write.table) |
... | ... |
@@ -1,5 +1,5 @@ |
1 | 1 |
useDynLib(CNEr, .registration = TRUE) |
2 |
- |
|
2 |
+import(BiocGenerics) |
|
3 | 3 |
### ----------------------------------------------------------------- |
4 | 4 |
### Import S4 classes defined in other packages |
5 | 5 |
### |
... | ... |
@@ -20,8 +20,7 @@ importMethodsFrom(DBI, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
20 | 20 |
importMethodsFrom(methods, initialize, show) |
21 | 21 |
importMethodsFrom(Biostrings, mismatchSummary) |
22 | 22 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
23 |
- showAsCell, extractROWS) |
|
24 |
-importMethodsFrom(BiocGenerics, score, setdiff, unlist) |
|
23 |
+ showAsCell, extractROWS, mcols) |
|
25 | 24 |
importMethodsFrom(IRanges, slice, ranges) |
26 | 25 |
importMethodsFrom(GenomicAlignments, last) |
27 | 26 |
|
... | ... |
@@ -38,7 +38,7 @@ importFrom(rtracklayer, TwoBitFile) |
38 | 38 |
importFrom(readr, read_tsv) |
39 | 39 |
importFrom(IRanges, IRanges) |
40 | 40 |
importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame, |
41 |
- normalizeSingleBracketSubscript) |
|
41 |
+ normalizeSingleBracketSubscript, normalizeDoubleBracketSubscript) |
|
42 | 42 |
importFrom(tools, file_ext) |
43 | 43 |
importFrom(parallel, mcmapply) |
44 | 44 |
importFrom(utils, download.file, read.table, write.table) |
... | ... |
@@ -20,7 +20,7 @@ importMethodsFrom(DBI, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
20 | 20 |
importMethodsFrom(methods, initialize, show) |
21 | 21 |
importMethodsFrom(Biostrings, mismatchSummary) |
22 | 22 |
importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
23 |
- showAsCell) |
|
23 |
+ showAsCell, extractROWS) |
|
24 | 24 |
importMethodsFrom(BiocGenerics, score, setdiff, unlist) |
25 | 25 |
importMethodsFrom(IRanges, slice, ranges) |
26 | 26 |
importMethodsFrom(GenomicAlignments, last) |
... | ... |
@@ -19,7 +19,8 @@ importMethodsFrom(XVector, subseq) |
19 | 19 |
importMethodsFrom(DBI, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
20 | 20 |
importMethodsFrom(methods, initialize, show) |
21 | 21 |
importMethodsFrom(Biostrings, mismatchSummary) |
22 |
-importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first) |
|
22 |
+importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first, |
|
23 |
+ showAsCell) |
|
23 | 24 |
importMethodsFrom(BiocGenerics, score, setdiff, unlist) |
24 | 25 |
importMethodsFrom(IRanges, slice, ranges) |
25 | 26 |
importMethodsFrom(GenomicAlignments, last) |
... | ... |
@@ -36,7 +37,8 @@ importFrom(methods, is, new) |
36 | 37 |
importFrom(rtracklayer, TwoBitFile) |
37 | 38 |
importFrom(readr, read_tsv) |
38 | 39 |
importFrom(IRanges, IRanges) |
39 |
-importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame) |
|
40 |
+importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame, |
|
41 |
+ normalizeSingleBracketSubscript) |
|
40 | 42 |
importFrom(tools, file_ext) |
41 | 43 |
importFrom(parallel, mcmapply) |
42 | 44 |
importFrom(utils, download.file, read.table, write.table) |
... | ... |
@@ -4,7 +4,9 @@ useDynLib(CNEr, .registration = TRUE) |
4 | 4 |
### Import S4 classes defined in other packages |
5 | 5 |
### |
6 | 6 |
importClassesFrom(methods, ANY, character, integer, missing) |
7 |
- |
|
7 |
+importClassesFrom(S4Vectors, List, characterORNULL, DataFrame) |
|
8 |
+importClassesFrom(GenomicRanges, GRanges) |
|
9 |
+importClassesFrom(Biostrings, DNAStringSet) |
|
8 | 10 |
|
9 | 11 |
### ----------------------------------------------------------------- |
10 | 12 |
### Import S4 methods defined in other packages |
... | ... |
@@ -17,9 +19,10 @@ importMethodsFrom(XVector, subseq) |
17 | 19 |
importMethodsFrom(DBI, dbGetQuery, dbConnect, dbDisconnect, dbWriteTable) |
18 | 20 |
importMethodsFrom(methods, initialize, show) |
19 | 21 |
importMethodsFrom(Biostrings, mismatchSummary) |
20 |
-importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS) |
|
22 |
+importMethodsFrom(S4Vectors, Rle, isConstant, runmean, elementNROWS, first) |
|
21 | 23 |
importMethodsFrom(BiocGenerics, score, setdiff, unlist) |
22 | 24 |
importMethodsFrom(IRanges, slice, ranges) |
25 |
+importMethodsFrom(GenomicAlignments, last) |
|
23 | 26 |
|
24 | 27 |
### ----------------------------------------------------------------- |
25 | 28 |
### Import ordinary functions, variables in other packages |
... | ... |
@@ -33,16 +36,18 @@ importFrom(methods, is, new) |
33 | 36 |
importFrom(rtracklayer, TwoBitFile) |
34 | 37 |
importFrom(readr, read_tsv) |
35 | 38 |
importFrom(IRanges, IRanges) |
36 |
-importFrom(S4Vectors, .Call2, queryHits, subjectHits) |
|
39 |
+importFrom(S4Vectors, .Call2, queryHits, subjectHits, DataFrame) |
|
37 | 40 |
importFrom(tools, file_ext) |
38 | 41 |
importFrom(parallel, mcmapply) |
39 | 42 |
importFrom(utils, download.file, read.table, write.table) |