Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the run created in iSkyLIMS_wetlab already exists, the projects are duplicated when the run is loaded. #99

Closed
pnatividad-incliva opened this issue May 4, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pnatividad-incliva
Copy link

In the file handling_crontab_bcl2fastq.py defines the function process_and_store_raw_demux_project_data , which reads the samplesheet projects and, if they do not exist, registers them. In some cases the project already exists, and this procedure duplicates them. To solve it the code has been modified:

for project in parsed_data.keys():
if project == 'TopUnknownBarcodes' or project == 'all' or project == 'default':
continue
if not project in project_list:
# create project and link to the run
# check if project exists yet
if not Projects.objects.filter(projectName__exact = project).exists():
new_project_obj = Projects.objects.create_new_empty_project({'user_id':None, 'projectName':project})
else:
new_project_obj = Projects.objects.filter(projectName__exact = project).last()

new_project_obj.runProcess.add(run_process_obj)
string_message = experiment_name + ' : Created project name ' + project + 'Because it was not store'
logging_warnings(string_message, True)

@luissian luissian transferred this issue from BU-ISCIII/buisciii-tools May 5, 2022
@luissian luissian self-assigned this May 16, 2022
@luissian luissian added the bug Something isn't working label May 16, 2022
luissian added a commit that referenced this issue May 16, 2022
@luissian
Copy link
Member

Issue solved in commit f853945

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants