Giter VIP home page Giter VIP logo

Comments (3)

kbroman avatar kbroman commented on September 2, 2024

Do you have an example that demonstrates this? Because it seems to be using it appropriately.

Consider this example:

library(qtl)
data(hyper)
hyper <- calc.genoprob(hyper[1:2,])
hyper$pheno[,3] <- sqrt(hyper$pheno[,1])

set.seed(10347067)
out1 <- scantwopermhk(hyper, pheno.col=1, n.perm=3)
set.seed(10347067)
out3 <- scantwopermhk(hyper, pheno.col=3, n.perm=3)
set.seed(10347067)
out1b <- scantwopermhk(hyper, pheno.col=1, n.perm=3)

all(unlist(out1) == unlist(out1b))
all(unlist(out1) != unlist(out3))

from qtl.

Wang-RJ avatar Wang-RJ commented on September 2, 2024

Apologies for a less elegant example, but:

library(qtl)
load("goughF2_simple_v4.RData")

reduced_f2 <- calc.genoprob(f2, step = 1, error.prob = 0.0002, map.function = 'c-f')
reduced_f2 <- reduce2grid(reduced_f2)
reduced_f2 <- subset(reduced_f2, ind = reduced_f2$pheno$sex == "M")

nrow(reduced_f2$pheno)

out1 <- scantwopermhk(reduced_f2, pheno.col = 'wk5', assumeCondIndep = TRUE, n.perm = 1)
out2 <- scantwopermhk(reduced_f2, pheno.col = 2, assumeCondIndep = TRUE, n.perm = 1)

summary(out1);summary(out2)

wk1 (1 permutations)
full fv1 int add av1 one
5% 7.7 5.83 5.05 5.18 3.9 2.35
10% 7.7 5.83 5.05 5.18 3.9 2.35
wk1 (1 permutations)
full fv1 int add av1 one
5% 8.69 7.6 5.58 5.09 2.61 2.76
10% 8.69 7.6 5.58 5.09 2.61 2.76

from qtl.

kbroman avatar kbroman commented on September 2, 2024

Ah; it's a problem in the pasting over of the appropriate column name. Got it fixed in the devel branch.

from qtl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.