Skip to content

Commit

Permalink
Merge branch 'main' into fc_update_multivi
Browse files Browse the repository at this point in the history
  • Loading branch information
bio-la authored Jun 28, 2024
2 parents 5e7fb7a + 4b7d867 commit da5556e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 7 deletions.
18 changes: 18 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below:"
authors:
- family-names: "Curion"
given-names: "Fabiola"
orcid: "https://orcid.org/0000-0003-2502-8803"
- family-names: "Rich-Griffin"
given-names: "Charlotte"
orcid: "https://orcid.org/0000-0001-8212-9542"
- family-names: "Dendrou"
given-names: "Calliope"
orcid: "https://orcid.org/0000-0003-1179-4021"
title: "Panpipes: a pipeline for multiomic single-cell and spatial transcriptomic data analysis"
version: 1.0.0
doi: https://doi.org/10.5281/zenodo.11636539
date-released: 2024-06-13
url: "https://github.com/DendrouLab/panpipes"

10 changes: 7 additions & 3 deletions docs/yaml_docs/pipeline_integration_yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,22 @@ Specified by the following parameters:
- <span class="parameter">threads_high</span> `Integer`, Default: 1<br>
Number of threads used for high intensity computing tasks.
For each thread, there must be enough memory to load your MuData object which was created in the preprocessing step of
the workflow.
the workflow. In this workflow, all the integration, batch correction and dimensionality reduction tasks run with threads high

- <span class="parameter">threads_medium</span> `Integer`, Default: 1<br>
Number of threads used for medium intensity computing tasks.
For each thread, there must be enough memory to load your mudata and do computationally light tasks.
For each thread, there must be enough memory to load your mudata and do computationally light tasks. In this workflow, collating results after integration and scib metrics calculation run with threads_medium.


- <span class="parameter">threads_low</span> `Integer`, Default: 1<br>
Number of threads used for low intensity computing tasks.
For each thread, there must be enough memory to load text files and do plotting, requires much less memory than the other two.
For each thread, there must be enough memory to load text files and do plotting, requires much less memory than the other two.
In this workflow, plotting and lisi calculation run with threads_low

- <span class="parameter">threads_gpu</span> `Integer`, Default: 2<br>
Number of cores per gpu used for computing tasks.
For each thread, there must be enough memory to compute the tasks above.
In this workflow, if the gpu queues are defined below, `scvi` algorithms and `mofa` can run on gpu, otherwise `threads_high` argument is used

<span class="parameter">condaenv</span> `String`<br>
Path to conda environment that should be used to run panpipes.
Expand Down
3 changes: 3 additions & 0 deletions panpipes/panpipes/pipeline_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,9 @@ def run_scib_metrics(infile, outfile):
if PARAMS['scib_atac']:
cmd += " --atac_cell_type %(scib_atac)s"

job_kwargs["job_threads"] = PARAMS['resources_threads_medium']
log_msg = f"TASK: 'run_scib_metrics'" + f" IN CASE OF ERROR, PLEASE REFER TO : '{outfile}' FOR MORE INFORMATION."
get_logger().info(log_msg)
P.run(cmd, **job_kwargs)


Expand Down
10 changes: 7 additions & 3 deletions panpipes/panpipes/pipeline_integration/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@
# Compute resources options
#--------------------------
resources:
# all the uni/multimodal integrations and dimensionality reduction tasks run with threads high (CPU)
threads_high: 1
# collating results and scib metrics run with threads_medium (CPU)
threads_medium: 1
# plotting and lisi calculation run with threads_low (CPU)
threads_low: 1

# if the gpu queues are defined below, specify the gpu threads, otherwise threads_high argument (CPU) is used
threads_gpu: 2

condaenv:

queues:
long:
gpu:

condaenv:

# --------------------------------
# Loading and merging data options
# --------------------------------
Expand Down Expand Up @@ -136,6 +139,7 @@ atac:
# multimodal integration
# ----------------------
# remember to specify knn graph params in the section "neighbors"
# These processes will run with computational resources "high"
multimodal:
run: True
tools:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_1/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ multimodal:
n_epochs_kl_warmup : 50
#bool (default: True)
adversarial_mixing : False
#leave blank for default dict | None (default: None)
#leave blank for default dict | None (default: None)
training_plan :
mofa:
# this is a minimal set of parameters that will be expected
Expand Down

0 comments on commit da5556e

Please sign in to comment.