Package: r-other-mott-happy / 2.4-3

happyMatrices.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Charles Plessy
Last-Update: 2013-06-30 02:09:29
Description: Fix some compatibility issues

Index: r-other-mott-happy-2.3/R/happy.R
===================================================================
--- r-other-mott-happy-2.3.orig/R/happy.R
+++ r-other-mott-happy-2.3/R/happy.R
@@ -91,10 +91,12 @@
       for( m in h$markers) {
         add <- hdesign( h, m, model='additive' )
         full <- hdesign( h, m, model='full' )
-	if ( h$use.pedigrees || h$phase.known )
+	if ( (!is.null(h$use.pedigrees)&&h$use.pedigrees) || (!is.null(h$phase.known)&&h$phase.known) ) {
 	 full.asymmetric <- hdesign( h, m, model="full.asymmetric")
-	else
+        }
+	else {
 	 full.asymmetric <- NULL 
+        }
         id <- m
         matrices[[m]] <- list( id=id, additive=add, full=full, full.asymmetric=full.asymmetric )
       }