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

Add checks for meta repRID

parent 2be5d85a
Branches
Tags
2 merge requests!37v0.0.1,!14Resolve "process_createManifest"
Pipeline #5726 failed with stages
in 20 minutes and 27 seconds
......@@ -13,14 +13,7 @@ process {
cpus = 1
memory = '1 GB'
withName:getBag {
container = 'bicf/gudmaprbkfilexfer:1.3'
}
withName:getData {
container = 'bicf/gudmaprbkfilexfer:1.3'
}
withName:trimData {
container = 'bicf/trimgalore:1.1'
cpus = 15
}
}
\ No newline at end of file
......@@ -13,14 +13,7 @@ process {
cpus = 1
memory = '1 GB'
withName:getBag {
container = 'bicf/gudmaprbkfilexfer:1.3'
}
withName:getData {
container = 'bicf/gudmaprbkfilexfer:1.3'
}
withName:trimData {
container = 'bicf/trimgalore:1.1'
cpus = 15
}
}
......@@ -5,16 +5,16 @@ process {
withName:getBag {
executor = 'local'
container = 'docker://bicf/gudmaprbkfilexfer:1.3'
}
withName:getData {
executor = 'local'
container = 'docker://bicf/gudmaprbkfilexfer:1.3'
}
withName:trimData {
container = 'docker://bicf/trimgalore:1.1'
queue = '256GB,256GBv1,384GB'
}
withName:parseMetadata {
executor = 'local'
}
}
singularity {
......
......@@ -10,6 +10,21 @@ profiles {
}
}
process {
withName:getBag {
container = 'bicf/gudmaprbkfilexfer:1.3'
}
withName:getData {
container = 'bicf/gudmaprbkfilexfer:1.3'
}
withName:trimData {
container = 'bicf/trimgalore:1.1'
}
withName:parseMetadata {
container = 'bicf/python:1.3'
}
}
trace {
enabled = true
file = 'pipeline_trace.txt'
......
......@@ -111,6 +111,7 @@ process parseMetadata {
"""
hostname >>${repRID_parseMetadata}.parseMetadata.err
ulimit -a >>${repRID_parseMetadata}.parseMetadata.err
python ${baseDir}/scripts/parseMeta.py -r ${repRID_parseMetadata} -m ${fileMeta} -p repRID
"""
}
......
......@@ -14,14 +14,19 @@ def get_args():
def main():
args = get_args()
metaFile = pd.read_csv(args.metaFile,sep="\t",header=None)
metaFile = pd.read_csv(args.metaFile,sep=",",header=0)
if (args.parameter == "repRID"):
if (len(metaFile.Replicate_RID.unique()) > 1):
#ERROR
if not (metaFile.Replicate_RID == arg$repRID):
#ERROR
if (len(fileFile[fileFile["File_Type"] == "FastQ"].RID) > 2):
#ERROR
print("There are multiple replicate RID's in the metadata: " + " ".join(metaFile.Replicate_RID.unique()))
exit(1)
if not (metaFile.Replicate_RID.unique() == args.repRID):
print("Replicate RID in metadata does not match run parameters: " + metaFile.Replicate_RID.unique() + " vs " + args.repRID)
exit(1)
else:
print(metaFile["Replicate_RID"].unique())
if (len(metaFile[metaFile["File_Type"] == "FastQ"]) > 2):
print("There are more then 2 fastq's in the metadata: " + " ".join(metaFile[metaFile["File_Type"] == "FastQ"].RID))
exit(1)
if __name__ == '__main__':
......
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