Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #109 from vib-singlecell-nf/develop
Browse files Browse the repository at this point in the history
Develop

Former-commit-id: 8c863a4
  • Loading branch information
cflerin authored Jan 31, 2020
2 parents bd02810 + 5c98b5f commit dec40bd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ tenx {
-profiles h5ad
```

In the generated .config file, make sur the `file_paths` parameter is set with the paths to the `.h5ad` files:
In the generated .config file, make sure the `file_paths` parameter is set with the paths to the `.h5ad` files:
```
[...]
h5ad {
Expand All @@ -352,10 +352,12 @@ h5ad {
}
[...]
```
- The `suffix` parameter is used to infer the sample name from the file paths.
- The `suffix` parameter is used to infer the sample name from the file paths (it is removed from the input file path to derive a sample name).
- The `file_paths` accepts glob patterns and also comma separated paths.
Make sure that `sc.file_converter.iff` is set to `h5ad`.

Currently H5AD input is only implemented in the `h5ad_single_sample` entry point.

## Select the optimal number of principal components

When generating the config using `nextflow config` (see above), add the `pcacv` profile.
Expand Down
11 changes: 6 additions & 5 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ manifest {
name = 'vib-singlecell-nf/vsn-pipelines'
description = 'A repository of pipelines for single-cell data in Nextflow DSL2'
homePage = 'https://github.com/vib-singlecell-nf/vsn-pipelines'
version = '0.8.1'
version = '0.8.2'
mainScript = 'main.nf'
defaultBranch = 'master'
nextflowVersion = '!19.12.0-edge' // with ! prefix, stop execution if current version does not match required version.
Expand All @@ -30,6 +30,11 @@ process {
}
}


includeConfig 'src/utils/conf/scope.config'
includeConfig 'src/utils/utils.config' // utilities config
includeConfig 'conf/generic.config'

profiles {

standard {
Expand Down Expand Up @@ -175,10 +180,6 @@ profiles {

}

includeConfig 'src/utils/conf/scope.config'
includeConfig 'src/utils/utils.config' // utilities config
includeConfig 'conf/generic.config'


timeline {
enabled = true
Expand Down
7 changes: 6 additions & 1 deletion src/channels/conf/h5ad.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ params {
data {
h5ad {
file_paths = ''
suffix = ''
suffix = '.h5ad'
}
}
sc {
file_converter {
iff = 'h5ad'
}
}
}
4 changes: 2 additions & 2 deletions src/utils/processes/h5adToLoom.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process SC__H5AD_TO_LOOM {

container params.sc.scanpy.container
clusterOptions "-l nodes=1:ppn=2 -l pmem=30gb -l walltime=1:00:00 -A ${params.global.qsubaccount}"
publishDir "${params.global.outdir}/loom", mode: 'link', overwrite: true
publishDir "${params.global.outdir}/loom", mode: 'link', overwrite: true, saveAs: { filename -> "${params.global.project_name}.${sampleId}.SCope_output.loom" }

input:
// Expects:
Expand Down Expand Up @@ -34,7 +34,7 @@ process SC__H5AD_TO_FILTERED_LOOM {

container params.sc.scanpy.container
clusterOptions "-l nodes=1:ppn=2 -l pmem=30gb -l walltime=1:00:00 -A ${params.global.qsubaccount}"
publishDir "${params.global.outdir}/loom", mode: 'link', overwrite: true
publishDir "${params.global.outdir}/data/intermediate", mode: 'symlink', overwrite: true

input:
tuple val(sampleId), path(f)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/processes/utils.nf
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ process COMPRESS_HDF5() {

container "aertslab/sctx-hdf5:1.10.5-r2"
clusterOptions "-l nodes=1:ppn=2 -l pmem=30gb -l walltime=1:00:00 -A ${params.global.qsubaccount}"
publishDir "${params.global.outdir}/loom", mode: 'link', overwrite: true
publishDir "${params.global.outdir}/data/intermediate", mode: 'symlink', overwrite: true

input:
tuple val(id), path(f)
Expand Down

0 comments on commit dec40bd

Please sign in to comment.