|
|
@@ -4,3 +4,13 @@ def format:
|
|
|
|
|
|
def n_alt_in_constit:
|
|
|
(.annotations | map(select(.ConstitAlt != null).ConstitAlt) // [0] | .[0]);
|
|
|
+
|
|
|
+def contig_to_num(contig):
|
|
|
+ if contig == "chrX" then 23
|
|
|
+ elif contig == "chrY" then 24
|
|
|
+ elif contig == "chrM" then 25
|
|
|
+ else (contig | ltrimstr("chr") | tonumber // 255) end;
|
|
|
+
|
|
|
+def contig(contig_str):
|
|
|
+ .position.contig == contig_to_num(contig_str);
|
|
|
+
|