Skip to content
Snippets Groups Projects
Commit f91f5982 authored by pjvan_thof's avatar pjvan_thof
Browse files

Adding alignment step

parent 06ef73d9
No related branches found
No related tags found
No related merge requests found
bwa.wdl 0 → 100644
task BwaMem {
File inputR1
File? inputR2
String referenceFasta
String outputPath
String? readgroup
command {
set -e -o pipefail
mkdir -p $(dirname ${outputPath})
bwa mem ${"-R '" + readgroup + "'"} \
${referenceFasta} ${inputR1} ${inputR2} | samtools sort --output-fmt BAM - > ${outputPath}
}
output {
File bamFile = outputPath
}
}
......@@ -48,15 +48,7 @@ task fastqc {
File rawReport = reportDir + "/fastqc_data.txt"
File htmlReport = reportDir + "/fastqc_report.html"
File summary = reportDir + "/summary.txt"
File adapterContent = reportDir + "/Images/adapter_content.png"
File duplicationLevels = reportDir + "/Images/duplication_levels.png"
File perBaseNContent = reportDir + "/Images/per_base_n_content.png"
File perBaseQuality = reportDir + "/Images/per_base_quality.png"
File perBaseSequenceContent = reportDir + "/Images/per_base_sequence_content.png"
File perSequenceGCContent = reportDir + "/Images/per_sequence_gc_content.png"
File perSequenceQuality = reportDir + "/Images/per_sequence_quality.png"
File perTileQuality = reportDir + "/Images/per_tile_quality.png"
File sequenceLengthDistribution = reportDir + "/Images/sequence_length_distribution.png"
Array[File] images = glob(outdirPath + "/*/Images/*.png")
}
runtime {
......
task SamtoolsIndex {
String bamFilePath
command {
samtools index ${bamFilePath}
}
output {
File indexFile = bamFilePath + ".bai"
}
}
task SamtoolsMerge {
Array[File] bamFiles
String outputBamPath
command {
samtools merge ${outputBamPath} ${bamFiles}
}
output {
File bamFile = outputBamPath
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment