samplesheet-parser 2.5.0__py3-none-any.whl → 2.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
samplesheet_parser/cli.py CHANGED
@@ -576,8 +576,8 @@ if _TYPER_AVAILABLE:
576
576
  mismatches across sheets. Mixed V1/V2 inputs are auto-converted to the
577
577
  target format.
578
578
 
579
- Exits 0 on clean merge.
580
- Exits 1 if conflicts or warnings were found.
579
+ Exits 0 on a successful merge (warnings are allowed).
580
+ Exits 1 if conflicts were found.
581
581
  Exits 2 on bad arguments or unreadable files.
582
582
  """
583
583
  from samplesheet_parser.merger import SampleSheetMerger
@@ -612,7 +612,7 @@ if _TYPER_AVAILABLE:
612
612
  {
613
613
  "has_conflicts": result.has_conflicts,
614
614
  "sample_count": result.sample_count,
615
- "output_path": str(result.output_path) if result.output_path else None,
615
+ "output_path": result.output_path.name if result.output_path else None,
616
616
  "source_versions": result.source_versions,
617
617
  "summary": result.summary(),
618
618
  "conflicts": [
@@ -641,8 +641,9 @@ if _TYPER_AVAILABLE:
641
641
  if result.output_path:
642
642
  typer.echo(f"\nOutput: {result.output_path}")
643
643
 
644
- has_issues = result.has_conflicts or bool(result.warnings)
645
- raise typer.Exit(code=1 if has_issues else 0)
644
+ # Warnings are advisory and do not fail the command; only genuine
645
+ # conflicts (which prevent a valid merged sheet) exit non-zero.
646
+ raise typer.Exit(code=1 if result.has_conflicts else 0)
646
647
 
647
648
  # ---------------------------------------------------------------------------
648
649
  # split
@@ -685,8 +686,7 @@ if _TYPER_AVAILABLE:
685
686
  the sample rows are divided. Output filenames are
686
687
  ``{prefix}{group}_SampleSheet.csv``.
687
688
 
688
- Exits 0 on success.
689
- Exits 1 if warnings were produced (e.g. samples with no project).
689
+ Exits 0 on success (warnings are allowed).
690
690
  Exits 2 on bad arguments or unreadable files.
691
691
  """
692
692
  from samplesheet_parser.splitter import SampleSheetSplitter
@@ -715,7 +715,7 @@ if _TYPER_AVAILABLE:
715
715
  "by": by,
716
716
  "output_dir": str(output_dir),
717
717
  "summary": result.summary(),
718
- "files": {k: str(v) for k, v in result.output_files.items()},
718
+ "files": {k: v.name for k, v in result.output_files.items()},
719
719
  "sample_counts": result.sample_counts,
720
720
  "warnings": result.warnings,
721
721
  }
@@ -732,7 +732,9 @@ if _TYPER_AVAILABLE:
732
732
  for w in result.warnings:
733
733
  typer.echo(f" {w}")
734
734
 
735
- raise typer.Exit(code=1 if result.warnings else 0)
735
+ # Warnings are advisory and do not fail the command; a successful split
736
+ # exits 0 regardless of warnings.
737
+ raise typer.Exit(code=0)
736
738
 
737
739
  # ---------------------------------------------------------------------------
738
740
  # filter
@@ -814,7 +816,7 @@ if _TYPER_AVAILABLE:
814
816
  "source_version": result.source_version,
815
817
  "matched_count": result.matched_count,
816
818
  "total_count": result.total_count,
817
- "output_path": str(result.output_path) if result.output_path else None,
819
+ "output_path": result.output_path.name if result.output_path else None,
818
820
  "summary": result.summary(),
819
821
  "criteria": {
820
822
  "project": project or None,
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: samplesheet-parser
3
- Version: 2.5.0
3
+ Version: 2.5.2
4
4
  Summary: Multi-vendor, format-agnostic parser for sequencing sample sheets — Illumina IEM V1 & BCLConvert V2 plus Element AVITI run manifests, with index validation and color-balance checking
5
5
  Project-URL: Homepage, https://github.com/chaitanyakasaraneni/samplesheet-parser
6
6
  Project-URL: Documentation, https://samplesheet-parser.readthedocs.io
@@ -1,6 +1,6 @@
1
1
  samplesheet_parser/__init__.py,sha256=eSlshig-sXWyxW70vbd__lu9u6nfqVTyv-48MUsmiZg,2890
2
2
  samplesheet_parser/chemistry.py,sha256=1I6jxzCmZqNqHitUzWQWo3JnuVHdASTVNUu-6jU4eoE,17631
3
- samplesheet_parser/cli.py,sha256=GbYL0tTHP5ofGXLPVPzR5CNWVarUolzdoyOqsDl2WPg,31993
3
+ samplesheet_parser/cli.py,sha256=3Rz1Q1r_AeDdIS2uaRyK2Y7yGdAlveZf7GCF_38i3jY,32145
4
4
  samplesheet_parser/converter.py,sha256=g4s5R6iB5mPDF-e8JD4Iezt2dMBBxgQ-OPL9vxJ2zM0,20236
5
5
  samplesheet_parser/diff.py,sha256=RruQhKRi0Ja6x5pq8CA-yafJ4JQJ3p0JXDp68RS53GE,15369
6
6
  samplesheet_parser/enums.py,sha256=SqxE5sRjBGRGk2J6lxpkgxb6luEqBTcdalok5lDFUS0,1790
@@ -18,8 +18,8 @@ samplesheet_parser/parsers/__init__.py,sha256=N5ICN_46x-ARbG8kyrck6g1V_gOU0Xacqz
18
18
  samplesheet_parser/parsers/element.py,sha256=7DrketMyQzPnEvAaaj6pstAiuvAJ6ljcFltsU-uymxs,11358
19
19
  samplesheet_parser/parsers/v1.py,sha256=MRt_BUJTmj763N2kByELNwQPY-_jcLKcwahG4jPBH98,23956
20
20
  samplesheet_parser/parsers/v2.py,sha256=pCd18DNcpIIh7vJNEB8asRleIriH2NSx7h7NAtsomug,27982
21
- samplesheet_parser-2.5.0.dist-info/METADATA,sha256=gxmeIQzX8iqquCjsX1G45_5urIVd6l00z0G4Nd_zTzs,33619
22
- samplesheet_parser-2.5.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
23
- samplesheet_parser-2.5.0.dist-info/entry_points.txt,sha256=jR2GOZmuJg60mY9vzOGunVh2-mYRxjpnlmC-4wGBfQ8,60
24
- samplesheet_parser-2.5.0.dist-info/licenses/LICENSE,sha256=EIu8MSHMFea58nh2WwWsITEZ95TLW0PfRYCaYTE6HGk,781
25
- samplesheet_parser-2.5.0.dist-info/RECORD,,
21
+ samplesheet_parser-2.5.2.dist-info/METADATA,sha256=hkCh6kpMgWXQp6LUjs4RE5WWat8osCRYEuKhq9GSiNY,33619
22
+ samplesheet_parser-2.5.2.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
23
+ samplesheet_parser-2.5.2.dist-info/entry_points.txt,sha256=jR2GOZmuJg60mY9vzOGunVh2-mYRxjpnlmC-4wGBfQ8,60
24
+ samplesheet_parser-2.5.2.dist-info/licenses/LICENSE,sha256=EIu8MSHMFea58nh2WwWsITEZ95TLW0PfRYCaYTE6HGk,781
25
+ samplesheet_parser-2.5.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.31.0
2
+ Generator: hatchling 1.32.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any