Skip to content

Commit 4408d65

Browse files
committed
Prevent error about unregistered method
1 parent 646655d commit 4408d65

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

R/classes_methods.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,14 +1940,11 @@ StripDown.RADdata <- function(object,
19401940
return(object)
19411941
}
19421942

1943-
# Function to find allele indices for nearby loci.
1943+
# Internal function to find allele indices for nearby loci.
19441944
# locus can be the number or name of the locus.
19451945
# distance is the distance in basepairs within which to search.
19461946
# allele indices (not locus indices) are returned
1947-
FindNearbyAlleles <- function(object, ...){
1948-
UseMethod("FindNearbyAlleles", object)
1949-
}
1950-
FindNearbyAlleles.RADdata <- function(object, locus, distance){
1947+
FindNearbyAlleles <- function(object, locus, distance){
19511948
if(!all(c("Chr", "Pos") %in% names(object$locTable))){
19521949
stop("Alignment data not present in RADdata object.")
19531950
}

0 commit comments

Comments
 (0)