@@ -33,7 +33,7 @@ def create_genotype_call_dataset(
33
33
The (index of the) contig for each variant.
34
34
variant_position : array_like, int
35
35
The reference position of the variant.
36
- variant_alleles : array_like, zero-terminated bytes, e.g. "S1"
36
+ variant_alleles : array_like, zero-terminated bytes, e.g. "S1", or object
37
37
The possible alleles for the variant.
38
38
sample_id : array_like, str
39
39
The unique identifier of the sample.
@@ -55,7 +55,7 @@ def create_genotype_call_dataset(
55
55
"""
56
56
check_array_like (variant_contig , kind = "i" , ndim = 1 )
57
57
check_array_like (variant_position , kind = "i" , ndim = 1 )
58
- check_array_like (variant_alleles , kind = "S" , ndim = 2 )
58
+ check_array_like (variant_alleles , kind = { "S" , "O" } , ndim = 2 )
59
59
check_array_like (sample_id , kind = "U" , ndim = 1 )
60
60
check_array_like (call_genotype , kind = "i" , ndim = 3 )
61
61
data_vars : Dict [Hashable , Any ] = {
@@ -102,7 +102,7 @@ def create_genotype_dosage_dataset(
102
102
The (index of the) contig for each variant.
103
103
variant_position : array_like, int
104
104
The reference position of the variant.
105
- variant_alleles : array_like, S1
105
+ variant_alleles : array_like, zero-terminated bytes, e.g. "S1", or object
106
106
The possible alleles for the variant.
107
107
sample_id : array_like, str
108
108
The unique identifier of the sample.
@@ -120,7 +120,7 @@ def create_genotype_dosage_dataset(
120
120
"""
121
121
check_array_like (variant_contig , kind = "i" , ndim = 1 )
122
122
check_array_like (variant_position , kind = "i" , ndim = 1 )
123
- check_array_like (variant_alleles , kind = "S" , ndim = 2 )
123
+ check_array_like (variant_alleles , kind = { "S" , "O" } , ndim = 2 )
124
124
check_array_like (sample_id , kind = "U" , ndim = 1 )
125
125
check_array_like (call_dosage , kind = "f" , ndim = 2 )
126
126
data_vars : Dict [Hashable , Any ] = {
0 commit comments