Skip to content

Commit

Permalink
Parametrized input pattern search
Browse files Browse the repository at this point in the history
  • Loading branch information
asboner committed Oct 24, 2020
1 parent 78b7c5b commit d2222ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,15 @@ To run this pipeline using [Nextflow](https://www.nextflow.io/), simply run the
where `nextflow.config` include the minimum set of parameters to run ERVmap within the docker container. Specifically:
```
params {
genome='/path/to/genome' # external path to the indexed genome for the STAR aligner
inputDir='path/to/input/folder' # external path of the input data
outputDir='/path/to/output/folder' # external path of the output results
genome='/path/to/genome' # external path to the indexed genome for the STAR aligner
inputDir='path/to/input/folder' # external path of the input data
inputPattern="*{1,2}.fastq.gz" # pattern to search for input FASTQ files
outputDir='/path/to/output/folder' # external path of the output results
starTmpDir='/path/to/STAR/temp/folder' # external path of the STAR aligner temporary folder. REQUIRED
localOutDir='.' # internal path of the results
cpus=20 # Number of cpus/threads to use for the alignment
limitMemory=1850861158 # memory limit for STAR
debug='off' # either [on|off]
localOutDir='.' # internal path of the results
cpus=20 # Number of cpus/threads to use for the alignment
limitMemory=1850861158 # memory limit for STAR
debug='off' # either [on|off]
}
```
**NOTE:** Adjust the memory settings of the docker container if needed, but recall that STAR requires about 32G of RAM (see [Optional Parameters](#optparam)).
Expand Down
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (!params.debug) {
}


pairFiles_ch = Channel.fromFilePairs( params.inputDir+"/*{1,2}.fastq.gz", size: 2, checkIfExists: true )
pairFiles_ch = Channel.fromFilePairs( params.inputDir+"/"+params.inputPattern, size: 2, checkIfExists: true )


process ERValign {
Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ docker {
params {
genome='/path/to/genome'
inputDir='path/to/input/folder'
inputPattern="*{1,2}.fastq.gz"
outputDir='/path/to/output/folder'
starTmpDir='/path/to/STAR/temp/folder'
localOutDir='.'
Expand Down

0 comments on commit d2222ce

Please sign in to comment.