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

Add batch correction methods, Scanpy 1.6-specific things #86

Merged
merged 32 commits into from
Aug 23, 2020
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
83adae3
Correct scatter function usage and normalisation step
pinin4fjords Aug 4, 2020
c3f4d64
Relax most pins
pinin4fjords Aug 4, 2020
38701f1
Add some missing options
pinin4fjords Aug 5, 2020
10171a5
Add method argument for umap
pinin4fjords Aug 5, 2020
f4a0b6b
Fix fdg call to use scanpy-native functionality for slot specification
pinin4fjords Aug 5, 2020
155e356
Use Scanpy-native option for graph specification in umap, move associ…
pinin4fjords Aug 6, 2020
a36a7e5
Remove legacy snippet
pinin4fjords Aug 6, 2020
45f75c0
Switch louvain to native neighors_key/ obsp for slot selection
pinin4fjords Aug 6, 2020
5f05115
Switch leiden to native neighors_key/ obsp for slot selection, remove…
pinin4fjords Aug 6, 2020
feabc73
Add layer specification to rank_genes_groups call
pinin4fjords Aug 6, 2020
8a34634
Updata paga call to allow RNA velocity, use Scanpy-native graph slot …
pinin4fjords Aug 6, 2020
a161abf
Set diffmap, dpt to use neighbors_key, add other missing option.
pinin4fjords Aug 7, 2020
129483b
Fixes for embeddings, plot_paga to use new sc.pl.embeddings.
pinin4fjords Aug 10, 2020
1d2ee55
Fix plotting test params
pinin4fjords Aug 10, 2020
50a4ea5
Merge branch 'develop' into feature/update_for_1.5.1
pinin4fjords Aug 10, 2020
4b738de
Some plot files now have underscores
pinin4fjords Aug 10, 2020
85826e0
Add wrapper for harmony_integrate
pinin4fjords Aug 11, 2020
bbe1f52
Add bbknn CLI layer
pinin4fjords Aug 11, 2020
8e6e860
Add batch correction methods to dependencies for testing
pinin4fjords Aug 11, 2020
2a564e7
Add more harmonypy options
pinin4fjords Aug 11, 2020
0faa369
Added MNN batch correction
pinin4fjords Aug 13, 2020
4fb0b96
add mnnpy to deps
pinin4fjords Aug 13, 2020
924a745
Minor fixes, add ComBat, unify args
pinin4fjords Aug 14, 2020
79ad11c
Set batch handling to scanpy-native method for hvg, to properly respo…
pinin4fjords Aug 14, 2020
8dde170
Add new rank_genes_groups options
pinin4fjords Aug 14, 2020
494ff24
Bump Scanpy
pinin4fjords Aug 18, 2020
d50cb62
Whoops- forgot to add the combat file
pinin4fjords Aug 18, 2020
83d07f3
Merge branch 'develop' into feature/update_for_1.5.2
pinin4fjords Aug 18, 2020
c414693
Add help text with integration methods
pinin4fjords Aug 18, 2020
c37a378
Merge branch 'feature/update_for_1.5.2' of github.com:ebi-gene-expres…
pinin4fjords Aug 18, 2020
987d655
Simplify commands
pinin4fjords Aug 23, 2020
dc613d9
Finish: simplify commands
pinin4fjords Aug 23, 2020
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
Prev Previous commit
Next Next commit
Add some missing options
pinin4fjords committed Aug 5, 2020
commit 38701f1799dfcb03fa7a38050faaa29fa2627e57
2 changes: 1 addition & 1 deletion scanpy-scripts-tests.bats
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ setup() {
pca_embed="${output_dir}/pca.tsv"
pca_opt="--n-comps 50 -V auto --show-obj stdout -E ${pca_embed}"
pca_obj="${output_dir}/pca.h5ad"
neighbor_opt="-k 5,10,20 -n 25 -m umap --show-obj stdout"
neighbor_opt="-k 5,10,20 -n 25 -m umap -t euclidean --show-obj stdout"
neighbor_obj="${output_dir}/neighbor.h5ad"
tsne_embed="${output_dir}/tsne.tsv"
tsne_opt="-n 25 --use-rep X_pca --learning-rate 200 -E ${tsne_embed}"
18 changes: 16 additions & 2 deletions scanpy_scripts/cmd_options.py
Original file line number Diff line number Diff line change
@@ -700,6 +700,12 @@
help='When specified, clip to this value after scaling, otherwise do '
'not clip',
),
click.option(
'--layer', '-l',
type=CommaSeparatedText(simplify=True),
default=None,
help="If provided, which element of layers to scale."
),
],

'regress': [
@@ -788,11 +794,19 @@
),
click.option(
'--method', '-m',
type=click.Choice(['umap', 'gauss']),
type=click.Choice(['umap', 'gauss', 'rapids']),
default='umap',
show_default=True,
help='Use umap or gauss with adaptive width for computing '
'connectivities.'
'connectivities. Use rapids for the RAPIDS implementation of UMAP '
'(experimental, GPU only).'
),
click.option(
'--metric', '-t',
type=click.Choice(['cityblock', 'cosine', 'euclidean', 'l1', 'l2', 'manhattan', 'braycurtis', 'canberra', 'chebyshev', 'correlation', 'dice', 'hamming', 'jaccard', 'kulsinski', 'mahalanobis', 'minkowski', 'rogerstanimoto', 'russellrao', 'seuclidean', 'sokalmichener', 'sokalsneath', 'sqeuclidean', 'yule']),
default='euclidean',
show_default=True,
help='A known metric’s name.'
),
],