Skip to content
Snippets Groups Projects
Commit 770f2860 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Add temp local ref location

parent 4c87cdef
Branches
Tags
3 merge requests!37v0.0.1,!24Develop,!23Resolve "process_RSeQC"
...@@ -13,9 +13,8 @@ params.deriva = "${baseDir}/../test_data/auth/credential.json" ...@@ -13,9 +13,8 @@ params.deriva = "${baseDir}/../test_data/auth/credential.json"
params.bdbag = "${baseDir}/../test_data/auth/cookies.txt" params.bdbag = "${baseDir}/../test_data/auth/cookies.txt"
//params.repRID = "16-1ZX4" //params.repRID = "16-1ZX4"
params.repRID = "Q-Y5JA" params.repRID = "Q-Y5JA"
params.refVersion = "0.0.1" params.refMuVersion = "38.p6.vM22"
params.refMuVersion = "38.P6" params.refHuVersion = "38.p12.v31"
params.refHuVersion = "38.p12"
params.outDir = "${baseDir}/../output" params.outDir = "${baseDir}/../output"
// Parse input variables // Parse input variables
...@@ -34,7 +33,8 @@ logsDir = "${outDir}/Logs" ...@@ -34,7 +33,8 @@ logsDir = "${outDir}/Logs"
// Define fixed files // Define fixed files
derivaConfig = Channel.fromPath("${baseDir}/conf/replicate_export_config.json") derivaConfig = Channel.fromPath("${baseDir}/conf/replicate_export_config.json")
referenceBase = "s3://bicf-references" #referenceBase = "s3://bicf-references"
referenceBase = "/project/BICF/BICF_Core/shared/gudmap/references"
// Define script files // Define script files
script_bdbagFetch = Channel.fromPath("${baseDir}/scripts/bdbagFetch.sh") script_bdbagFetch = Channel.fromPath("${baseDir}/scripts/bdbagFetch.sh")
...@@ -226,10 +226,10 @@ process getRef { ...@@ -226,10 +226,10 @@ process getRef {
# retreive appropriate reference from S3 bucket # retreive appropriate reference from S3 bucket
if [ "${species_getRef}" == "Mus musculus" ] if [ "${species_getRef}" == "Mus musculus" ]
then then
references=\$(echo ${referenceBase}/mouse/${refVersion}/GRCm${refMuVersion}) references=\$(echo ${referenceBase}/mouse/GRCm${refMuVersion})
elif [ '${species_getRef}' == "Homo sapiens" ] elif [ '${species_getRef}' == "Homo sapiens" ]
then then
references=\$(echo ${referenceBase}/human/${refVersion}/GRCh${refHuVersion}) references=\$(echo ${referenceBase}/human/GRCh${refHuVersion})
else else
exit 1 exit 1
fi fi
...@@ -240,7 +240,8 @@ process getRef { ...@@ -240,7 +240,8 @@ process getRef {
then then
reference=\$(echo \${references}/) reference=\$(echo \${references}/)
fi fi
aws s3 cp "\${references}" ./ --recursive >>${repRID}.getRef.err #aws s3 cp "\${references}" ./ --recursive >>${repRID}.getRef.err
cp "\${references}" ./ --recursive >>${repRID}.getRef.err
""" """
} }
...@@ -364,4 +365,25 @@ process fastqc { ...@@ -364,4 +365,25 @@ process fastqc {
# run fastqc # run fastqc
fastqc *.fastq.gz -o . >>${repRID}.fastqc.err fastqc *.fastq.gz -o . >>${repRID}.fastqc.err
""" """
}
/*
*rseqc: run RSeQC to collect qc stats and infer experimental settings
*/
process rseqc {
tag "${repRID}"
publishDir "${logsDir}", mode: 'copy', pattern: "*.rseqc.err"
input:
output:
script:
"""
hostname >${repRID}.rseqc.err
ulimit -a >>${repRID}.rseqc.err
# run
#infer_experiment.py -r
"""
} }
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment