Analysis added to a run have no space_id
Error:
python3.4 /usr/local/bioinfo/src/nG6/bin/ng6_cli.py addanalysis data-file 15/ng6.jobs --analysis-name "Variant calling 88" analysis-description "68 + 20 Manech" --analysis-software "GATK..." analysis-software-options "-" --analysis-software-version "GATK:3.7 Picard:2.1.1 - Bwa:0.7.15 - Samtools:1.3.1 - FastQC:v0.11.2 - Bcftools:1.3.1" --admin-login sigenae --project-id 1144 Error: 'NoneType' object has no attribute 'space_id'
Origin: Issue#114 src/ng6/ng6workflow.py
if addto == "project": cmpt_object.project = self.project
elif addto == "run": cmpt_object.run = self.runobj
#We replace the default space_id
if cmpt_object.space_id == "default" and cmpt_object.space_id != cmpt_object.run.space_id:
cmpt_object.space_id = cmpt_object.run.space_id
We should set the space_id according to the project containing the run, not the run itself.