Skip to content

Commit 38bce57

Browse files
'multiprocess' is about to be deprecated
1 parent 9ff5f87 commit 38bce57

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ library("future")
4545
library("listenv")
4646
## The first level of futures should be submitted to the
4747
## cluster using batchtools. The second level of futures
48-
## should be using multiprocessing, where the number of
48+
## should be using multisession, where the number of
4949
## parallel processes is automatically decided based on
5050
## what the cluster grants to each compute node.
51-
plan(list(batchtools_torque, multiprocess))
51+
plan(list(batchtools_torque, multisession))
5252

5353
## Find all samples (one FASTQ file per sample)
5454
fqs <- dir(pattern = "[.]fastq$")
@@ -77,11 +77,11 @@ bams <- as.list(bams)
7777
```
7878
Note that a user who do not have access to a cluster could use the same script processing samples sequentially and chromosomes in parallel on a single machine using:
7979
```r
80-
plan(list(sequential, multiprocess))
80+
plan(list(sequential, multisession))
8181
```
8282
or samples in parallel and chromosomes sequentially using:
8383
```r
84-
plan(list(multiprocess, sequential))
84+
plan(list(multisession, sequential))
8585
```
8686

8787
For an introduction as well as full details on how to use futures,
@@ -157,10 +157,10 @@ To specify the `resources` argument at the same time as using nested future stra
157157
```r
158158
plan(list(
159159
tweak(batchtools_torque, resources = list(nodes = "1:ppn=12", vmem = "5gb")),
160-
multiprocess
160+
multisession
161161
))
162162
```
163-
causes the first level of futures to be submitted via the TORQUE job scheduler requesting 12 cores and 5 GiB of memory per job. The second level of futures will be evaluated using multiprocessing using the 12 cores given to each job by the scheduler.
163+
causes the first level of futures to be submitted via the TORQUE job scheduler requesting 12 cores and 5 GiB of memory per job. The second level of futures will be evaluated using multisession using the 12 cores given to each job by the scheduler.
164164
165165
A similar filename format is used for the other types of job schedulers supported. For instance, for Slurm the template file should be named `./batchtools.slurm.tmpl` or `~/.batchtools.slurm.tmpl` in order for
166166
```r

vignettes/future.batchtools.md.rsp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ library("future")
6464
library("listenv")
6565
## The first level of futures should be submitted to the
6666
## cluster using batchtools. The second level of futures
67-
## should be using multiprocessing, where the number of
67+
## should be using multisession, where the number of
6868
## parallel processes is automatically decided based on
6969
## what the cluster grants to each compute node.
70-
plan(list(batchtools_torque, multiprocess))
70+
plan(list(batchtools_torque, multisession))
7171

7272
## Find all samples (one FASTQ file per sample)
7373
fqs <- dir(pattern = "[.]fastq$")
@@ -96,11 +96,11 @@ bams <- as.list(bams)
9696
```
9797
Note that a user who do not have access to a cluster could use the same script processing samples sequentially and chromosomes in parallel on a single machine using:
9898
```r
99-
plan(list(sequential, multiprocess))
99+
plan(list(sequential, multisession))
100100
```
101101
or samples in parallel and chromosomes sequentially using:
102102
```r
103-
plan(list(multiprocess, sequential))
103+
plan(list(multisession, sequential))
104104
```
105105

106106
For an introduction as well as full details on how to use futures,
@@ -177,10 +177,10 @@ To specify the `resources` argument at the same time as using nested future stra
177177
```r
178178
plan(list(
179179
tweak(batchtools_torque, resources = list(nodes = "1:ppn=12", vmem = "5gb")),
180-
multiprocess
180+
multisession
181181
))
182182
```
183-
causes the first level of futures to be submitted via the TORQUE job scheduler requesting 12 cores and 5 GiB of memory per job. The second level of futures will be evaluated using multiprocessing using the 12 cores given to each job by the scheduler.
183+
causes the first level of futures to be submitted via the TORQUE job scheduler requesting 12 cores and 5 GiB of memory per job. The second level of futures will be evaluated using multisession using the 12 cores given to each job by the scheduler.
184184

185185
A similar filename format is used for the other types of job schedulers supported. For instance, for Slurm the template file should be named `./batchtools.slurm.tmpl` or `~/.batchtools.slurm.tmpl` in order for
186186
```r

0 commit comments

Comments
 (0)