/usr/lib/R/site-library/qtl/TODO.txt is in r-cran-qtl 1.33-7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | "To do" list for R/qtl
----------------------------------------------------------------------
This file is intended to contain a list of many of the additions and
revisions that are planned for the R/qtl package.
If you any additions or revisions to suggest, please send an email to
Karl Broman, <kbroman@biostat.wisc.edu>.
----------------------------------------------------------------------
SHORT TERM:
o functions as.scanone (for converting matrix or data frame to scanone
format) and as.scanoneperm (for converting matrix or two to
scanoneperm format)
o Bug in mqmscan: it has problems when there are just two markers on a
chromosome. It gives a seg fault if you scan just that chromosome,
and it gives Infs in the "info" column in the results if you scan
that and other chromosomes.
o Include genetic map as an attribute in scanone results and use that
to plot marker positions.
o effectplot and effectscan with method="hk" as well as "imp"
o calc.penalties could take the result of summary.scanone in place of
permutation results.
o mapmaker format: if genetic map file is missing, create a bogus
one.
o Fix documentation for fitqtl: estimated effects work except such and
such cases (X chromosome, and 4-way crosses). Might not work right
for all other cases, but if that's true we should fix it.
o Revise rqtltour and rqtltour2 to emphasize the use of RStudio.
Suggest using download.file() and then loading with File -> Open
rather than using url.show()
o calc.genoprob: calculate genotype probabilities at a pre-specified
map
o Add pheno.col type arguments to all of the MQM functions
o Bug in scantwo: occasionally lod scores not matching what I get from
lm(); see example data from Quoc Tran
o Scantwo permutations: currently interaction LOD is obtained by
taking max(full) - max(add) within chromosome pair and then maximizing
across chr pairs. It should be max(full) overall - max(add)
overall. The latter will be a bit smaller than the former
o GMendel-type option for bootstrap to assess marker order for closely
spaced markers.
o CIM-type analysis with proper treatment of missing data, using
fitqtl
o h^2 due to QTL in results of scanone
o Add argument to refineqtl to scan full chromosomes
o Separate function to get LOD profiles from a fixed model, not
necessarily the max? (Or can we use refineqtl for this, but with no
iterations?)
o stepwiseqtl: Need a trap for the case that LODs are all NA
o plot.scanone might take LOD score column *names* (as pheno.col does)
o Bug in replacemap.cross in case of sex-specific map and
genoprob/draws maps that need interpolation
o Bugs in summary.scanone in the case of multiple phenotypes and
multiple thresholds for formats other than allpheno and allpeaks.
I get warnings like
In lod[, i] > threshold :
longer object length is not a multiple of shorter object length
Also, I need to use as.numeric() on the thresholds
o Use library(parallel) with orderMarkers
o beeswarm package for plot.pxg
o In sim.cross, to get a QTL on the X chromosome, you need to use
chr=20 rather than chr="X".
o Function to calculate recombination fraction and LOD score for just
adjacent markers.
o geno.crosstab seems unnecessarily slow
o Function to get no. qtl in a QTL object; also no. interactions (via
the formula)
o Look at possible global options to see if any might interfere with
things.
o Saunak reported a problem in summary.scanone:
Some time in the last month, the summary.scanone
function does not work (for one data set) when I ask it for p-values
with pvalues=TRUE. It works fine when I don't ask for the p-values.
------------------------------------------
Error in calcPermPval(peaks, perms) :
NA/NaN/Inf in foreign function call (arg 4)
-------------------------------------------
o checkcovar gives messed up column numbers re
"Following phenotypes are not numeric"
o Column names in output of addpair summary (particularly regarding
the 6x15 and 7x15 scans in the hyper demo I did).
o in stepwiseqtl and refineqtl: include an argument that is the
distance between qtl (or number of markers between qtl) and somehow
prevent qtl from getting too close [to avoid artifacts]
o Bug in plot.scantwo: contours=TRUE gives warning:
In any(contours) : coercing argument of type 'double' to logical
Also: maybe change the color of the contour.
o max.scantwo could take a chr argument
o In sim.cross, do the qtl get sorted by genomic position? And then
do the qtlgeno need to be reordered back?
o Effect plot on X chromosome: be sure that males and females get
split properly.
o replacemap when you have calc.genoprob results but from step=0;
seems to give an error
o Revise calc.errorlod to do things in parallel (by chromosome or
individual? ... I'd guess in batches of individuals)
o Use format.pval in printing pvalues, so they're never strictly 0.
o In c.cross, include an argument for "flipping" a backcross, so that
a backcross to (AxB)xB can be combined with an intercross
o implement the "controlAcrossCol" argument within summary.scanone,
to calculate p-values?
o qtl x covar interactions in stepwiseqtl
o scantwo: ability to scan just specific chromosome pairs
o special treatment of X chromosome in scantwo permutations and in
stepwiseqtl
----------------------------------------------------------------------
MEDIUM-SHORT TERM:
o cim(): Haley-Knott-based approach to deal with missing genotypes at
marker covariates.
o cim(): rather than forward selection to a fixed number of markers,
do forward selection until either a marker is not significant or the
fixed maximum.
o get scanone and scantwo to work with a single marker on a
chromosome.
o function for getting x axis location in scantwo picture (like the
new xaxisloc.scanone)
o In mqmsetcofactors(), we might allow cofactors() to be marker names
rather than just marker indices.
o In the various MQM functions, pheno.col might be a phenotype name
rather than just numeric index. Also, it might be a vector of
phenotype values. (Both, as in scanone etc.)
o Better way to make use of ... in plot functions that allows
unmentioned defaults.
o method for having alternative genetic maps and for storing a
physical map; linear interpolation for plotting scanone output in
Mbp.
o make various functions work appropriately with class "special"
(eg, plot and summary)
o Fix convergence problems in scanone with method="ehk", especially
in the case of covariates and interactions.
o Plotting scanone results for *many* phenotypes as an image plot.
(Perhaps threshold the really high LODs and eliminate curves that
fail to meet a given threshold.)
o Allow plot.geno (or other cases in which subset.cross is used to
pull out individuals) to refer to individual IDs.
o Go through all of the various plot functions and make sure that
the x- and y-axis labels are created with axis() rather than
text() and segments(). This way, the size of the labels can be
modified with par(cex.axis)
o Finish off the work to get coefficient estimates by imputation in
fitqtl for the X chromosome in BC and F2.
o Revise c.cross so that you can combine crosses even if there are
different numbers of chromosomes
o 2 traits vs genotype at one QTL (with regression lines)
o Documentation on RI lines.
----------------------------------------------------------------------
MEDIUM TERM:
o eQTL-related stuff:
- Mb positions within cross object; multiple genetic maps
- Positions in phenotype object + other annotations
o For the stepwiseqtl function:
- should be able to save all models with plod within some value
of the best model
- QTL x covariate interactions in countterms
- it'd be nice to be able to have all models that are one term
away from the optimal model (maybe this could be a separate
function)
- it'd be nice to be able to easily make a plot of the final model
plus information about all models that are one term away
o Revise plot.rf so that it can have different color schemes, as in
plot.scantwo. Allow a zscale.
o Simpler methods to get at interesting bits in the est.rf results.
o cM coordinates in scantwo plot for multiple chromosomes: Fix
plot.scantwo for the case that incl.markers=TRUE, so that positions
are not equally spaced, but are according to the genetic map. (This
is working if just one chromosome is plotted, but should be made to
work generally.)
o scanone (or is it scantwo?) with method="hk": Major memory problems
in the permutations with multiple phenotypes.
o X chromosome for 4- and 8-way RIL by sibling mating (also 2-way RIL).
o pull all of the genoprob and imputation information out of
the qtl objects and replace it with indices to the information
in the cross object. (This stuff takes up too much space!)
o lodint/bayesint as option to summary.scanone.
o conditional LOD scores from scantwo output.
o scanqtl: if formula symmetric w/ respect to two QTL that are on the
same chromosome, only scan the triangle (rather than the square)
o write tools for converting the output from scanqtl() to the format
for scanone() or scantwo(), according to whether it's a 1-d or
2-d search, or print a warning otherwise.
o pairprob at markers + putative QTL? For linked loci in scanqtl by
HK/EM.
o Include Bjarke's code on eHK for scantwo.
o revise read.cross with format="mm" to deal with ril by selfing
and/or sib mating
o read.cross for "qtx" sometimes doesn't seem to take the
genotype pattern appropriately; read in a backcross as if it
were an F2.
o An NA in the mapmaker data file caused an error in read.cross;
the line became too long. Maybe this is true whenever an item
doesn't match what is expected.
o Speed up read.cross.mm; deliver meaningful errors if map/genotypes
don't match, and if too many genotypes in a row.
o scanone with additive alleles at QTL
o Pull out results for an interval from scanone.
o Add additional HMM functions for the X chr in RIL, as the marginal
genotype distribution is 2:1 rather than 1:1 and the transition
matrix is not symmetric Pr(BB|AA) = 2r/(1+4r) and Pr(AA|BB) =
4r/(1+4r)
o Add appropriate functions to analyze advanced intercrosses (AILs)
and advanced backcross (BCn).
o Allow phenotypes on multiple individuals (esp for recombinant inbred
lines).
----------------------------------------------------------------------
LONG TERM:
o covariates with 2part model in scanone
o X chromosome in cim().
o Analysis of censored phenotypes.
o Analysis of residuals.
o Imprinting/parent-of-origin effects.
o Treating a covariate as a random effect.
o Multiple phenotypes (esp. regarding pleiotropy).
o Take the fit of the null model outside of the C code for
the imputation method in scanone and scantwo, so that it
only has to be done once (rather than for each chr or chr pair).
o Generalized linear models in scanone and scantwo.
o Incorporate code from Brian Yandell, Fei Zou and Amy Jin on
semi-parametric QTL mapping methods.
o Analysis functions such as scanone and scantwo might assign an
attribute to their output which identifies the input data and/or
function call.
o Re-write the C code for EM underneath scanone and scantwo so that it
is not so tedious.
----------------------------------------------------------------------
end of TODO.txt
|