Skip to content

Commit e92cadd

Browse files
committed
Adding tutorials
0 parents  commit e92cadd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+81956
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
.cache
3+
.idea
4+
serve
5+
nextflow
6+
work
7+
.nextflow*
8+
nf-training/results
9+
transcript-index
10+
.vscode

README.md

Whitespace-only changes.

bin/fastqc.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -e
3+
set -u
4+
5+
sample_id=${1}
6+
reads=${2}
7+
8+
mkdir fastqc_${sample_id}_logs
9+
fastqc -o fastqc_${sample_id}_logs -f fastq -q ${reads}

closure.nf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
square = { num -> num * num }
2+
3+
x = [ 1, 2, 3, 4 ].collect(square)
4+
println x
5+
6+
printMap = { a, b -> println "$a with value $b" }
7+
values = [ "Yue" : "Wu", "Mark" : "Williams", "Sudha" : "Kumari" ]
8+
values.each(printMap)

conditional_compress.nf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
params.compress = 'gzip'
2+
params.file2compress = "$baseDir/data/ggal/transcriptome.fa"
3+
4+
process FOO {
5+
6+
input:
7+
path file
8+
9+
script:
10+
if( params.compress == 'gzip' )
11+
"""
12+
gzip -c $file > ${file}.gz
13+
"""
14+
else if( params.compress == 'bzip2' )
15+
"""
16+
bzip2 -c $file > ${file}.bz2
17+
"""
18+
else
19+
throw new IllegalArgumentException("Unknown aligner $params.compress")
20+
}
21+
22+
workflow {
23+
FOO(params.file2compress)
24+
}

dag.png

47.1 KB
Loading

data/ggal/gut_1.fq

Lines changed: 11748 additions & 0 deletions
Large diffs are not rendered by default.

data/ggal/gut_2.fq

Lines changed: 11748 additions & 0 deletions
Large diffs are not rendered by default.

data/ggal/liver_1.fq

Lines changed: 11748 additions & 0 deletions
Large diffs are not rendered by default.

data/ggal/liver_2.fq

Lines changed: 11748 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)