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

Fix len fastqs

parent 29f36785
Branches
Tags
2 merge requests!37v0.0.1,!14Resolve "process_createManifest"
Pipeline #5736 failed with stages
in 8 minutes and 32 seconds
......@@ -115,8 +115,9 @@ process parseMetadata {
path experimentMeta
output:
val ends
val endsMeta
val endsManual
val ends
val stranded
val spike
val specie
......
......@@ -25,7 +25,7 @@ def main():
else:
rep=metaFile["Replicate_RID"].unique()[0]
print(rep)
if (len(metaFile[metaFile["File_Type"] == "FastQ"]) > 2):
if (len(metaFile[metaFile["File_Type"] == "FastQ"].all()) > 2):
print("There are more then 2 fastq's in the metadata: " + " ".join(metaFile[metaFile["File_Type"] == "FastQ"].RID))
exit(1)
if (args.parameter == "ends"):
......@@ -37,9 +37,9 @@ def main():
ends = "uk"
print(ends)
if (args.parameter == "endsManual"):
if (len(metaFile[metaFile["File_Type"] == "FastQ"]) == 1):
if (len(metaFile[metaFile["File_Type"] == "FastQ"].all()) == 1):
endsManual = "se"
elif (len(metaFile[metaFile["File_Type"] == "FastQ"]) == 2):
elif (len(metaFile[metaFile["File_Type"] == "FastQ"].all()) == 2):
endsManual = "pe"
print(endsManual)
if (args.parameter == "stranded"):
......
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