Skip to content

Commit

Permalink
Add "X" and "Y" aliases for human and mouse defaults. See #1912
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Nov 6, 2024
1 parent ebc3dc6 commit 80fb505
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions js/genome/chromAliasDefaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,39 +71,69 @@ class ChromAliasDefaults {
switch (name) {
case "23":
record["ucsc"] = "chrX"
record["assembly"] = "X"
skipRest = true
break
case "24":
record["ucsc"] = "chrY"
record["assembly"] = "Y"
skipRest = true
break
case "chrX":
record["ncbi"] = "23"
record["assembly"] = "X"
skipRest = true
break
case "chrY":
record["ncbi"] = "24"
record["assembly"] = "y"
skipRest = true
break
case "X":
record["ucsc"] = "chrX"
record["ncbi"] = "23"
skipRest = true
break
case "Y":
record["ucsc"] = "chrY"
record["ncbi"] = "24"
skipRest = true
break

}
} else if (id.startsWith("mm") || id.startsWith("GRCm") || id.startsWith("rheMac")) {
switch (name) {
case "21":
record["ucsc"] = "chrX"
record["assembly"] = "X"
skipRest = true
break
case "22":
record["ucsc"] = "chrY"
record["assembly"] = "Y"
skipRest = true
break
case "chrX":
record["ncbi"] = "21"
record["assembly"] = "X"
skipRest = true
break
case "chrY":
record["ncbi"] = "22"
record["assembly"] = "Y"
skipRest = true
break
case "X":
record["ucsc"] = "chrX"
record["ncbi"] = "21"
skipRest = true
break
case "Y":
record["ucsc"] = "chrY"
record["ncbi"] = "22"
skipRest = true
break

}
}
if (skipRest) continue
Expand Down

0 comments on commit 80fb505

Please sign in to comment.