mgnify-pipelines-toolkit 1.2.9__py3-none-any.whl → 1.2.11__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.

Potentially problematic release.


This version of mgnify-pipelines-toolkit might be problematic. Click here for more details.

@@ -167,7 +167,8 @@ def main():
167
167
  matched_primers_list.append(cleaned_primer_name)
168
168
 
169
169
  res_df = pd.DataFrame.from_dict(res_dict)
170
- res_df.to_csv(f"./{sample}_primer_validation.tsv", sep="\t", index=False)
170
+ res_tsv_name = f"./{sample}_primer_validation.tsv"
171
+ res_df.to_csv(res_tsv_name, sep="\t", index=False) if not res_df.empty else open(res_tsv_name, "w").close()
171
172
 
172
173
  fwd_primers_fw.close()
173
174
  rev_primers_fw.close()
@@ -72,12 +72,13 @@ class INSDCRunAccession(RootModel):
72
72
 
73
73
 
74
74
  class AmpliconResultTypes(StrEnum):
75
- """Class that models the two allowed statuses for successful amplicon analysis runs.
75
+ """Class that models the three allowed statuses for successful amplicon analysis runs.
76
76
  Pydantic validates Enums very simply without needing to declare a new function.
77
77
  """
78
78
 
79
79
  all_results = "all_results"
80
80
  no_asvs = "no_asvs"
81
+ dada2_stats_fail = "dada2_stats_fail"
81
82
 
82
83
 
83
84
  class AmpliconPassedRunsRecord(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mgnify_pipelines_toolkit
3
- Version: 1.2.9
3
+ Version: 1.2.11
4
4
  Summary: Collection of scripts and tools for MGnify pipelines
5
5
  Author-email: MGnify team <metagenomics-help@ebi.ac.uk>
6
6
  License: Apache Software License 2.0
@@ -4,7 +4,7 @@ mgnify_pipelines_toolkit/analysis/amplicon/classify_var_regions.py,sha256=8yFhmH
4
4
  mgnify_pipelines_toolkit/analysis/amplicon/make_asv_count_table.py,sha256=-g1FDwdEndWH9VvYLmc_NEs2l204kKjMHk65wag8T_s,8891
5
5
  mgnify_pipelines_toolkit/analysis/amplicon/mapseq_to_asv_table.py,sha256=BLqhflblUegCvuQic16PrFXfIXlFWmGkmWJyl4wJoLQ,5040
6
6
  mgnify_pipelines_toolkit/analysis/amplicon/permute_primers.py,sha256=1aGOJX9tC7M1rnd0U2PeJ681sUo02wxk7_ycJqeVt6s,2216
7
- mgnify_pipelines_toolkit/analysis/amplicon/primer_val_classification.py,sha256=-W_QmdmKAIqVC5n-RS8LX11hEQM4xdp5r1jkITB1CI8,5256
7
+ mgnify_pipelines_toolkit/analysis/amplicon/primer_val_classification.py,sha256=uGlQ0595rammsW-rnhh1UAEkoRUjLqCQ-tp377Mj180,5345
8
8
  mgnify_pipelines_toolkit/analysis/amplicon/remove_ambiguous_reads.py,sha256=Wu4tRtuRkgd3hoeuwPl_E5ghxIW7e_1vrcvFGWv_U4A,3173
9
9
  mgnify_pipelines_toolkit/analysis/amplicon/rev_comp_se_primers.py,sha256=yLpzkRJXAeXRUNgz60zopEwHcdprM2UDjquE-GkrFys,1722
10
10
  mgnify_pipelines_toolkit/analysis/amplicon/study_summary_generator.py,sha256=epVClL10QcllL8yu7YGjx0rXNVHL2GxHi-Ek0MOjsjo,13859
@@ -40,13 +40,13 @@ mgnify_pipelines_toolkit/constants/regex_fasta_header.py,sha256=G-xrc9b8zdmPTaOI
40
40
  mgnify_pipelines_toolkit/constants/tax_ranks.py,sha256=ekZN5OcMBhDRcj7XB_27wQ8fEnmAqMJc4aQ3pv4BRmI,1229
41
41
  mgnify_pipelines_toolkit/constants/thresholds.py,sha256=1AMBmoHBR0WjXZpkwJ7_Q-gfJtHXuCA4tZ-uvPhF0Xc,1085
42
42
  mgnify_pipelines_toolkit/constants/var_region_coordinates.py,sha256=0bM4MwarFiM5yTcp5AbAmQ0o-q-gWy7kknir9zJ9R0A,1312
43
- mgnify_pipelines_toolkit/schemas/schemas.py,sha256=he9igC80YTR32v1e5NslwTgtdVySmnXwK9iY9IBPNBg,23133
43
+ mgnify_pipelines_toolkit/schemas/schemas.py,sha256=0l1hOkF4AeN0YOm4CVGPoP-U8kEzAxbhNEk3VEezZ4g,23177
44
44
  mgnify_pipelines_toolkit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  mgnify_pipelines_toolkit/utils/fasta_to_delimited.py,sha256=lgYIR1S4crURY7C7nFtgE6QMV4u4zCNsUrVkcRnsEEo,3996
46
46
  mgnify_pipelines_toolkit/utils/get_mpt_version.py,sha256=aS9bWrC9CP7tpxoEVg6eEYt18-pmjG7fJl5Mchz4YOU,798
47
- mgnify_pipelines_toolkit-1.2.9.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
48
- mgnify_pipelines_toolkit-1.2.9.dist-info/METADATA,sha256=hxvefbAKXzSx05LR0jTdW3iW2fHlr2hxmNhY4TCdJ_4,5775
49
- mgnify_pipelines_toolkit-1.2.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
- mgnify_pipelines_toolkit-1.2.9.dist-info/entry_points.txt,sha256=7TJ8GgbKoX1xnQsOdWwMvwhIv4uuHCx7pMxKmZabPOs,3228
51
- mgnify_pipelines_toolkit-1.2.9.dist-info/top_level.txt,sha256=xA_wC7C01V3VwuDnqwRM2QYeJJ45WtvF6LVav4tYxuE,25
52
- mgnify_pipelines_toolkit-1.2.9.dist-info/RECORD,,
47
+ mgnify_pipelines_toolkit-1.2.11.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
48
+ mgnify_pipelines_toolkit-1.2.11.dist-info/METADATA,sha256=xziE8NaQ8tsUlY9JTEOX4Sf5KO4xnzD2hRL-nvHFryw,5776
49
+ mgnify_pipelines_toolkit-1.2.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
+ mgnify_pipelines_toolkit-1.2.11.dist-info/entry_points.txt,sha256=7TJ8GgbKoX1xnQsOdWwMvwhIv4uuHCx7pMxKmZabPOs,3228
51
+ mgnify_pipelines_toolkit-1.2.11.dist-info/top_level.txt,sha256=xA_wC7C01V3VwuDnqwRM2QYeJJ45WtvF6LVav4tYxuE,25
52
+ mgnify_pipelines_toolkit-1.2.11.dist-info/RECORD,,