Skip to content

Commit

Permalink
Merge branch 'feat/tcrdist' into 'master'
Browse files Browse the repository at this point in the history
Feat/tcrdist

Closes #11

See merge request icbi-lab/pipelines/singlecell_tcr!10
  • Loading branch information
grst committed Feb 28, 2020
2 parents 7bd277f + 419a21c commit 3c73cbb
Show file tree
Hide file tree
Showing 8 changed files with 614 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ requires = [
# pandas <1 until scanpy is fully compatible...
'pandas<1',
'numpy',
'parasail'
'parasail',
'scikit-learn'
]

[tool.flit.metadata.requires-extra]
Expand Down
9 changes: 9 additions & 0 deletions sctcrpy/_plotting/_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from . import _base as base
from typing import Union, List
from ._styling import _check_for_plotting_profile
import scanpy as sc


def alpha_diversity(
Expand Down Expand Up @@ -600,3 +601,11 @@ def group_abundance(
main_args = dict(dict(profile_args, **plot_router[viztype]["arg"]), **vizarg)
axl = plot_router[viztype]["f"](**main_args)
return axl


def umap_tra(adata: AnnData, **kwargs):
return sc.pl.embedding(adata, "X_umap_tra", **kwargs)


def umap_trb(adata: AnnData, **kwargs):
return sc.pl.embedding(adata, "X_umap_trb", **kwargs)
2 changes: 0 additions & 2 deletions sctcrpy/_preprocessing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import pandas as pd
from typing import Union, List
import numpy as np
from anndata import AnnData


Expand Down
1 change: 1 addition & 0 deletions sctcrpy/_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from ._tools import *
from ._tcr_dist import tcr_neighbors, tcr_umap
Loading

0 comments on commit 3c73cbb

Please sign in to comment.