Learn R Programming

Fragman (version 1.0.1)

ladder.info.attach: Ladder detection and attachment to R environment

Description

This function uses the information stored by the storing.inds function and a vector specifying the ladder/standard and finds the real peaks corresponding to the expected weights. The user may use this function to be able to load the ladder information in the global environment of R, so when using the overview or score.easy functions calculations will be performed faster, if the function is not used the program will calculate the ladder information each time overview or score.easy functions are used.

Please! if using the confidence interval method ("ci"), which is NOT the default, once you have found the best parameters for the arguments to match your ladder using the detect.ladder function, please pass those values to all the posterior functions, such as the 'dev' argument.

Usage

ladder.info.attach(stored, ladder, channel.ladder=NULL, 
                  ci.upp=1.96, ci.low=1.96, dev=50, warn= FALSE, method="red", 
                  ladd.init.thresh=200, env = parent.frame(), prog=TRUE, draw=TRUE)

Arguments

stored
List with the channels information from the individuals specified, usually coming from the storing.inds function output.
ladder
Vector containing the expected weights of the dna fragments of the ladder in use.
channel.ladder
A scalar value indicating in which channel or color the ladder was read
ci.upp
A scalar value indicating how many standar errors will be used to detect peaks when checking the height of the ladder peaks(upper bound). To be used in the find.ladder function.
ci.low
A scalar value indicating how many standar errors will be used to detect peaks when checking the height of the ladder peaks(lower bound). To be used in the 'find.ladder' function
dev
A scalar value indicating the number of indexes to be used as peak separation when deciding the ladder peaks. Some ladders contain dna fragments of very closed weights and modifying this parameter helps to detect them correctly
warn
A TRUE/FALSE value indicating if warnings should be provided when detecting the ladder
method
An argument indicating one of the 2 methods available; "cor" makes all possible combination of peaks and searches exhaustive correlations to find the right peaks corresponsding to the expected DNA weights, or "ci" constructing confidence intervals to look
ladd.init.thresh
A value of intensity to detect peaks in the internal use of the find.ladder function. We recommend not to deal to much with it unless you identified special situations with your ladder
env
this is used to detect the environment of the user and load the result in the same environment.
prog
A TRUE/FALSE value indicating if a progress bar should be drawn while processing the samples in order to assess the time it takes to find the ladder. The dafault value is TRUE but usually this makes the process slower. Please feel free to set it equal FAL
draw
A TRUE/FALSE value indicating if a plot showing the peaks matched with your ladder should be drawn. The dafault value is FALSE to avoid extra delay. Please feel free to set it equal TRUE if you prefer to assess the sizing process.

Value

  • If parameters are indicated correctly the function returns: [object Object],[object Object],[object Object]

Details

The peaks are detected by default using a correlation method bu the user can use confidence intervals if desired.

References

We have spent valuable time developing this package, please cite it in your publication:

Covarrubias-Pazaran G, Diaz-Garcia L, Schlautman B, Salazar W, Zalapa J. (2015) Fragma: An R package for fragment analysis. R package version 1.0. URL https://cran.r-project.org/web/packages/Fragman/.

Robert J. Henry. 2013. Molecular Markers in Plants. Wiley-Blackwell. ISBN 978-0-470-95951-0.

Ben Hui Liu. 1998. Statistical Genomics. CRC Press LLC. ISBN 0-8493-3166-8.

Examples

Run this code
data(my.plants)
my.plants <- my.plants[1:2]
my.ladder <- c(120, 125, 129, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375)
ladder.info.attach(stored=my.plants, ladder=my.ladder)

Run the code above in your browser using DataLab