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

Add inference and apply new naming standards

parent 1d48e1ef
Branches
Tags
2 merge requests!37v0.0.1,!28Resolve "Move inference to start of pipeline"
Pipeline #6630 failed with stages
in 4 minutes and 56 seconds
...@@ -97,7 +97,7 @@ inferMetadata: ...@@ -97,7 +97,7 @@ inferMetadata:
stage: unit stage: unit
script: script:
- for i in {"chr8","chr4","chrY"}; do - for i in {"chr8","chr4","chrY"}; do
echo " tin.py -i /project/BICF/BICF_Core/shared/gudmap/test_data/bam/small/Q-Y5JA_1M.se.sorted.deduped.${i}.bam -r /project/BICF/BICF_Core/shared/gudmap/references/GRCh38.p12.v31/bed/genome.bed; cat Q-Y5JA_1M.se.sorted.deduped.${i}.tin.xls | tr -s \"\\w\" \"\\t\" | grep -P \"\\t${i}\\t\";"; done | singularity run 'docker://bicf/rseqc3.0:2.0.0' parallel -j 20 -k > Q-Y5JA_1M.se.sorted.deduped.tin.xls echo "tin.py -i /project/BICF/BICF_Core/shared/gudmap/test_data/bam/small/Q-Y5JA_1M.se.sorted.deduped.${i}.bam -r /project/BICF/BICF_Core/shared/gudmap/references/GRCh38.p12.v31/bed/genome.bed; cat Q-Y5JA_1M.se.sorted.deduped.${i}.tin.xls | tr -s \"\\w\" \"\\t\" | grep -P \"\\t${i}\\t\";"; done | singularity run 'docker://bicf/rseqc3.0:2.0.0' parallel -j 20 -k > Q-Y5JA_1M.se.sorted.deduped.tin.xls
- pytest -m inferMetadata - pytest -m inferMetadata
downsampleData: downsampleData:
......
...@@ -3,43 +3,49 @@ process { ...@@ -3,43 +3,49 @@ process {
queue = 'super' queue = 'super'
clusterOptions = '--hold' clusterOptions = '--hold'
withName:getBag { withName: getBag {
executor = 'local' executor = 'local'
} }
withName:getData { withName: getData {
executor = 'local' executor = 'local'
} }
withName:parseMetadata { withName: parseMetadata {
executor = 'local' executor = 'local'
} }
withName: trimData {
queue = 'super'
}
withName: getRefInfer { withName: getRefInfer {
executor = 'local' executor = 'local'
} }
withName:getRef { withName: downsampleData {
executor = 'local' executor = 'local'
} }
withName:trimData { withName: alignSampleData {
queue = 'super' queue = 'super'
} }
withName:downsampleData { withName: inferMetadata {
executor = 'local'
}
withName:alignSampleData {
queue = 'super' queue = 'super'
} }
withName:alignData { withName: getRef {
executor = 'local'
}
withName: alignData {
queue = '256GB,256GBv1' queue = '256GB,256GBv1'
} }
withName: dedupData { withName: dedupData {
queue = 'super' queue = 'super'
} }
withName:fastqc { withName: countData {
queue = 'super' queue = 'super'
} }
withName:inferMetadata { withName: makeBigWig {
queue = 'super' queue = 'super'
} }
withName: makeBigWig { withName: fastqc {
queue = 'super'
}
withName: dataQC {
queue = 'super' queue = 'super'
} }
} }
......
...@@ -20,39 +20,42 @@ process { ...@@ -20,39 +20,42 @@ process {
withName: parseMetadata { withName: parseMetadata {
container = 'bicf/python3:1.3' container = 'bicf/python3:1.3'
} }
withName: getRefInfer {
container = 'bicf/awscli:1.1'
}
withName: getRef {
container = 'bicf/awscli:1.1'
}
withName: trimData { withName: trimData {
container = 'bicf/trimgalore:1.1' container = 'bicf/trimgalore:1.1'
} }
withName: getRefInfer {
container = 'bicf/awscli:1.1'
}
withName: downsampleData { withName: downsampleData {
container = 'bicf/seqtk:2.0.0' container = 'bicf/seqtk:2.0.0'
} }
withName: alignSampleData { withName: alignSampleData {
container = 'bicf/gudmaprbkaligner:2.0.0' container = 'bicf/gudmaprbkaligner:2.0.0'
} }
withName: inferMetadata {
container = 'bicf/rseqc3.0:2.0.0'
}
withName: getRef {
container = 'bicf/awscli:1.1'
}
withName: alignData { withName: alignData {
container = 'bicf/gudmaprbkaligner:2.0.0' container = 'bicf/gudmaprbkaligner:2.0.0'
} }
withName: dedupData { withName: dedupData {
container = 'bicf/gudmaprbkdedup:2.0.0' container = 'bicf/gudmaprbkdedup:2.0.0'
} }
withName: countData {
container = 'bicf/subread2:2.0.0'
}
withName: makeBigWig { withName: makeBigWig {
container = 'bicf/deeptools3.3:2.0.0' container = 'bicf/deeptools3.3:2.0.0'
} }
withName: fastqc { withName: fastqc {
container = 'bicf/fastqc:2.0.0' container = 'bicf/fastqc:2.0.0'
} }
withName:inferMetadata{ withName: dataQC {
container = 'bicf/rseqc3.0:2.0.0' container = 'bicf/rseqc3.0:2.0.0'
} }
withName: makeFeatureCounts {
container = 'bicf/subread2:2.0.0'
}
} }
trace { trace {
......
This diff is collapsed.
...@@ -10,7 +10,6 @@ def get_args(): ...@@ -10,7 +10,6 @@ def get_args():
parser.add_argument('-r', '--repRID',help="The replicate RID.",required=True) parser.add_argument('-r', '--repRID',help="The replicate RID.",required=True)
parser.add_argument('-m', '--metaFile',help="The metadata file to extract.",required=True) parser.add_argument('-m', '--metaFile',help="The metadata file to extract.",required=True)
parser.add_argument('-p', '--parameter',help="The parameter to extract.",required=True) parser.add_argument('-p', '--parameter',help="The parameter to extract.",required=True)
parser.add_argument('-e', '--endsManual',help="The endness.",required=False)
args = parser.parse_args() args = parser.parse_args()
return args return args
...@@ -56,12 +55,9 @@ def main(): ...@@ -56,12 +55,9 @@ def main():
# Get strandedness metadata from 'Experiment Settings.csv' # Get strandedness metadata from 'Experiment Settings.csv'
if (args.parameter == "stranded"): if (args.parameter == "stranded"):
if (metaFile.Has_Strand_Specific_Information.unique() == "yes"): if (metaFile.Has_Strand_Specific_Information.unique() == "yes"):
if (args.endsManual=="se"): stranded = "stranded"
stranded = "--rna-strandness F"
elif (args.endsManual=="pe"):
stranded = "--rna-strandness FR"
elif (metaFile.Has_Strand_Specific_Information.unique() == "no"): elif (metaFile.Has_Strand_Specific_Information.unique() == "no"):
stranded = "" stranded = "unstranded"
else: else:
print("Stranded metadata not match expected options: " + metaFile.Has_Strand_Specific_Information.unique()) print("Stranded metadata not match expected options: " + metaFile.Has_Strand_Specific_Information.unique())
exit(1) exit(1)
......
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