Description Usage Arguments Value Author(s) See Also Examples
Function to calculate inter-cutsite distances. It uses R diff()
to calculate the difference between per-chromosome/scaffold cutsite positions vectors.
1 | cutsite_distance(cut_list)
|
cut_list |
List containing the per-chromosome/scaffold cutsite position vectors. Argument is designed to be compatible with the output of the |
Returns a numeric atomic vector of genome-wide inter-cutsite distances. It is compatible with R vector functions.
Angel G. Rivera-Colon
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Generate prior data
myfasta <- system.file("extdata",
"test_geno.fa.gz",
package = "RADseqTools")
mySeqs <- process_fasta(myfasta, 10000)
myEnz <- 'CTGCAG'
cutPos <- find_cuts(mySeqs, myEnz)
#
# For this function
#
# Find cutsite distance distribution in cutPos
cutDist <- cutsite_distance(cutPos)
# Object is compatible with R vector functions
# Obtain summary statistic for the cutsite distribution vector
summary(cutDist)
mean(cutDist)
sd(cutDist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.