| 1 |
useDynLib(qtl, .registration=TRUE) |
| 2 |
|
| 3 |
# Import package dependencies |
| 4 |
importFrom(graphics,par) |
| 5 |
importFrom(graphics,abline) |
| 6 |
importFrom(graphics,points) |
| 7 |
importFrom(graphics,lines) |
| 8 |
importFrom(graphics,text) |
| 9 |
importFrom(graphics,mtext) |
| 10 |
importFrom(graphics,axis) |
| 11 |
importFrom(graphics,title) |
| 12 |
importFrom(graphics,arrows) |
| 13 |
importFrom(graphics,barplot) |
| 14 |
importFrom(graphics,contour) |
| 15 |
importFrom(graphics,grid) |
| 16 |
importFrom(graphics,hist) |
| 17 |
importFrom(graphics,image) |
| 18 |
importFrom(graphics,layout) |
| 19 |
importFrom(graphics,legend) |
| 20 |
importFrom(graphics,persp) |
| 21 |
importFrom(graphics,plot.new) |
| 22 |
importFrom(graphics,plot.window) |
| 23 |
importFrom(graphics,polygon) |
| 24 |
importFrom(graphics,rect) |
| 25 |
importFrom(graphics,rug) |
| 26 |
importFrom(graphics,segments) |
| 27 |
importFrom(graphics,xspline) |
| 28 |
|
| 29 |
importFrom(stats,Gamma) |
| 30 |
importFrom(stats,as.formula) |
| 31 |
importFrom(stats,binomial) |
| 32 |
importFrom(stats,chisq.test) |
| 33 |
importFrom(stats,dnorm) |
| 34 |
importFrom(stats,fitted) |
| 35 |
importFrom(stats,glm) |
| 36 |
importFrom(stats,hatvalues) |
| 37 |
importFrom(stats,heatmap) |
| 38 |
importFrom(stats,kruskal.test) |
| 39 |
importFrom(stats,lm) |
| 40 |
importFrom(stats,median) |
| 41 |
importFrom(stats,model.matrix) |
| 42 |
importFrom(stats,optim) |
| 43 |
importFrom(stats,optimize) |
| 44 |
importFrom(stats,pchisq) |
| 45 |
importFrom(stats,pf) |
| 46 |
importFrom(stats,printCoefmat) |
| 47 |
importFrom(stats,qnorm) |
| 48 |
importFrom(stats,quantile) |
| 49 |
importFrom(stats,resid) |
| 50 |
importFrom(stats,rnorm) |
| 51 |
importFrom(stats,runif) |
| 52 |
importFrom(stats,sd) |
| 53 |
importFrom(stats,shapiro.test) |
| 54 |
importFrom(stats,terms) |
| 55 |
importFrom(stats,uniroot) |
| 56 |
importFrom(stats,var) |
| 57 |
importFrom(stats,weighted.mean) |
| 58 |
|
| 59 |
importFrom(utils,read.table) |
| 60 |
importFrom(utils,write.table) |
| 61 |
importFrom(utils,packageVersion) |
| 62 |
importFrom(utils,packageDescription) |
| 63 |
|
| 64 |
importFrom(parallel,makeCluster) |
| 65 |
importFrom(parallel,stopCluster) |
| 66 |
importFrom(parallel,clusterApply) |
| 67 |
importFrom(parallel,mclapply) |
| 68 |
importFrom(parallel,clusterApplyLB) |
| 69 |
importFrom(parallel,clusterEvalQ) |
| 70 |
importFrom(parallel,nextRNGStream) |
| 71 |
importFrom(parallel,parLapply) |
| 72 |
|
| 73 |
importFrom(grDevices,topo.colors) |
| 74 |
importFrom(grDevices,terrain.colors) |
| 75 |
importFrom(grDevices,heat.colors) |
| 76 |
importFrom(grDevices,cm.colors) |
| 77 |
importFrom(grDevices,gray) |
| 78 |
importFrom(grDevices,rgb) |
| 79 |
importFrom(grDevices,rainbow) |
| 80 |
importFrom(grDevices,col2rgb) |
| 81 |
importFrom(grDevices,dev.off) |
| 82 |
importFrom(grDevices,png) |
| 83 |
|
| 84 |
# export functions for users |
| 85 |
export(find_large_intervals) |
| 86 |
export(table2map) |
| 87 |
export(flip.order) |
| 88 |
export(map2table) |
| 89 |
export(scanonevar) |
| 90 |
export(scanonevar.meanperm) |
| 91 |
export(scanonevar.varperm) |
| 92 |
export(reduce2grid) |
| 93 |
export(formMarkerCovar) |
| 94 |
export(nqtl) |
| 95 |
export(addmarker) |
| 96 |
export(inferFounderHap) |
| 97 |
export(pull.genoprob, pull.argmaxgeno, pull.draws) |
| 98 |
export(nullmarkers) |
| 99 |
|
| 100 |
export(scantwopermhk) |
| 101 |
|
| 102 |
export(convert2bcsft) |
| 103 |
export(add.cim.covar, add.threshold, addcovarint, addint) |
| 104 |
export(addloctocross, addmarkerstointervalmap, addpair, addqtl) |
| 105 |
export(addtoqtl, allchrsplits, argmax.geno, bayesint) |
| 106 |
export(calc.errorlod, calc.genoprob, calc.penalties, calc.plod) |
| 107 |
export(checkAlleles, checkcovar, chrlen, chrnames) |
| 108 |
export(cim, cleanGeno, comparecrosses, comparegeno) |
| 109 |
export(compareorder, convert2riself, convert2risib, convert2sa) |
| 110 |
export(countXO, create.map, drop.dupmarkers, drop.markers) |
| 111 |
export(drop.nullmarkers, dropfromqtl, droponemarker) |
| 112 |
export(effectplot, effectscan, est.map, est.rf) |
| 113 |
export(fill.geno, find.flanking, find.marker, find.markerindex) |
| 114 |
export(find.markerpos, find.pheno, find.pseudomarker, find.pseudomarkerpos) |
| 115 |
export(findDupMarkers, fitqtl, fitstahl, flipcross, formLinkageGroups) |
| 116 |
export(genAllPartitions, geno.crosstab, geno.image, geno.table) |
| 117 |
export(getgenonames, getid, getsex, groupclusteredheatmap) |
| 118 |
export(imf.cf, imf.h, imf.k, imf.m, imf.stahl) |
| 119 |
export(inferredpartitions, interpPositions, jittermap, locatemarker, locateXO) |
| 120 |
export(lodint, makeqtl, markerlrt, markernames) |
| 121 |
export(mf.cf, mf.h, mf.k, mf.m, mf.stahl) |
| 122 |
export(movemarker, mqm_version, mqmaugment) |
| 123 |
export(mqmautocofactors, mqmextractmarkers) |
| 124 |
export(mqmfind.marker, mqmgetmodel, mqmpermutation) |
| 125 |
export(mqmplot.circle, mqmplot.cistrans, mqmplot.clusteredheatmap, mqmplot.cofactors) |
| 126 |
export(mqmplot.directedqtl, mqmplot.heatmap, mqmplot.multitrait, mqmplot.permutations) |
| 127 |
export(mqmplot.singletrait, mqmprocesspermutation, mqmscan, mqmscanall) |
| 128 |
export(mqmscanfdr, mqmsetcofactors, mqmtestnormal) |
| 129 |
export(nchr, nind, nmar, nmissing, nphe, nqrank, ntyped, orderMarkers) |
| 130 |
export(phenames, pickMarkerSubset, plotErrorlod, plotGeno, plotInfo, plot.map, plotMap) |
| 131 |
export(plotMissing, plotPheno, plotPXG, plotRF, plotLodProfile) |
| 132 |
export(plotModel, polyplot, pull.geno, pull.map, pull.markers, pull.pheno, pull.rf) |
| 133 |
export(qtlversion, read.cross, readMWril, refineqtl, reorderqtl, replace.map) |
| 134 |
export(replacemap, replaceqtl, rescalemap, ripple) |
| 135 |
export(scanall, scanone, scanoneboot, scanPhyloQTL, scanqtl, scantwo) |
| 136 |
export(shiftmap, sim.cross, sim.geno, sim.map, simFounderSnps, simPhyloQTL) |
| 137 |
export(simulatemissingdata, stepwiseqtl, strip.partials, subrousummaryscantwo) |
| 138 |
export(summaryMap, summary.map, switch.order, switchAlleles, top.errorlod) |
| 139 |
export(totmar, transformPheno, tryallpositions, typingGap, write.cross, xaxisloc.scanone) |
| 140 |
export(clean, condense, convert) |
| 141 |
export(summaryScantwoOld) |
| 142 |
export(reviseXdata) |
| 143 |
|
| 144 |
|
| 145 |
# used by funqtl |
| 146 |
export(checkStepwiseqtlStart) |
| 147 |
export(checkformula) |
| 148 |
export(countqtlterms) |
| 149 |
export(deparseQTLformula) |
| 150 |
export(fitqtlengine) |
| 151 |
export(matchchr) |
| 152 |
export(parseformula) |
| 153 |
export(reviseqtlnuminformula) |
| 154 |
|
| 155 |
|
| 156 |
# S3 methods |
| 157 |
S3method("-", scanone) |
| 158 |
S3method("-", scanoneperm) |
| 159 |
S3method("-", scantwo) |
| 160 |
S3method("-", scantwoperm) |
| 161 |
S3method("+", scanone) |
| 162 |
S3method("+", scanoneperm) |
| 163 |
S3method("+", scantwo) |
| 164 |
S3method("+", scantwoperm) |
| 165 |
S3method("[", cross) |
| 166 |
S3method("[", map) |
| 167 |
S3method("[", scanoneperm) |
| 168 |
S3method("[", scantwoperm) |
| 169 |
S3method(c, cross) |
| 170 |
S3method(c, scanone) |
| 171 |
S3method(c, scanoneperm) |
| 172 |
S3method(c, scantwo) |
| 173 |
S3method(c, scantwoperm) |
| 174 |
S3method(cbind, scanone) |
| 175 |
S3method(cbind, scanoneperm) |
| 176 |
S3method(cbind, scantwo) |
| 177 |
S3method(cbind, scantwoperm) |
| 178 |
S3method(clean, cross) |
| 179 |
S3method(clean, scantwo) |
| 180 |
S3method(condense, scantwo) |
| 181 |
S3method(convert, scanone) |
| 182 |
S3method(convert, scantwo) |
| 183 |
S3method(convert, map) |
| 184 |
S3method(max, scanone) |
| 185 |
S3method(max, scanPhyloQTL) |
| 186 |
S3method(max, scantwo) |
| 187 |
S3method(max, scantwocondensed) |
| 188 |
S3method(plot, cross) |
| 189 |
S3method(plot, map) |
| 190 |
S3method(plot, qtl) |
| 191 |
S3method(plot, rfmatrix) |
| 192 |
S3method(plot, scanone) |
| 193 |
S3method(plot, scanoneboot) |
| 194 |
S3method(plot, scanoneperm) |
| 195 |
S3method(plot, scanPhyloQTL) |
| 196 |
S3method(plot, scantwo) |
| 197 |
S3method(plot, scantwoperm) |
| 198 |
S3method(print, addcovarint) |
| 199 |
S3method(print, addint) |
| 200 |
S3method(print, compactqtl) |
| 201 |
S3method(print, cross) |
| 202 |
S3method(print, map) |
| 203 |
S3method(print, qtl) |
| 204 |
S3method(print, scanoneboot) |
| 205 |
S3method(print, scantwo) |
| 206 |
S3method(print, summary.addpair) |
| 207 |
S3method(print, summary.compactqtl) |
| 208 |
S3method(print, summary.cross) |
| 209 |
S3method(print, summary.fitqtl) |
| 210 |
S3method(print, summary.map) |
| 211 |
S3method(print, summary.qtl) |
| 212 |
S3method(print, summary.ripple) |
| 213 |
S3method(print, summary.scanone) |
| 214 |
S3method(print, summary.scanoneperm) |
| 215 |
S3method(print, summary.scantwo) |
| 216 |
S3method(print, summary.scantwo.old) |
| 217 |
S3method(print, summary.scantwoperm) |
| 218 |
S3method(rbind, scanoneperm) |
| 219 |
S3method(rbind, scantwoperm) |
| 220 |
S3method(replacemap, cross) |
| 221 |
S3method(replacemap, scanone) |
| 222 |
S3method(replacemap, scantwo) |
| 223 |
S3method(subset, cross) |
| 224 |
S3method(subset, map) |
| 225 |
S3method(subset, scanone) |
| 226 |
S3method(subset, scanoneperm) |
| 227 |
S3method(subset, scantwo) |
| 228 |
S3method(subset, scantwoperm) |
| 229 |
S3method(summary, addcovarint) |
| 230 |
S3method(summary, addint) |
| 231 |
S3method(summary, compactqtl) |
| 232 |
S3method(summary, cross) |
| 233 |
S3method(summary, fitqtl) |
| 234 |
S3method(summary, map) |
| 235 |
S3method(summary, qtl) |
| 236 |
S3method(summary, ripple) |
| 237 |
S3method(summary, scanone) |
| 238 |
S3method(summary, scanoneboot) |
| 239 |
S3method(summary, scanoneperm) |
| 240 |
S3method(summary, scanPhyloQTL) |
| 241 |
S3method(summary, scantwo) |
| 242 |
S3method(summary, scantwocondensed) |
| 243 |
S3method(summary, scantwoperm) |
| 244 |
S3method(plot, comparegeno) |
| 245 |
S3method(summary, comparegeno) |
| 246 |
S3method(print, summary.comparegeno) |
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
# Hidden functions |
| 251 |
# asnumericwithdec |
| 252 |
# adjust.rf.ri |
| 253 |
# calc.genoprob.special |
| 254 |
# calc.pairprob |
| 255 |
# calcPermPval |
| 256 |
# calculatedensity |
| 257 |
# charround |
| 258 |
# checkdistances |
| 259 |
# checkformula |
| 260 |
# checkPhyloCrosses |
| 261 |
# checkPhyloPartition |
| 262 |
# checkStepwiseqtlStart |
| 263 |
# circlelocations |
| 264 |
# convertMWril |
| 265 |
# countqtlterms |
| 266 |
# deparseQTLformula |
| 267 |
# discan |
| 268 |
# drawcirculargenome |
| 269 |
# drawspline |
| 270 |
# dropfromqtlformula |
| 271 |
# dropXcol |
| 272 |
# effectplot.calmeanse |
| 273 |
# effectplot.getmark |
| 274 |
# estimatemarkerlod |
| 275 |
# expandf2covar |
| 276 |
# fitqtlengine |
| 277 |
# fitstahl.este |
| 278 |
# fitstahl.este.sub |
| 279 |
# fitstahl.estp |
| 280 |
# fitstahl.estp.sub |
| 281 |
# fitstahl.estpe |
| 282 |
# fitstahl.estpe.sub |
| 283 |
# fixX4write |
| 284 |
# fixXgeno.bc |
| 285 |
# fixXgeno.f2 |
| 286 |
# getChr |
| 287 |
# getchromosomelength |
| 288 |
# getgenomelength |
| 289 |
# getThird |
| 290 |
# grab.arg.names |
| 291 |
# interpmap |
| 292 |
# interpmap4scantwo |
| 293 |
# genotab.em |
| 294 |
# LikePheVector |
| 295 |
# locationtocircle |
| 296 |
# loopthroughmulti |
| 297 |
# makeSSmap |
| 298 |
# markerforwsel |
| 299 |
# markerforwself2 |
| 300 |
# markerloglik |
| 301 |
# matchchr |
| 302 |
# mqmaugment_on_cofactors |
| 303 |
# mqmextractpseudomarkers |
| 304 |
# orderMarkers.sub |
| 305 |
# ourline |
| 306 |
# ourstop |
| 307 |
# parseformula |
| 308 |
# mybinaryrep |
| 309 |
# plot.effectscan |
| 310 |
# printQTLformulanicely |
| 311 |
# qtlByPartition |
| 312 |
# qtlformulasymmetric |
| 313 |
# read.cro.qtlcart |
| 314 |
# read.cross.csv |
| 315 |
# read.cross.csvs |
| 316 |
# read.cross.gary |
| 317 |
# read.cross.karl |
| 318 |
# read.cross.mm |
| 319 |
# read.cross.qtlcart |
| 320 |
# read.cross.qtx |
| 321 |
# read.map.qtlcart |
| 322 |
# read.maps.mm |
| 323 |
# reorgRIargmax |
| 324 |
# reorgRIdraws |
| 325 |
# reorgRIgenoprob |
| 326 |
# reorgRIpairprob |
| 327 |
# revisecovar |
| 328 |
# reviseqtlnuminformula |
| 329 |
# revisescantwodf |
| 330 |
# reviseXdata |
| 331 |
# ripple.perm.sub |
| 332 |
# ripple.perm1 |
| 333 |
# ripple.perm2 |
| 334 |
# rippleSnowCountxo |
| 335 |
# rippleSnowLik |
| 336 |
# roundqtlpos |
| 337 |
# scanone.perm |
| 338 |
# scanone.perm.engine |
| 339 |
# scanoneXnull |
| 340 |
# scantwo.perm |
| 341 |
# scantwo.perm.engine |
| 342 |
# scantwoperm2scanoneperm |
| 343 |
# scoremissingmarkers |
| 344 |
# sim.cross.4way |
| 345 |
# sim.cross.bc |
| 346 |
# sim.cross.f2 |
| 347 |
# sim.ril |
| 348 |
# snowCoreALL |
| 349 |
# snowCoreBOOT |
| 350 |
# sortPhyloPartitions |
| 351 |
# sim.bcg |
| 352 |
# stepsize |
| 353 |
# stringPhenoToInt |
| 354 |
# testchr |
| 355 |
# vbscan |
| 356 |
# write.cross.csv |
| 357 |
# write.cross.gary |
| 358 |
# write.cross.mm |
| 359 |
# write.cross.qtlcart |