auto_process_ngs.commands.import_project_cmd

auto_process_ngs.commands.import_project_cmd.import_project(ap, project_dir, comment=None, runner=None)

Import a project directory into an analysis directory

Importing a project directory consists of the following actions:

  • Copying the project directory and contents to the analysis directory

  • Updating ‘projects.info’ to add in the data about the imported project

  • Updating the project metadata and the QC report

Optionally the comments associated with the project can also be extended.

Parameters:
  • ap (AutoProcessor) – autoprocessor pointing to the parent analysis directory

  • project_dir (str) – path to project directory to be imported

  • comment (str) – optional comment to append to the comments stored with the project after import

  • runner (JobRunner) – explicitly specify the job runner to send jobs to (overrides default runner set in the configuration)