From db7110ff3754ce4ba2bf891b05d0962eaffbffe1 Mon Sep 17 00:00:00 2001
From: barillac <barillac>
Date: Mon, 29 Jun 2015 14:32:24 +0000
Subject: [PATCH] dynaimic property script for genotype property

SVN: 34304
---
 .../weismigration/1/compatibility/genotype.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 plasmid/source/core-plugins/weismigration/1/compatibility/genotype.py

diff --git a/plasmid/source/core-plugins/weismigration/1/compatibility/genotype.py b/plasmid/source/core-plugins/weismigration/1/compatibility/genotype.py
new file mode 100644
index 00000000000..b8e214a367e
--- /dev/null
+++ b/plasmid/source/core-plugins/weismigration/1/compatibility/genotype.py
@@ -0,0 +1,19 @@
+def calculateValue():
+    mat= entity.propertyValue('MAT')+":" 
+    
+    result1=entity.propertyValue('DISRUPTIONS_1')+"::" +entity.propertyValue('MARKERS_1')+" " +entity.propertyValue('UNMARKED_MUTATIONS_1') +" " 
+        
+    result2=entity.propertyValue('DISRUPTIONS_2')+"::" +entity.propertyValue('MARKERS_2')+" " +entity.propertyValue('UNMARKED_MUTATIONS_2') +" " 
+        
+    result3=entity.propertyValue('DISRUPTIONS_3')+"::" +entity.propertyValue('MARKERS_3')+" " +entity.propertyValue('UNMARKED_MUTATIONS_3') +" " 
+    
+    result4=entity.propertyValue('DISRUPTIONS_4')+"::" +entity.propertyValue('MARKERS_4')+" " +entity.propertyValue('UNMARKED_MUTATIONS_4') +" " 
+    
+    result5=entity.propertyValue('DISRUPTIONS_5')+"::" +entity.propertyValue('MARKERS_5')+" " +entity.propertyValue('UNMARKED_MUTATIONS_5') +" " 
+    
+    
+    result_tot= mat+result1+result2+result3+result4+result5
+    return result_tot
+
+def calculate():
+    return calculateValue()
-- 
GitLab