Skip to content

Commit 095e1b7

Browse files
committed
Lint
1 parent a3b8aae commit 095e1b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bio2zarr/plink.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ def iter_alleles(self, start, stop, num_alleles):
3333
yield alleles
3434

3535
def iter_field(self, field_name, shape, start, stop):
36-
assert field_name == "position" # Only position field is supported from plink
36+
assert field_name == "position" # Only position field is supported from plink
3737
yield from self.bed.bp_position[start:stop]
3838

3939
def iter_genotypes(self, shape, start, stop):
4040
bed_chunk = self.bed.read(slice(start, stop), dtype=np.int8).T
4141
gt = np.zeros(shape, dtype=np.int8)
4242
phased = np.zeros(shape[:-1], dtype=bool)
4343
for values in bed_chunk:
44-
gt[:]= 0
44+
gt[:] = 0
4545
gt[values == -127] = -1
4646
gt[values == 2] = 1
4747
gt[values == 1, 0] = 1

0 commit comments

Comments
 (0)