2024-04-11 15:51:56 +02:00
package traits
// Hair color is influenced by thousands of genes
// We only have a few listed here
2024-07-19 19:16:28 +02:00
import "seekia/internal/helpers"
import "maps"
2024-04-11 15:51:56 +02:00
func getHairColorTraitObject ( ) Trait {
2024-07-19 19:16:28 +02:00
// Map Structure: rsID -> References Map
locusReferencesMap := make ( map [ int64 ] map [ string ] string )
referencesMap_List1 := make ( map [ string ] string )
referencesMap_List1 [ "SNPedia.com - Appearance" ] = "https://www.snpedia.com/index.php/Appearance"
referencesMap_List1 [ "Genome-wide association studies of pigmentation and skin cancer: a review and meta-analysis" ] = "https://pubmed.ncbi.nlm.nih.gov/20546537/"
lociList_1 := [ ] int64 {
2024-04-11 15:51:56 +02:00
//These loci were taken from https://pubmed.ncbi.nlm.nih.gov/20546537/
28777 ,
12203592 ,
1540771 ,
6918152 ,
35264875 ,
3829241 ,
12821256 ,
12896399 ,
7495174 ,
4778211 ,
7174027 ,
11855019 ,
1667394 ,
12913832 ,
7183877 ,
11636232 ,
8028689 ,
8039195 ,
1805007 ,
1805008 ,
}
2024-07-19 19:16:28 +02:00
for _ , rsID := range lociList_1 {
locusReferencesMap [ rsID ] = maps . Clone ( referencesMap_List1 )
}
hairColorLociList := helpers . GetListOfMapKeys ( locusReferencesMap )
2024-04-11 15:51:56 +02:00
referencesMap := make ( map [ string ] string )
referencesMap [ "SNPedia.com - Appearance" ] = "https://www.snpedia.com/index.php/Appearance"
referencesMap [ "Genome-wide association studies of pigmentation and skin cancer: a review and meta-analysis" ] = "https://pubmed.ncbi.nlm.nih.gov/20546537/"
hairColorObject := Trait {
TraitName : "Hair Color" ,
TraitDescription : "The color of a person's hair." ,
2024-07-19 19:16:28 +02:00
DiscreteOrNumeric : "Discrete" ,
LocusReferencesMap : locusReferencesMap ,
2024-04-11 15:51:56 +02:00
LociList : hairColorLociList ,
2024-07-19 19:16:28 +02:00
LociList_Rules : [ ] int64 { } ,
2024-04-11 15:51:56 +02:00
RulesList : [ ] TraitRule { } ,
OutcomesList : [ ] string { } ,
2024-07-19 19:16:28 +02:00
ReferencesMap : referencesMap ,
2024-04-11 15:51:56 +02:00
}
return hairColorObject
}