forked from nf-core/sarek
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathQC.groovy
More file actions
100 lines (87 loc) · 1.92 KB
/
QC.groovy
File metadata and controls
100 lines (87 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
class QC {
// Run bamQC on vcf file
static def bamQC(bam, idSample, mem) {
"""
qualimap --java-mem-size=${mem.toGiga()}G \
bamqc \
-bam ${bam} \
-outdir ${idSample} \
-outformat HTML
"""
}
// Run bcftools on vcf file
static def bcftools(vcf) {
"""
bcftools stats ${vcf} > ${vcf.simpleName}.bcf.tools.stats.out
"""
}
// Run samtools stats on bam file
static def samtoolsStats(bam) {
"""
samtools stats ${bam} > ${bam}.samtools.stats.out
"""
}
// Run vcftools on vcf file
static def vcftools(vcf) {
"""
vcftools \
--gzvcf ${vcf} \
--relatedness2 \
--out ${vcf.simpleName}
vcftools \
--gzvcf ${vcf} \
--TsTv-by-count \
--out ${vcf.simpleName}
vcftools \
--gzvcf ${vcf} \
--TsTv-by-qual \
--out ${vcf.simpleName}
vcftools \
--gzvcf ${vcf} \
--FILTER-summary \
--out ${vcf.simpleName}
"""
}
// Get BCFtools version
static def getVersionBCFtools() {
"""
bcftools version > v_bcftools.txt
"""
}
// Get GATK version
static def getVersionGATK() {
"""
echo "GATK version"\$(java -jar \$GATK_HOME/GenomeAnalysisTK.jar --version 2>&1) > v_gatk.txt
"""
}
// Get Manta version
static def getVersionManta() {
"""
cat \$MANTA_INSTALL_PATH/lib/python/configBuildTimeInfo.py | grep workflowVersion > v_manta.txt
"""
}
// Get SnpEFF version
static def getVersionSnpEFF() {
"""
echo "SNPEFF version"\$(java -jar \$SNPEFF_HOME/snpEff.jar -h 2>&1) > v_snpeff.txt
"""
}
// Get Strelka version
static def getVersionStrelka() {
"""
cat \$STRELKA_INSTALL_PATH/lib/python/configBuildTimeInfo.py | grep workflowVersion > v_strelka.txt
"""
}
// Get VCFtools version
static def getVersionVCFtools() {
"""
vcftools --version > v_vcftools.txt
"""
}
// Get VEP version
static def getVersionVEP() {
"""
vep --help > v_vep.txt
"""
}
}