Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Hub
hic
Commits
9571d031
Commit
9571d031
authored
5 years ago
by
nservant
Browse files
Options
Downloads
Patches
Plain Diff
setup test config
parent
d0023849
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
conf/base.config
+1
-1
1 addition, 1 deletion
conf/base.config
conf/test.config
+7
-4
7 additions, 4 deletions
conf/test.config
main.nf
+29
-12
29 additions, 12 deletions
main.nf
nextflow.config
+4
-4
4 additions, 4 deletions
nextflow.config
with
41 additions
and
21 deletions
conf/base.config
+
1
−
1
View file @
9571d031
...
...
@@ -52,7 +52,7 @@ process {
memory
= {
check_max
(
4
.
GB
*
task
.
attempt
,
'memory'
) }
time
= {
check_max
(
5
.
h
*
task
.
attempt
,
'time'
) }
}
withName
:
build_
matrix
{
withName
:
build_
contact_maps
{
cpus
= {
check_max
(
1
,
'cpus'
) }
memory
= {
check_max
(
6
.
GB
*
task
.
attempt
,
'memory'
) }
time
= {
check_max
(
5
.
h
*
task
.
attempt
,
'time'
) }
...
...
This diff is collapsed.
Click to expand it.
conf/test.config
+
7
−
4
View file @
9571d031
...
...
@@ -8,12 +8,15 @@
*/
params
{
//
Limit
resources
so
that
this
can
run
on
Travis
max_cpus
=
2
max_cpus
=
4
max_memory
=
6
.
GB
max_time
=
48
.
h
max_time
=
1
.
h
//
Input
data
[
'SRR400264_00'
, [
'https://github.com/nf-core/test-datasets/raw/hic/SRR400264_00_R1.fastq.gz'
,
'https://github.com/nf-core/test-datasets/raw/hic/SRR400264_00_R1.fastq.gz'
]],
[
'SRR400264_01'
, [
'https://github.com/nf-core/test-datasets/raw/hic/SRR400264_01_R1.fastq.gz'
,
'https://github.com/nf-core/test-datasets/raw/hic/SRR400264_01_R1.fastq.gz'
]],
readPaths
= [
[
'SRR400264_00'
, [
'https://github.com/nf-core/test-datasets/raw/hic/SRR400264_00_R1.fastq.gz'
,
'https://github.com/nf-core/test-datasets/raw/hic/SRR400264_00_R2.fastq.gz'
]],
[
'SRR400264_01'
, [
'https://github.com/nf-core/test-datasets/raw/hic/SRR400264_01_R1.fastq.gz'
,
'https://github.com/nf-core/test-datasets/raw/hic/SRR400264_01_R2.fastq.gz'
]]
]
}
This diff is collapsed.
Click to expand it.
main.nf
+
29
−
12
View file @
9571d031
...
...
@@ -41,8 +41,8 @@ def helpMessage() {
nextflow run nf-core/hic --reads '*_R{1,2}.fastq.gz' -profile docker
Mandatory arguments:
--reads
Path
Path to input data (must be surrounded with quotes)
--genome Name of iGenomes reference
--reads Path to input data (must be surrounded with quotes)
//
--genome Name of iGenomes reference
-profile Configuration profile to use. Can use multiple (comma separated)
Available: conda, docker, singularity, awsbatch, test and more.
...
...
@@ -136,17 +136,34 @@ ch_output_docs = Channel.fromPath("$baseDir/docs/output.md")
/*
* input read files
*/
Channel
.fromFilePairs( params.readPaths )
.ifEmpty { exit 1, "params.readPaths was empty - no input files supplied" }
.set { raw_reads_pairs }
raw_reads = Channel.create()
raw_reads_2 = Channel.create()
Channel
.fromFilePairs( params.readPaths )
.separate( raw_reads, raw_reads_2 ) { a -> [tuple(a[0], a[1][0]), tuple(a[0], a[1][1])] }
if (params.readPaths){
Channel
.from( params.readPaths )
.map { row -> [ row[0], [file(row[1][0]), file(row[1][1])]] }
.ifEmpty { exit 1, "params.readPaths was empty - no input files supplied" }
.set { raw_reads_pairs }
raw_reads = Channel.create()
raw_reads_2 = Channel.create()
Channel
.from( params.readPaths )
.map { row -> [ row[0], [file(row[1][0]), file(row[1][1])]] }
.separate( raw_reads, raw_reads_2 ) { a -> [tuple(a[0], a[1][0]), tuple(a[0], a[1][1])] }
}else{
Channel
.fromFilePairs( params.reads )
.ifEmpty { exit 1, "params.readPaths was empty - no input files supplied" }
.set { raw_reads_pairs }
raw_reads = Channel.create()
raw_reads_2 = Channel.create()
Channel
.fromFilePairs( params.reads )
.separate( raw_reads, raw_reads_2 ) { a -> [tuple(a[0], a[1][0]), tuple(a[0], a[1][1])] }
}
// SPlit fastq files
// https://www.nextflow.io/docs/latest/operator.html#splitfastq
...
...
This diff is collapsed.
Click to expand it.
nextflow.config
+
4
−
4
View file @
9571d031
...
...
@@ -27,7 +27,7 @@ params {
email
=
false
plaintext_email
=
false
help
=
false
igenomes_base
=
"./iGenomes"
//
igenomes_base
=
"./iGenomes"
tracedir
=
"${params.outdir}/pipeline_info"
clusterOptions
=
false
awsqueue
=
false
...
...
@@ -63,9 +63,9 @@ profiles {
}
//
Load
igenomes
.
config
if
required
if
(!
params
.
igenomesIgnore
){
includeConfig
'conf/igenomes.config'
}
//
if
(!
params
.
igenomesIgnore
){
//
includeConfig
'conf/igenomes.config'
//
}
//
Capture
exit
codes
from
upstream
processes
when
piping
process
.
shell
= [
'/bin/bash'
,
'-euo'
,
'pipefail'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment