Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@

# This uses the trusted publisher workflow so no token is required.
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:

- name: Test with tox
run: |
tox
tox
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: '^docs/conf.py'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
Expand Down Expand Up @@ -33,7 +33,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.6
rev: v0.14.8
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ dataset = garr.build_genomicarray(
```

> [!NOTE]
> - The aggregate function is expected to return either a scalar value or a 1-dimensional NumPy ndarray. If the later, users need to specify the expected dimension of the return array. e.g.
> - The aggregate function is expected to return either a scalar value or a 1-dimensional NumPy ndarray. If the later, users need to specify the expected dimension of the return array. e.g.
> ```python
> feature_annotation_options=garr.FeatureAnnotationOptions(
> aggregate_function = my_custom_func,
Expand Down
2 changes: 1 addition & 1 deletion assets/genarr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/genomicarrays/GenomicArrayDatasetSlice.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
from dataclasses import dataclass
from typing import Any

import anndata
import genomicranges as gr
import pandas as pd
import summarizedexperiment as se

__author__ = "Jayaram Kancherla"
__copyright__ = "Jayaram Kancherla"
Expand Down
4 changes: 3 additions & 1 deletion src/genomicarrays/build_genomicarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,4 +315,6 @@ def _write_intervals_to_tiledb(outpath, intervals, bwpath, bwidx, agg_func, tota
def _wrapper_extract_bwinfo(args):
"""Wrapper for multiprocessing multiple files and intervals."""
counts_uri, input_intervals, bwpath, idx, agg_func, total_length, outsize_per_feature = args
return _write_intervals_to_tiledb(counts_uri, input_intervals, bwpath, idx, agg_func, total_length, outsize_per_feature)
return _write_intervals_to_tiledb(
counts_uri, input_intervals, bwpath, idx, agg_func, total_length, outsize_per_feature
)
2 changes: 1 addition & 1 deletion src/genomicarrays/build_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class FeatureAnnotationOptions:
interval. The aggregate function is expected to
return either a scalar value or a 1-dimensional
NumPy `ndarray`.

Defaults to None.

expected_agg_function_length:
Expand Down
2 changes: 1 addition & 1 deletion tests/agg_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

def aggfunc(x):
print(x)
return np.array([np.nanmin(x), np.nansum(x)])
return np.array([np.nanmin(x), np.nansum(x)])
2 changes: 1 addition & 1 deletion tests/test_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ def test_ingest_bigwigs_agg_not_scalar():

sfp = tiledb.open(f"{tempdir}/sample_metadata", "r")
samples = sfp.df[:]
assert len(samples) == 2
assert len(samples) == 2
Loading