number_cutsites: Determining the number of cutsites

Description Usage Arguments Value Author(s) See Also Examples

Description

This function determines the total number of cutsites found in the genome by counting the number of cutsites from a list of cutsites made from previous function find_cuts. Output can serve as an input for functions.

Usage

1
number_cutsites(cutsite_list)

Arguments

cutsite_list

List containing the per-chromosome/scaffold cutsite position vectors. Argument is designed to be compatible with the output of the find_cuts function.

Value

Returns a single numeric value, the total number of cutsites in the provided genome.

Author(s)

Kira Long

See Also

find_cuts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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
# 

#Calculate number of cutsites in cutPos
nCuts <- number_cutsites(cutPos)

angelgr2/radseq_tools documentation built on May 15, 2019, 3:59 a.m.