• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Clinical-Genomics / cg / 10158976052

30 Jul 2024 08:34AM UTC coverage: 83.666%. First build
10158976052

Pull #3485

github

web-flow
Merge 950693aae into 8380cf2de
Pull Request #3485: Add cli post processing

17 of 57 new or added lines in 5 files covered. (29.82%)

19464 of 23264 relevant lines covered (83.67%)

0.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cg/cli/post_process/post_process.py
1
"""CLI commands to post-process a sequencing run."""
2

NEW
3
import logging
×
4

NEW
5
import click
×
6

NEW
7
from cg.cli.post_process.utils import get_post_processing_service_from_run_name
×
NEW
8
from cg.cli.utils import CLICK_CONTEXT_SETTINGS
×
NEW
9
from cg.models.cg_config import CGConfig
×
NEW
10
from cg.services.post_processing.abstract_classes import PostProcessingService
×
11

NEW
12
LOG = logging.getLogger(__name__)
×
13

14

NEW
15
@click.group(name="post-process", context_settings=CLICK_CONTEXT_SETTINGS)
×
NEW
16
def post_process_group():
×
17
    """Add sequencing data to the databases."""
18

19

NEW
20
@post_process_group.command(name="run")
×
NEW
21
@click.argument("run-name")
×
NEW
22
@click.pass_obj
×
NEW
23
def post_process_sequencing_run(context: CGConfig, run_name: str):
×
24
    """Command to post-process a sequencing run from any device.
25

26
    run-name is the full name of the sequencing unit of run. For example:
27
        PacBio: 'r84202_20240522_133539/1_A01'
28
    """
NEW
29
    post_processing_service: PostProcessingService = get_post_processing_service_from_run_name(
×
30
        context=context, run_name=run_name
31
    )
NEW
32
    post_processing_service.post_process(run_name)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc