Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed default value of ignore_diags to auto instead of None in coverage #402

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions cooltools/api/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _get_chunk_coverage(chunk, pixel_weight_key="count"):

def coverage(
clr,
ignore_diags=None,
ignore_diags="auto",
chunksize=int(1e7),
map=map,
use_lock=False,
Expand Down Expand Up @@ -95,7 +95,7 @@ def coverage(
ignore_diags : int, optional
Drop elements occurring on the first ``ignore_diags`` diagonals of the
matrix (including the main diagonal).
If None, equals the number of diagonals ignored during IC balancing.
If auto, equals the number of diagonals ignored during IC balancing.
store : bool, optional
If True, store the results in the input cooler file when finished. If clr_weight_name=None,
also stores total cis counts in the cooler info. Default is False.
Expand All @@ -113,7 +113,7 @@ def coverage(
try:
ignore_diags = (
ignore_diags
if ignore_diags is not None
if ignore_diags != "auto"
else clr._load_attrs(clr.root.rstrip("/") + "/bins/weight")["ignore_diags"]
)
except:
Expand Down
2 changes: 0 additions & 2 deletions cooltools/cli/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
help="The number of diagonals to ignore. By default, equals"
" the number of diagonals ignored during IC balancing.",
type=int,
default=None,
show_default=True,
)
@click.option(
"--store",
Expand Down