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

Move read length num to str to python script

parent b949a3b0
Branches
Tags
2 merge requests!37v0.0.1,!36Metadata output update
Pipeline #7774 failed with stages
in 1 minute and 31 seconds
......@@ -39,7 +39,6 @@ parseMetadata:
- spike=$(singularity run 'docker://bicf/python3:2.0.1_indev' python3 ./workflow/scripts/parseMeta.py -r Replicate_RID -m "./test_data/meta/metaTest.csv" -p spike)
- species=$(singularity run 'docker://bicf/python3:2.0.1_indev' python3 ./workflow/scripts/parseMeta.py -r Replicate_RID -m "./test_data/meta/metaTest.csv" -p species)
- readLength=$(singularity run 'docker://bicf/python3:2.0.1_indev' python3 ./workflow/scripts/parseMeta.py -r Replicate_RID -m "./test_data/meta/metaTest.stageNew.csv" -p readLength)
- readLength=""${readLength}
echo -e "${endsMeta},${endsManual},${stranded},${spike},${species},${readLength},${exp},${study},${rep}" > design.csv
- pytest -m parseMetadata
......
......@@ -239,7 +239,6 @@ process parseMetadata {
# get read length metadata
readLength=\$(python3 ${script_parseMeta} -r ${repRID} -m "${experiment}" -p readLength)
readLength=""\${readLength}
echo -e "LOG: read length metadata parsed: \${readLength}" >> ${repRID}.parseMetadata.log
# gave design file
......
......@@ -105,7 +105,7 @@ def main():
# Get read length metadata from 'Experiment Settings.csv'
if (args.parameter == "readLength"):
readLength = metaFile.Read_Length.unique()
print(str(readLength))
print(str(readLength).strip('[]'))
if __name__ == '__main__':
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