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

Convert blank nan submitted metadata to No value

parent 6961db25
Branches
Tags
2 merge requests!68Develop,!67Resolve "Change Single Read to Single End for submitted endness"
Pipeline #9170 failed with stages
in 4 hours and 55 minutes
......@@ -375,6 +375,10 @@ process parseMetadata {
# get strandedness metadata
stranded=\$(python3 ${script_parseMeta} -r ${repRID} -m "${experimentSettings}" -p stranded)
echo -e "LOG: strandedness metadata parsed: \${stranded}" >> ${repRID}.parseMetadata.log
if [ "\${stranded}" == "nan" ]
then
stranded="_No value_"
fi
if [ "${strandedForce}" != "" ]
then
stranded=${strandedForce}
......@@ -384,6 +388,10 @@ process parseMetadata {
# get spike-in metadata
spike=\$(python3 ${script_parseMeta} -r ${repRID} -m "${experimentSettings}" -p spike)
echo -e "LOG: spike-in metadata parsed: \${spike}" >> ${repRID}.parseMetadata.log
if [ "\${spike}" == "nan" ]
then
spike="_No value_"
fi
if [ "${spikeForce}" != "" ]
then
spike=${spikeForce}
......@@ -412,6 +420,10 @@ process parseMetadata {
# get species metadata
species=\$(python3 ${script_parseMeta} -r ${repRID} -m "${experiment}" -p species)
echo -e "LOG: species metadata parsed: \${species}" >> ${repRID}.parseMetadata.log
if [ "\${species}" == "nan" ]
then
species="_No value_"
fi
# get read length metadata
readLength=\$(python3 ${script_parseMeta} -r ${repRID} -m "${experimentSettings}" -p readLength)
......
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