Can we do single marker analysis with R/qtl?
Please suggest the functions and scripts.
Kind regards,
Are the codes and sample data file available for single marker analysis?
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
For more options, visit https://groups.google.com/d/optout.
out.hr <- scanone(sug, pheno.col=2:10, method="hk”)
Dear Dr. Karl,
Here is a sample file with two traits (trait1 and trait2) and three markers (marker1, marker2 and marker3).Can you please provide me the codes for single marker analysis (trait1~marker1, trait1~marker2, trait1~marker3, trait2~marker1, trait2~marker2 and trait2~marker3)?Kind regards,
Dear Dr. Broman,
Can I expect an improvement in R/qtl for
1. Better quality of the figure for genetic map
2. Exporting the map order of the markers on the chromosome to a csv or txt file.
Bhat
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Can I expect an improvement in R/qtl for1. Better quality of the figure for genetic map
2. Exporting the map order of the markers on the chromosome to a csv or txt file.
data(mapthis)
map <- pull.map(mapthis, chr=5)
map_as_table <- map2table(map)
write.csv(map_as_table, "map.csv")
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
For more options, visit https://groups.google.com/d/optout.
Dear Karl,
I have the following questions.
1. Does "summary(rip5lik)” show only the best order?
LOD chrlen
Initial 1 2 3 4 5 6 7 8 9 0.0 38.2
1 1 2 3 4 5 6 7 9 8 0.1 38.4
2. How to get the list of unmapped markers?
3. If window is equal to the number of markers on the chromosome, how to indicate in the following script
rip5 <- ripple(mapthis, chr=5, window=7)
4. Reduced assumed genotyping error rate lead to increased map length: Is it always so, why?
5. Can I see all the orders in
summary(rip5)
obligXO
Initial 1 2 3 4 5 6 7 8 9 215
1 1 2 3 4 5 6 7 9 8 216
2 1 2 3 4 6 5 7 8 9 217
6. Can I see a particular order (say order number 101), and is the order 1 the best among the 18000 in terms of obligXO inrip4 <- ripple(mapthis, chr=4, window=7) 18000 total orders > summary(rip4) obligXO Initial 1 2 3 4 5 6 7 8 9 10 326 1 1 2 3 4 5 6 7 8 10 9 326Bhat
plot.pxg(hyper, "D4Mit214")
plot.pxg(hyper, "D12Mit20")
<Map construction.docx>
1. Does "summary(rip5lik)” show only the best order? LOD chrlen Initial 1 2 3 4 5 6 7 8 9 0.0 38.2 1 1 2 3 4 5 6 7 9 8 0.1 38.4
2. How to get the list of unmapped markers?
3. If window is equal to the number of markers on the chromosome, how to indicate in the following script
rip5 <- ripple(mapthis, chr=5, window=7)
4. Reduced assumed genotyping error rate lead to increased map length: Is it always so, why?
5. Can I see all the orders in
summary(rip5)
obligXO Initial 1 2 3 4 5 6 7 8 9 215 1 1 2 3 4 5 6 7 9 8 216 2 1 2 3 4 6 5 7 8 9 217
6. Can I see a particular order (say order number 101), and is the order 1 the best among the 18000 in terms of obligXO inrip4 <- ripple(mapthis, chr=4, window=7) 18000 total orders > summary(rip4) obligXO Initial 1 2 3 4 5 6 7 8 9 10 326 1 1 2 3 4 5 6 7 8 10 9 326
How to get the list of unmapped markers?
I’m not sure what you mean.
If there are 100 markers for mapping, say only 90 are mapped on the chromosomes. We say 10 are unmapped. Ex; C5M2 not mapped on chr 5 in “Mapthis”. Can we get a list of makers which are not mapped on any of the chromosomes?
If window is equal to the number of markers on the chromosome, how to indicate in the following script
rip5 <- ripple(mapthis, chr=5, window=7)
I’m not sure what you mean.
I do not want a window size of 7, instead I want all the markers on chr 5 for ripple. What change is to be made in the above script? Why do we fix a window size?
Bhat
How to get the list of unmapped markers?
I’m not sure what you mean.
If there are 100 markers for mapping, say only 90 are mapped on the chromosomes. We say 10 are unmapped. Ex; C5M2 not mapped on chr 5 in “Mapthis”. Can we get a list of makers which are not mapped on any of the chromosomes?
If window is equal to the number of markers on the chromosome, how to indicate in the following script
rip5 <- ripple(mapthis, chr=5, window=7)
I’m not sure what you mean.
I do not want a window size of 7, instead I want all the markers on chr 5 for ripple. What change is to be made in the above script? Why do we fix a window size?
--
You received this message because you are subscribed to a topic in the Google Groups "R/qtl discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rqtl-disc/ZPwcHhO0T6Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rqtl-disc+...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
library(qtl)
hyper<-read.cross("csv", file="hyperm.csv", crosstype="bc", genotypes=c(“AA”,”BB”, "AB"))
par(mfrow=c(1,2))
plotPXG(hyper, "D4Mit214")
plotPXG(hyper, "D12Mit20")
out.mr <- scanone(hyper, method="mr")
summary(out.mr, threshold=3)
max(out.mr)
plot(out.mr, chr=c(4, 12), ylab="LOD score")
But I get the following errors
summary(out.mr, threshold=3)
There were no LOD peaks above the threshold.
max(out.mr)
There were no LOD peaks above the threshold.
Kindly help me.
mapthis <- subset(mapthis, ind=(ntyped(mapthis)>50))
todrop <- names(nt.bymar[nt.bymar < 200])
hist(cg[lower.tri(cg)], breaks=seq(0, 1, len=101), xlab="No. matching genotypes")
plot(dropone, lod=1, ylim=c(-100,0))
mapthis <- subset(mapthis, ind=(countXO(mapthis) < 50))
Should I change for my data?
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
For more options, visit https://groups.google.com/d/optout.
The manual says “By default in scanone, we consider the first phenotype in the input cross object. Other phenotypes, include the parallel consideration of multiple phenotypes, can be considered via the argument pheno.col.”
If my input file has phenotypes in the first 10 columns, can I go directly for
out.all <- scanone(sug, pheno.col=1:10, method="hk")
instead of
out.em <- scanone(sug)
plot(sug)
gives the following plots in a single Quartz window, likelibrary(qtl)
sug <- read.cross("csv", "http://www.rqtl.org", "sug.csv",
genotypes=c("CC", "CB", "BB"), alleles=c("C", "B"))
sug <- calc.genoprob(sug, step=1)
out.all <- scanone(sug, pheno.col=1:4, method="hk")
summary(out.all, threshold=3, format="tabByCol")
summary(out.all, threshold=3, format="tabByChr”)
But I do not know whether it is the right way or not! Kindly suggest.
Begin forwarded message:
2. This is relating to the phenotypic
variance explained by the QTL (heritability due to QTL) (page # 122 in your
book).
Can I know the code for calculating the phenotypic variance explained
(heritability) for all the QTL with LOD more than a set value, say 3?
The relationship between the LOD score and the percent variance explained is
shown in the last full paragraph on page 77.
h^2 = 1 - 10^{- 2 LOD / n}
You can use that to determine the heritability that would correspond to LOD =
3.
This means, for a population of n samples, two or more QTL with same LOD will have same PVE/estimated heritability. Am I correct?
Can that happen?
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
For more options, visit https://groups.google.com/d/optout.
Can we get the result shown below as the csv file (attached) with single digits of map distance?
<image.png>
On Fri, Apr 19, 2019 at 9:53 PM Karl Broman <kbr...@gmail.com> wrote:
> On Apr 18, 2019, at 11:24 PM, Ramesh Bhat wrote:
>
> So, we can calculate LOD using F statistic, and we can calculate estimated heritability (PVE) using LOD.
yes
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
For more options, visit https://groups.google.com/d/optout.
----Ramesh S. BhatProfessor and Head
Department of Biotechnology
University of Agricultural Sciences, Dharwad
PIN: 580 005, Dharwad, Karnataka, India
Ph: +91-836-2214457, Mobile: +91-9945667300
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To post to this group, send email to rqtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rqtl-disc.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqtl-disc/CAK9gDVUEk3q8jsc0qbZ%3DKjwSPK5cjppAsVjDuTLi3PdjDELbFQ%40mail.gmail.com.
<Map.csv>
To view this discussion on the web visit https://groups.google.com/d/msgid/rqtl-disc/A8EE0AEE-849F-4E30-8EB4-E139B5D27A6F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqtl-disc/CAK9gDVVDA8Jritw%3DMfDJNF_bKNmATDLVsW8MvAuEEiFw_xsTGg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqtl-disc/96397CD8-C5D2-41A0-92B4-6F57E1C945FE%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqtl-disc/CAK9gDVWta5CkA86ndX2ZUiEiNPOs7DNP0eC989ysfLHtELE_Rg%40mail.gmail.com.
write.csv(map, "Nmap.csv")
But got the following error
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) : cannot coerce class ‘"map"’ to a data.frame
If the chromosome number and the map positions can directly go to two rows of a csv file (file attached in my first email today), we save a lot of time.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqtl-disc/6A613372-234A-420D-9013-70044B6747AE%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
The following codes detect the regions with LOD 4.04.
sug <- calc.genoprob(sug, step=1)
out.all <- scanone(sug, pheno.col=1:4, method="hk")
summary(out.all, threshold=3, format="tabByCol")
lls2:
chr pos ci.low ci.high lod
c3.loc15 3 15 3 36 4.04
But the following codes fail to detect the regions with LOD ore than 3
out.all <- scanone(sug, pheno.col=1:4, method="hk")
summary(out.all, threshold=3)
There were no LOD peaks above the threshold.
Why is it so?
To view this discussion on the web visit https://groups.google.com/d/msgid/rqtl-disc/6A613372-234A-420D-9013-70044B6747AE%40gmail.com.
For more options, visit https://groups.google.com/d/optout.