Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Milk committed Dec 5, 2020
1 parent 7cfc454 commit 73b9d7b
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 182 deletions.
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

![Build](https://github.com/Mr-Milk/neighborhood_analysis/workflows/Build/badge.svg) ![pypi](https://badgen.net/pypi/v/neighborhood_analysis)

A python version of neighborhood analysis, purposed in [histocat](https://www.nature.com/articles/nmeth.4391). The analysis is
to profile cell-cell interaction.
A python implementation of neighborhood analysis to profile cell-cell interaction using permutation test.

The safe parallelism has been implemented, so no need to do multiprocessing yourself.

(This is my first rust project, suggestions are welcomed.)
The parallelism has been implemented, so no need to do multi-processing yourself.

## Installation

The wheels are built for Windows, MacOS, Linux in 64bit, and Python version 3.5, 3.6, 3.7, 3.8, 3.9
Prebuild wheels for: Windwos, MacOS and Linux in 64bit, on Python version 3.5, 3.6, 3.7, 3.8, 3.9

Requirements: Python >= 3.5

Expand All @@ -23,7 +20,7 @@ Normally, there should be a compatible wheel for your system. Just run:
pip install neighborhood_analysis
```

If not, it will try to compile from source, you need to install dependencies.
If not, it will try to compile from a source, you need to install dependencies.

```shell script
# for windows
Expand Down Expand Up @@ -76,7 +73,9 @@ z_score = comb_bootstrap(X, Y, neighbors, ignore_self=True)

## Documentation

### Neighborhood_analysis
<details>
<summary>Neighborhood analysis</summary>

```python
class CellCombs:

Expand Down Expand Up @@ -111,8 +110,11 @@ class CellCombs:
List of tuples, eg.(('a', 'b'), 1.0), the type a and type b has a relationship as association
"""
```
</details>

### Neighbors search utility functions

<details>
<summary>Neighbors search utility functions</summary>

```python
def get_bbox(points_collections):
Expand Down Expand Up @@ -157,3 +159,6 @@ def get_bbox_neighbors(bbox_list, expand=1.0, scale=1.0):
"""
```

</details>

<br><br>
Loading

0 comments on commit 73b9d7b

Please sign in to comment.