Skip to content
Snippets Groups Projects
Commit eb8e3e73 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Update to be astrocyte compatible.

parent 7b79b436
No related merge requests found
......@@ -51,6 +51,7 @@ workflow_modules:
- 'UCSC_userApps/v317'
- 'R/3.3.2-gccmkl'
- 'meme/4.11.1-gcc-openmpi'
- 'pandoc/2.7'
# A list of parameters used by the workflow, defining how to present them,
......@@ -93,7 +94,7 @@ workflow_parameters:
description: |
One or more input FASTQ files from a ChIP-seq expereiment and a design
file with the link bewetwen the same file name and sample id
regex: ".*(fastq|fq)*"
regex: ".*(fastq|fq)*gz"
min: 2
- id: pairedEnd
......@@ -115,7 +116,7 @@ workflow_parameters:
description: |
A design file listing sample id, fastq files, corresponding control id
and additional information about the sample.
regex: ".*tsv"
regex: ".*txt"
- id: genome
type: select
......@@ -128,12 +129,14 @@ workflow_parameters:
Reference species and genome used for alignment and subsequent analysis.
- id: astrocyte
type: string
required: true
default: 'true'
regex: "true"
description: |
Ensure configuraton for astrocyte
type: select
choices:
- [ 'true', 'true' ]
required: true
default: 'true'
description: |
Ensure configuraton for astrocyte.
# -----------------------------------------------------------------------------
......@@ -154,8 +157,4 @@ vizapp_cran_packages:
# List of any Bioconductor packages, not provided by the modules,
# that must be made available to the vizapp
vizapp_bioc_packages:
- none
vizapp_github_packages:
- js229/Vennerable
vizapp_bioc_packages: []
......@@ -7,6 +7,7 @@
params.reads = "$baseDir/../test_data/*.fastq.gz"
params.pairedEnd = 'false'
params.designFile = "$baseDir/../test_data/design_ENCSR238SGC_SE.txt"
params.genome = 'GRCm38'
params.cutoffRatio = 1.2
params.outDir= "$baseDir/output"
params.extendReadsLen = 100
......@@ -17,25 +18,26 @@ params.skipMotif = false
params.references = "$baseDir/../docs/references.md"
// Assign variables if astrocyte
params.genome = 'GRCm38'
if (params.astrocyte == 'false') {
params.bwaIndex = params.genome ? params.genomes[ params.genome ].bwa ?: false : false
params.genomeSize = params.genome ? params.genomes[ params.genome ].genomesize ?: false : false
params.chromSizes = params.genome ? params.genomes[ params.genome ].chromsizes ?: false : false
params.fasta = params.genome ? params.genomes[ params.genome ].fasta ?: false : false
} else if (params.astrocyte == 'true') {
if (params.astrocyte) {
print("Running under astrocyte")
referenceLocation = "/project/shared/bicf_workflow_ref"
params.bwaIndex = "$referenceLocation/$genome"
params.chromSizes = "$referenceLocation/$genome/genomefile.txt"
params.fasta = "$referenceLocation/$genome/genome.fa.txt"
if (params.genome == 'GRCh37' || params.genome == 'GRCh38') {
params.chromSizes = 'hs'
params.genomeSize = 'hs'
} else if (params.chromSizes == 'GRCm38') {
params.chromSizes = 'mm'
params.genomeSize = 'mm'
}
} else {
params.bwaIndex = params.genome ? params.genomes[ params.genome ].bwa ?: false : false
params.genomeSize = params.genome ? params.genomes[ params.genome ].genomesize ?: false : false
params.chromSizes = params.genome ? params.genomes[ params.genome ].chromsizes ?: false : false
params.fasta = params.genome ? params.genomes[ params.genome ].fasta ?: false : false
}
// Check inputs
if( params.bwaIndex ){
bwaIndex = Channel
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment