-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/exe 1732 update to pixelator 0.17.1 #90
Changes from all commits
70fe195
e7d1d58
99275c6
edab0dd
4a28425
07b0500
1d2fcde
bd29d2c
1db4263
ce90f8b
1e557b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,7 +168,7 @@ newly recovered components are stored in a file (components_recovered.csv). | |
- `pixelator` | ||
|
||
- `annotate` | ||
- `<sample-id>.dataset.pxl` | ||
- `<sample-id>.annotated.dataset.pxl` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. annotated -> annotate Let's use the stage name instead of a participle. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your right, it should be annotate. |
||
- `<sample-id>.meta.json`: Command invocation metadata. | ||
- `<sample-id>.rank_vs_size.png` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These PNG files are not produced AFAIK There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also true! |
||
- `<sample-id>.raw_components_metrics.csv` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are csv.gz instead There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! I will update all this things in an incoming PR. |
||
|
@@ -193,7 +193,7 @@ edgelist to find putative cells, and it will generate a pxl file containing the | |
|
||
- `analysis` | ||
|
||
- `<sample-id>.dataset.pxl`: PXL file with the analysis results added to it. | ||
- `<sample-id>.analysis.dataset.pxl`: PXL file with the analysis results added to it. | ||
- `<sample-id>.meta.json`: Command invocation metadata. | ||
- `<sample-id>.report.json`: Statistics for the analysis step. | ||
|
||
|
@@ -214,6 +214,30 @@ Currently, the following analysis are performed: | |
Each analysis can be disabled by using respectively `--compute_polarization false` or `--compute_colocalization false`. | ||
This entire step can also be skipped using the `--skip_analysis` option. | ||
|
||
### Compute layouts for visualization | ||
|
||
<details markdown="1"> | ||
<summary>Output files</summary> | ||
|
||
- `pixelator` | ||
|
||
- `layout` | ||
|
||
- `<sample-id>.layout.dataset.pxl`: PXL file with the layout results added to it. | ||
- `<sample-id>.meta.json`: Command invocation metadata. | ||
- `<sample-id>.report.json`: Statistics for the layout step. | ||
|
||
- `logs` | ||
- `<sample-id>.pixelator-layout.log`: pixelator log output. | ||
|
||
</details> | ||
|
||
This step uses the `pixelator single-cell layout` command. | ||
It will generate precomputed layouts that can be used to visualize cells | ||
as part of the downstream analysis. | ||
|
||
This entire step can also be skipped using the `--skip_layout` option. | ||
|
||
### Generate reports | ||
|
||
<details markdown="1"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
process PIXELATOR_LAYOUT { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
|
||
conda "bioconda::pixelator=0.17.1" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/pixelator:0.17.1--pyhdfd78af_0' : | ||
'biocontainers/pixelator:0.17.1--pyhdfd78af_0' }" | ||
|
||
input: | ||
tuple val(meta), path(data) | ||
|
||
output: | ||
tuple val(meta), path("layout/*dataset.pxl") , emit: dataset | ||
tuple val(meta), path("layout/*report.json") , emit: report_json | ||
tuple val(meta), path("layout/*.meta.json") , emit: metadata | ||
tuple val(meta), path("layout/*") , emit: all_results | ||
tuple val(meta), path("*pixelator-layout.log"), emit: log | ||
|
||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
|
||
prefix = task.ext.prefix ?: "${meta.id}" | ||
def args = task.ext.args ?: '' | ||
|
||
""" | ||
pixelator \\ | ||
--cores $task.cpus \\ | ||
--log-file ${prefix}.pixelator-layout.log \\ | ||
--verbose \\ | ||
single-cell \\ | ||
layout \\ | ||
--output . \\ | ||
$args \\ | ||
$data | ||
|
||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
pixelator: \$(echo \$(pixelator --version 2>/dev/null) | sed 's/pixelator, version //g' ) | ||
END_VERSIONS | ||
""" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the link is outdated on this, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good catch!