Skip to content

Commit

Permalink
fix trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Avenel authored and Christophe Avenel committed Nov 29, 2023
1 parent 09fa058 commit b2e3a74
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions modules/local/st_read_data.nf
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
//
// Read ST 10x visium and SC 10x data with Scanpy and save to `anndata` file
//
process ST_READ_DATA {

tag "${meta.id}"
label 'process_low'

conda "conda-forge::scanpy=1.7.2 conda-forge::matplotlib=3.6.3 conda-forge::pandas=1.5.3"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/scanpy:1.7.2--pyhdfd78af_0' :
'biocontainers/scanpy:1.7.2--pyhdfd78af_0' }"

input:
tuple val (meta), path("${meta.id}/*")

output:
tuple val(meta), path("st_adata_raw.h5ad"), emit: st_raw
path("versions.yml") , emit: versions

when:
task.ext.when == null || task.ext.when

script:
"""
mkdir "${meta.id}/spatial"
mv "${meta.id}/scalefactors_json.json" \\
"${meta.id}/tissue_hires_image.png" \\
"${meta.id}/tissue_lowres_image.png" \\
"${meta.id}/tissue_positions.csv" \\
"${meta.id}/spatial/"
read_st_data.py \\
--SRCountDir "${meta.id}" \\
--outAnnData st_adata_raw.h5ad
cat <<-END_VERSIONS > versions.yml
"${task.process}":
scanpy: \$(python -c "import scanpy; print(scanpy.__version__)")
END_VERSIONS
"""
}
//
// Read ST 10x visium and SC 10x data with Scanpy and save to `anndata` file
//
process ST_READ_DATA {

tag "${meta.id}"
label 'process_low'

conda "conda-forge::scanpy=1.7.2 conda-forge::matplotlib=3.6.3 conda-forge::pandas=1.5.3"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/scanpy:1.7.2--pyhdfd78af_0' :
'biocontainers/scanpy:1.7.2--pyhdfd78af_0' }"

input:
tuple val (meta), path("${meta.id}/*")

output:
tuple val(meta), path("st_adata_raw.h5ad"), emit: st_raw
path("versions.yml") , emit: versions

when:
task.ext.when == null || task.ext.when

script:
"""
mkdir "${meta.id}/spatial"
mv "${meta.id}/scalefactors_json.json" \\
"${meta.id}/tissue_hires_image.png" \\
"${meta.id}/tissue_lowres_image.png" \\
"${meta.id}/tissue_positions.csv" \\
"${meta.id}/spatial/"
read_st_data.py \\
--SRCountDir "${meta.id}" \\
--outAnnData st_adata_raw.h5ad
cat <<-END_VERSIONS > versions.yml
"${task.process}":
scanpy: \$(python -c "import scanpy; print(scanpy.__version__)")
END_VERSIONS
"""
}

0 comments on commit b2e3a74

Please sign in to comment.