diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ad1d18d..1d2ff7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,8 +6,8 @@ default_stages: - pre-push minimum_pre_commit_version: 2.16.0 repos: - - repo: https://github.com/psf/black - rev: 25.1.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier @@ -15,11 +15,11 @@ repos: hooks: - id: prettier - repo: https://github.com/asottile/blacken-docs - rev: 1.19.1 + rev: 1.20.0 hooks: - id: blacken-docs - repo: https://github.com/PyCQA/isort - rev: 6.0.0 + rev: 7.0.0 hooks: - id: isort - repo: https://github.com/asottile/yesqa @@ -34,7 +34,7 @@ repos: - flake8-bugbear - flake8-blind-except - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: detect-private-key - id: check-ast @@ -53,7 +53,7 @@ repos: - --remove-unused-variable - --ignore-init-module-imports - repo: https://github.com/PyCQA/flake8 - rev: 7.1.2 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: @@ -64,7 +64,7 @@ repos: - flake8-bugbear - flake8-blind-except - repo: https://github.com/asottile/pyupgrade - rev: v3.19.1 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py3-plus, --py38-plus, --keep-runtime-typing] diff --git a/ALLCools/clustering/feature_selection/feature_enrichment.py b/ALLCools/clustering/feature_selection/feature_enrichment.py index e197dee..26e3833 100644 --- a/ALLCools/clustering/feature_selection/feature_enrichment.py +++ b/ALLCools/clustering/feature_selection/feature_enrichment.py @@ -241,7 +241,7 @@ def cluster_enriched_features( null_values = null_enrichment.iloc[row, :].sort_values() values = enrichment.iloc[row, :] pvals = 1 - np.searchsorted(null_values, values) / values.shape[0] - (_, q, _, _) = multipletests(pvals, alpha, method="fdr_bh") + _, q, _, _ = multipletests(pvals, alpha, method="fdr_bh") qvals[row, :] = q qvals = pd.DataFrame(qvals, index=enrichment.index, columns=enrichment.columns) diff --git a/ALLCools/plot/genome_track/GtfTrack.py b/ALLCools/plot/genome_track/GtfTrack.py index 4d9e6f6..ed27312 100644 --- a/ALLCools/plot/genome_track/GtfTrack.py +++ b/ALLCools/plot/genome_track/GtfTrack.py @@ -181,9 +181,7 @@ class GtfTrack(BedTrack): SUPPORTED_ENDINGS = ["gtf", "gtf.gz", "gtf.db"] TRACK_TYPE = "gtf" - OPTIONS_TXT = ( - GenomeTrack.OPTIONS_TXT - + f""" + OPTIONS_TXT = GenomeTrack.OPTIONS_TXT + f""" # By default the transcript_name is used. # If you want to use the gene_name: # prefered_name = gene_name @@ -255,7 +253,6 @@ class GtfTrack(BedTrack): # optional. If not given is guessed from the file ending. file_type = {TRACK_TYPE} """ - ) DEFAULTS_PROPERTIES = { "fontsize": 12,