Skip to content

Commit

Permalink
feat: add cubi-tk sodar update-samplesheet (#240)
Browse files Browse the repository at this point in the history
Co-authored-by: Till Hartmann <[email protected]>
  • Loading branch information
Nicolai-vKuegelgen and tedil authored Jan 14, 2025
1 parent b714108 commit 581e650
Show file tree
Hide file tree
Showing 6 changed files with 1,425 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cubi_tk/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ class InvalidReadmeException(CubiTkException):


class FileMd5MismatchException(CubiTkException):
"""Raised if the recored md5 sum for a file does not match the (re)computed value."""
"""Raised if the recorded md5 sum for a file does not match the (re)computed value."""


class SodarAPIException(CubiTkException):
"""Raised when the SODAR API does not return success."""
7 changes: 7 additions & 0 deletions src/cubi_tk/sodar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
``add-ped``
Download sample sheet, add rows from PED file, and re-upload.
``update-samplesheet``
Directly update ISA sample sheet (without intermediate files), based on ped file &/ command line specified data.
``pull-data-collection``
Download data collection from iRODS.
Expand Down Expand Up @@ -67,6 +70,7 @@
from .lz_validate import setup_argparse as setup_argparse_lz_validate
from .pull_data_collection import setup_argparse as setup_argparse_pull_data_collection
from .pull_raw_data import setup_argparse as setup_argparse_pull_raw_data
from .update_samplesheet import setup_argparse as setup_argparse_update_samplesheet
from .upload_sheet import setup_argparse as setup_argparse_upload_sheet


Expand All @@ -77,6 +81,9 @@ def setup_argparse(parser: argparse.ArgumentParser) -> None:
setup_argparse_add_ped(
subparsers.add_parser("add-ped", help="Augment sample sheet from PED file")
)
setup_argparse_update_samplesheet(
subparsers.add_parser("update-samplesheet", help="Update sample sheet")
)
setup_argparse_download_sheet(subparsers.add_parser("download-sheet", help="Download ISA-tab"))
setup_argparse_upload_sheet(
subparsers.add_parser("upload-sheet", help="Upload and replace ISA-tab")
Expand Down
Loading

0 comments on commit 581e650

Please sign in to comment.