Skip to content

Commit 88df105

Browse files
authored
Merge pull request #59 from adamklie/master
BUGFIX: TabixIterator does not have attribute .next(), added note in …
2 parents d63b9f7 + 3311b78 commit 88df105

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

ALLCools/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def merge_allc_register_subparser(subparser):
322322
"--output_path",
323323
type=str,
324324
required=True,
325-
help="Path to the output merged ALLC file.",
325+
help="Path to the output merged ALLC file (specify tsv.gz extension)",
326326
)
327327

328328
parser_req.add_argument("--chrom_size_path", type=str, required=True, help=chrom_size_path_doc)

ALLCools/_merge_allc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, path, region):
4040
self.f_region = TabixIterator()
4141

4242
def readline(self):
43-
return next(self.f_region)
43+
return self.f_region.__next__()
4444

4545
def close(self):
4646
self.f.close()

ALLCools/count_matrix/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _determine_datasets(regions, quantifiers, chrom_size_path, tmp_dir):
9494
"do not have index in its fourth column, adding it automatically. "
9595
"If this is not desired, add a fourth column containing UNIQUE IDs to the BED file.",
9696
)
97-
region_bed_df[name] = (f"{name}_{i}" for i in range(region_bed_df.shape[0]))
97+
region_bed_df[name] = [f"{name}_{i}" for i in range(region_bed_df.shape[0])]
9898
# check if name is unique()
9999
if region_bed_df.iloc[:, 3].duplicated().sum() > 0:
100100
raise ValueError(f"Region IDs in {region_path} (fourth column) are not unique.")

0 commit comments

Comments
 (0)