Skip to content

Commit

Permalink
Bug fix in VCF2RADdata if no geno field specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvclark committed May 13, 2019
1 parent 4800792 commit f77b525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/data_import.R
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,8 @@ VCF2RADdata <- function(file, phaseSNPs = TRUE, tagsize = 80, refgenome = NULL,
VariantAnnotation::vcfFixed(svparam) <-
c(VariantAnnotation::vcfFixed(svparam), "ALT")
}
if(is.na(VariantAnnotation::vcfGeno(svparam))){
if(length(VariantAnnotation::vcfGeno(svparam)) > 0 &&
is.na(VariantAnnotation::vcfGeno(svparam)[1])){
stop("geno field must be provided in svparam.")
}
if(!identical(VariantAnnotation::vcfGeno(svparam), "AD")){
Expand Down

0 comments on commit f77b525

Please sign in to comment.