Skip to content

Commit 040444d

Browse files
authored
Merge pull request #1 from TRON-Bioinformatics/fixes
fix R version for sequenza + hard code VROOM size
2 parents 6939697 + 8a3ffba commit 040444d

25 files changed

+35141
-67784
lines changed

.github/workflows/automated_tests.yml

+22-11
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,31 @@ jobs:
1414
with:
1515
distribution: 'zulu' # See 'Supported distributions' for available options
1616
java-version: '11'
17-
- uses: conda-incubator/setup-miniconda@v2
18-
with:
19-
auto-update-conda: true
20-
channels: defaults,conda-forge,bioconda,r
2117
- name: Install dependencies
2218
run: |
23-
apt-get update && apt-get --assume-yes install wget make procps software-properties-common
19+
apt-get -q update && apt-get -q --assume-yes install wget make procps software-properties-common
2420
wget -qO- https://get.nextflow.io | bash && cp nextflow /usr/local/bin/nextflow
25-
- name: Cache conda environments
26-
uses: actions/cache@v2
27-
with:
28-
path: |
29-
/home/runner/work/tronflow-cnvkit/tronflow-cnvkit/work/conda
30-
key: ${{ runner.os }}-tronflow-cnvkit
21+
wget -qO Mambaforge.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh"
22+
bash Mambaforge.sh -b -p "${HOME}/conda"
23+
source "${HOME}/conda/etc/profile.d/conda.sh"
24+
conda activate
25+
source "${HOME}/conda/etc/profile.d/mamba.sh"
26+
export PATH="${HOME}/conda/bin:${PATH}"
27+
echo $PATH
28+
# this is a workaround for https://github.com/mamba-org/mamba/issues/1993
29+
echo "use_lockfiles: false" >> ~/.condarc
30+
echo "channels:" >> ~/.condarc
31+
echo " - defaults" >> ~/.condarc
32+
echo " - conda-forge" >> ~/.condarc
33+
echo " - bioconda" >> ~/.condarc
34+
#- name: Cache conda environments
35+
# uses: actions/cache@v2
36+
# with:
37+
# path: |
38+
# /home/runner/work/tronflow-cnvkit/tronflow-cnvkit/work/conda
39+
# key: ${{ runner.os }}-tronflow-cnvkit
3140
- name: Run tests
3241
run: |
42+
export PATH="${HOME}/conda/bin:${PATH}"
43+
echo $PATH
3344
make

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "modules"]
22
path = modules
3-
url = https://github.com/nf-core/modules
3+
url = https://github.com/tron-bioinformatics/modules

local_modules/sequenza.nf

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ process SEQUENZAUTILS_SEQZBINNING {
2828
process SEQUENZA_R {
2929
tag "$meta.id"
3030

31-
conda (params.enable_conda ? "bioconda::r-sequenza=3.0.0" : null)
31+
conda (params.enable_conda ? "conda-forge::r-base=4.2.2 bioconda::r-sequenza=3.0.0" : null)
3232

3333
input:
3434
tuple val(meta), path(seqz)
@@ -42,7 +42,7 @@ process SEQUENZA_R {
4242
4343
library(sequenza)
4444
45-
Sys.setenv(VROOM_CONNECTION_SIZE = "${params.VROOM_CONNECTION_SIZE}")
45+
Sys.setenv(VROOM_CONNECTION_SIZE = "131072000")
4646
4747
seqz <- sequenza.extract(file="${seqz}", verbose = FALSE)
4848
#data.file <- system.file("extdata", "example.seqz.txt.gz", package = "sequenza")

main.nf

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
nextflow.enable.dsl = 2
55

6-
include { CNVKIT_BATCH } from './modules/modules/cnvkit/batch/main'
7-
include { SEQUENZAUTILS_GCWIGGLE } from './modules/modules/sequenzautils/gcwiggle/main'
8-
include { SEQUENZAUTILS_BAM2SEQZ } from './modules/modules/sequenzautils/bam2seqz/main'
6+
include { CNVKIT_BATCH } from './modules/modules/nf-core/cnvkit/batch/main'
7+
include { SEQUENZAUTILS_GCWIGGLE } from './modules/modules/nf-core/sequenzautils/gcwiggle/main'
8+
include { SEQUENZAUTILS_BAM2SEQZ } from './modules/modules/nf-core/sequenzautils/bam2seqz/main'
99
include { SEQUENZAUTILS_SEQZBINNING; SEQUENZA_R } from './local_modules/sequenza'
1010

1111

@@ -74,7 +74,7 @@ workflow {
7474

7575
if (!params.skip_cnvkit) {
7676
// NOTE: it does not provide fasta.fai or CNVkit reference, but these are created every time
77-
CNVKIT_BATCH(merged_bams, params.reference, [], params.intervals, [])
77+
CNVKIT_BATCH(merged_bams, params.reference, [], params.intervals, [], false)
7878
}
7979

8080
if (!params.skip_sequenza) {

modules

nextflow.config

+11-5
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,19 @@ process {
4848
profiles {
4949
conda {
5050
params.enable_conda = true
51-
conda { createTimeout = "120 min" }
51+
conda.enabled = true
52+
conda.createTimeout = "120 min"
53+
}
54+
mamba {
55+
params.enable_conda = true
56+
conda.enabled = true
57+
conda.createTimeout = "120 min"
58+
conda.useMamba = true
5259
}
5360
debug { process.beforeScript = 'echo $HOSTNAME' }
5461
test {
55-
params.reference = "$baseDir/test_data/ucsc.hg19.minimal.fasta"
56-
params.intervals = "$baseDir/test_data/minimal_intervals.bed"
57-
params.skip_sequenza = true
62+
params.reference = "$baseDir/test_data/Homo_sapiens_assembly38.chr6_22.fasta.gz"
63+
params.intervals = "$baseDir/test_data/Exome-Agilent_V6.hg38.chr6_chr22.bed"
5864
timeline.enabled = false
5965
report.enabled = false
6066
trace.enabled = false
@@ -72,7 +78,7 @@ process.shell = ['/bin/bash', '-euo', 'pipefail']
7278

7379
cleanup = true
7480

75-
VERSION = '0.2.1'
81+
VERSION = '0.2.2'
7682
DOI = 'doi'
7783

7884
manifest {

0 commit comments

Comments
 (0)