Commits

Thomas Kluyver committed b5ef986

Add dictionaries for converting improvement status to/from MCPD sampstat codes.

Comments (0)

Files changed (1)

 locnre = re.compile(r'Collected in: (.+?)<')
 improvementre = re.compile(r'Improvement status: (.+?)\.')
 
+improve_status = {'100':"Wild",
+    '110':"Wild: Natural",
+    '120':"Semi-natural/wild",
+    '200':"Weedy",
+    '300':"Landrace",
+    '400':"Breeding/research material",
+    '410':"Breeder's line",
+    '411':"Synthetic population",
+    '412':"Hybrid (breeding/research material)",
+    '413':"Founder stock/base population",
+    '414':"Inbred line (parent of hybrid cultivar)",
+    '415':"Segregating population (breeding/research material)",
+    '420':"Mutant/genetic stock",
+    '500':"Advanced/improved cultivar",
+    '999':"(Other)"}
+improve_status_code = dict((v, k) for k, v in improve_status.items())
+
 def get_by_PI(PIcode):
 	"""Returns basic details of an accession, by searching for its PI number or 
 	equivalent code"""