loqusdb 2.6.9__tar.gz → 2.7.0__tar.gz

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.
Files changed (99) hide show
  1. {loqusdb-2.6.9 → loqusdb-2.7.0}/PKG-INFO +1 -1
  2. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/build_models/variant.py +11 -5
  3. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/load.py +6 -3
  4. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/update.py +3 -3
  5. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/load.py +13 -9
  6. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/update.py +6 -6
  7. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb.egg-info/PKG-INFO +1 -1
  8. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb.egg-info/requires.txt +0 -1
  9. {loqusdb-2.6.9 → loqusdb-2.7.0}/setup.py +4 -9
  10. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/conftest.py +1 -1
  11. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/vcf_tools/test_format_variant.py +4 -4
  12. {loqusdb-2.6.9 → loqusdb-2.7.0}/CHANGELOG.md +0 -0
  13. {loqusdb-2.6.9 → loqusdb-2.7.0}/CONTRIBUTING.md +0 -0
  14. {loqusdb-2.6.9 → loqusdb-2.7.0}/LICENSE +0 -0
  15. {loqusdb-2.6.9 → loqusdb-2.7.0}/MANIFEST.in +0 -0
  16. {loqusdb-2.6.9 → loqusdb-2.7.0}/README.md +0 -0
  17. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/__init__.py +0 -0
  18. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/__main__.py +0 -0
  19. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/build_models/__init__.py +0 -0
  20. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/build_models/case.py +0 -0
  21. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/build_models/profile_variant.py +0 -0
  22. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/__init__.py +0 -0
  23. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/annotate.py +0 -0
  24. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/cli.py +0 -0
  25. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/delete.py +0 -0
  26. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/export.py +0 -0
  27. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/identity.py +0 -0
  28. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/load_profile.py +0 -0
  29. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/migrate.py +0 -0
  30. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/restore.py +0 -0
  31. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/view.py +0 -0
  32. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/commands/wipe.py +0 -0
  33. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/constants/__init__.py +0 -0
  34. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/exceptions/__init__.py +0 -0
  35. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/exceptions/case.py +0 -0
  36. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/exceptions/profile.py +0 -0
  37. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/exceptions/vcf.py +0 -0
  38. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/log.py +0 -0
  39. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/models/__init__.py +0 -0
  40. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/models/case.py +0 -0
  41. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/models/identity.py +0 -0
  42. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/models/profile_variant.py +0 -0
  43. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/models/variant.py +0 -0
  44. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/plugins/__init__.py +0 -0
  45. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/plugins/mongo/__init__.py +0 -0
  46. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/plugins/mongo/adapter.py +0 -0
  47. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/plugins/mongo/case.py +0 -0
  48. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/plugins/mongo/profile_variant.py +0 -0
  49. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/plugins/mongo/structural_variant.py +0 -0
  50. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/plugins/mongo/variant.py +0 -0
  51. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/resources/__init__.py +0 -0
  52. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/__init__.py +0 -0
  53. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/annotate.py +0 -0
  54. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/case.py +0 -0
  55. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/delete.py +0 -0
  56. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/migrate.py +0 -0
  57. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/profiling.py +0 -0
  58. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/variant.py +0 -0
  59. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb/utils/vcf.py +0 -0
  60. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb.egg-info/SOURCES.txt +0 -0
  61. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb.egg-info/dependency_links.txt +0 -0
  62. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb.egg-info/entry_points.txt +0 -0
  63. {loqusdb-2.6.9 → loqusdb-2.7.0}/loqusdb.egg-info/top_level.txt +0 -0
  64. {loqusdb-2.6.9 → loqusdb-2.7.0}/setup.cfg +0 -0
  65. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/build_models/test_build_case.py +0 -0
  66. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/build_models/test_build_variant.py +0 -0
  67. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/build_models/test_is_greater.py +0 -0
  68. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/643594.clinical.SV.vcf +0 -0
  69. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/643594.clinical.vcf.gz +0 -0
  70. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/double_variant.vcf +0 -0
  71. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/funny_trio.ped +0 -0
  72. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/profile_snv.vcf +0 -0
  73. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/recessive_trio.ped +0 -0
  74. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/test.SV.vcf +0 -0
  75. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/test.vcf +0 -0
  76. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/test.vcf.gz +0 -0
  77. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/test.vcf.gz.tbi +0 -0
  78. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/fixtures/unsorted.vcf +0 -0
  79. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/functional/test_cli.py +0 -0
  80. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/plugins/mongo/test_case_operations.py +0 -0
  81. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/plugins/mongo/test_connect.py +0 -0
  82. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/plugins/mongo/test_flask_extension.py +0 -0
  83. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/plugins/mongo/test_get_sv.py +0 -0
  84. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/plugins/mongo/test_load_svs.py +0 -0
  85. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/plugins/mongo/test_variant_operations.py +0 -0
  86. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_case.py +0 -0
  87. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_delete.py +0 -0
  88. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_delete_family.py +0 -0
  89. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_delete_variant.py +0 -0
  90. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_get_family.py +0 -0
  91. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_load_database.py +0 -0
  92. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_load_family.py +0 -0
  93. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_load_variants.py +0 -0
  94. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_migrate.py +0 -0
  95. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/utils/test_profiling.py +0 -0
  96. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/vcf_tools/test_check_par.py +0 -0
  97. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/vcf_tools/test_check_vcf.py +0 -0
  98. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/vcf_tools/test_format_sv_variant.py +0 -0
  99. {loqusdb-2.6.9 → loqusdb-2.7.0}/tests/vcf_tools/test_vcf.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: loqusdb
3
- Version: 2.6.9
3
+ Version: 2.7.0
4
4
  Summary: Store observations of vcf variants in a mongodb
5
5
  Home-page: https://github.com/moonso/loqusdb
6
6
  Author: Måns Magnusson
@@ -139,19 +139,19 @@ def get_coords(variant):
139
139
  return coordinates
140
140
 
141
141
 
142
- def build_variant(variant, case_obj, case_id=None, gq_treshold=None, genome_build=None):
142
+ def build_variant(variant, case_obj, case_id=None, gq_threshold=None, gq_qual=False, genome_build=None):
143
143
  """Return a Variant object
144
144
 
145
145
  Take a cyvcf2 formated variant line and return a models.Variant.
146
146
 
147
147
  If criterias are not fullfilled, eg. variant have no gt call or quality
148
- is below gq treshold then return None.
148
+ is below gq threshold then return None.
149
149
 
150
150
  Args:
151
151
  variant(cyvcf2.Variant)
152
152
  case_obj(Case): We need the case object to check individuals sex
153
153
  case_id(str): The case id
154
- gq_treshold(int): Genotype Quality treshold
154
+ gq_threshold(int): Genotype Quality threshold
155
155
 
156
156
  Return:
157
157
  formated_variant(models.Variant): A variant dictionary
@@ -188,8 +188,14 @@ def build_variant(variant, case_obj, case_id=None, gq_treshold=None, genome_buil
188
188
  ind_id = ind_obj["ind_id"]
189
189
  # Get the index position for the individual in the VCF
190
190
  ind_pos = ind_obj["ind_index"]
191
- gq = int(variant.gt_quals[ind_pos])
192
- if gq_treshold and gq < gq_treshold:
191
+
192
+ if gq_qual:
193
+ gq = int(variant.QUAL)
194
+
195
+ if not gq_qual:
196
+ gq = int(variant.gt_quals[ind_pos])
197
+
198
+ if gq_threshold and gq < gq_threshold:
193
199
  continue
194
200
 
195
201
  genotype = GENOTYPE_MAP[variant.gt_types[ind_pos]]
@@ -54,7 +54,8 @@ def validate_profile_threshold(ctx, param, value):
54
54
  help="Do not store case information on variants",
55
55
  )
56
56
  @click.option("--ensure-index", is_flag=True, help="Make sure that the indexes are in place")
57
- @click.option("--gq-treshold", default=20, show_default=True, help="Treshold to consider variant")
57
+ @click.option("--gq-threshold", default=20, show_default=True, help="Threshold to consider variant")
58
+ @click.option("--qual-gq", is_flag=True, default=False, show_default=True, help="Use QUAL tag instead of GQ value for quality filter")
58
59
  @click.option(
59
60
  "--max-window",
60
61
  "-m",
@@ -89,13 +90,14 @@ def load(
89
90
  family_file,
90
91
  family_type,
91
92
  skip_case_id,
92
- gq_treshold,
93
+ gq_threshold,
93
94
  case_id,
94
95
  ensure_index,
95
96
  max_window,
96
97
  check_profile,
97
98
  hard_threshold,
98
99
  soft_threshold,
100
+ qual_gq
99
101
  ):
100
102
  """Load the variants of a case
101
103
 
@@ -136,7 +138,8 @@ def load(
136
138
  family_type=family_type,
137
139
  skip_case_id=skip_case_id,
138
140
  case_id=case_id,
139
- gq_treshold=gq_treshold,
141
+ gq_threshold=gq_threshold,
142
+ qual_gq=qual_gq,
140
143
  max_window=max_window,
141
144
  profile_file=variant_profile_path,
142
145
  hard_threshold=hard_threshold,
@@ -47,7 +47,7 @@ LOG = logging.getLogger(__name__)
47
47
  help="Do not store case information on variants",
48
48
  )
49
49
  @click.option("--ensure-index", is_flag=True, help="Make sure that the indexes are in place")
50
- @click.option("--gq-treshold", default=20, show_default=True, help="Treshold to consider variant")
50
+ @click.option("--gq-threshold", default=20, show_default=True, help="Threshold to consider variant")
51
51
  @click.option(
52
52
  "--max-window",
53
53
  "-m",
@@ -63,7 +63,7 @@ def update(
63
63
  family_file,
64
64
  family_type,
65
65
  skip_case_id,
66
- gq_treshold,
66
+ gq_threshold,
67
67
  case_id,
68
68
  ensure_index,
69
69
  max_window,
@@ -102,7 +102,7 @@ def update(
102
102
  family_type=family_type,
103
103
  skip_case_id=skip_case_id,
104
104
  case_id=case_id,
105
- gq_treshold=gq_treshold,
105
+ gq_threshold=gq_threshold,
106
106
  max_window=max_window,
107
107
  )
108
108
  except (SyntaxError, CaseError, IOError, VcfError) as error:
@@ -31,7 +31,8 @@ def load_database(
31
31
  family_file=None,
32
32
  family_type="ped",
33
33
  skip_case_id=False,
34
- gq_treshold=None,
34
+ gq_threshold=None,
35
+ qual_gq=False,
35
36
  case_id=None,
36
37
  max_window=3000,
37
38
  profile_file=None,
@@ -48,7 +49,8 @@ def load_database(
48
49
  family_file(str): Path to family file
49
50
  family_type(str): Format of family file
50
51
  skip_case_id(bool): If no case information should be added to variants
51
- gq_treshold(int): If only quality variants should be considered
52
+ gq_threshold(int): If only quality variants should be considered
53
+ qual_gq(bool): Use QUAL field instead of GQ format tag to gate quality
52
54
  case_id(str): If different case id than the one in family file should be used
53
55
  max_window(int): Specify the max size for sv windows
54
56
  check_profile(bool): Does profile check if True
@@ -87,13 +89,13 @@ def load_database(
87
89
  adapter, profiles, hard_threshold=hard_threshold, soft_threshold=soft_threshold
88
90
  )
89
91
 
90
- # If a gq treshold is used the variants needs to have GQ
92
+ # If a gq threshold is used the variants needs to have GQ
91
93
  for _vcf_file in vcf_files:
92
94
  # Get a cyvcf2.VCF object
93
95
  vcf = get_vcf(_vcf_file)
94
96
 
95
- if gq_treshold and not vcf.contains("GQ"):
96
- LOG.warning("Set gq-treshold to 0 or add info to vcf {0}".format(_vcf_file))
97
+ if gq_threshold and not vcf.contains("GQ") and not qual_gq:
98
+ LOG.warning("Set gq-threshold to 0 or add info to vcf {0}".format(_vcf_file))
97
99
  raise SyntaxError("GQ is not defined in vcf header")
98
100
 
99
101
  # Get a ped_parser.Family object from family file
@@ -143,7 +145,8 @@ def load_database(
143
145
  vcf_obj=vcf_obj,
144
146
  case_obj=case_obj,
145
147
  skip_case_id=skip_case_id,
146
- gq_treshold=gq_treshold,
148
+ gq_threshold=gq_threshold,
149
+ qual_gq=qual_gq,
147
150
  max_window=max_window,
148
151
  variant_type=variant_type,
149
152
  genome_build=genome_build,
@@ -189,7 +192,8 @@ def load_variants(
189
192
  vcf_obj,
190
193
  case_obj,
191
194
  skip_case_id=False,
192
- gq_treshold=None,
195
+ gq_threshold=None,
196
+ qual_gq=False,
193
197
  max_window=3000,
194
198
  variant_type="snv",
195
199
  genome_build=None,
@@ -202,7 +206,7 @@ def load_variants(
202
206
  nr_variants(int)
203
207
  skip_case_id (bool): whether to include the case id on variant level
204
208
  or not
205
- gq_treshold(int)
209
+ gq_threshold(int)
206
210
  max_window(int): Specify the max size for sv windows
207
211
  variant_type(str): 'sv' or 'snv'
208
212
 
@@ -222,7 +226,7 @@ def load_variants(
222
226
  with click.progressbar(vcf_obj, label="Inserting variants", length=nr_variants) as bar:
223
227
 
224
228
  variants = (
225
- build_variant(variant, case_obj, case_id, gq_treshold, genome_build=genome_build)
229
+ build_variant(variant, case_obj, case_id, gq_threshold, qual_gq, genome_build=genome_build)
226
230
  for variant in bar
227
231
  )
228
232
 
@@ -28,7 +28,7 @@ def update_database(
28
28
  family_file=None,
29
29
  family_type="ped",
30
30
  skip_case_id=False,
31
- gq_treshold=None,
31
+ gq_threshold=None,
32
32
  case_id=None,
33
33
  max_window=3000,
34
34
  ):
@@ -41,7 +41,7 @@ def update_database(
41
41
  family_file(str): Path to family file
42
42
  family_type(str): Format of family file
43
43
  skip_case_id(bool): If no case information should be added to variants
44
- gq_treshold(int): If only quality variants should be considered
44
+ gq_threshold(int): If only quality variants should be considered
45
45
  case_id(str): If different case id than the one in family file should be used
46
46
  max_window(int): Specify the max size for sv windows
47
47
 
@@ -67,14 +67,14 @@ def update_database(
67
67
  vcf_files.append(sv_file)
68
68
  sv_individuals = vcf_info["individuals"]
69
69
 
70
- # If a gq treshold is used the variants needs to have GQ
70
+ # If a gq threshold is used the variants needs to have GQ
71
71
  for _vcf_file in vcf_files:
72
72
  # Get a cyvcf2.VCF object
73
73
  vcf = get_vcf(_vcf_file)
74
74
 
75
- if gq_treshold:
75
+ if gq_threshold:
76
76
  if not vcf.contains("GQ"):
77
- LOG.warning("Set gq-treshold to 0 or add info to vcf {0}".format(_vcf_file))
77
+ LOG.warning("Set gq-threshold to 0 or add info to vcf {0}".format(_vcf_file))
78
78
  raise SyntaxError("GQ is not defined in vcf header")
79
79
 
80
80
  # Get a ped_parser.Family object from family file
@@ -127,7 +127,7 @@ def update_database(
127
127
  vcf_obj=vcf_obj,
128
128
  case_obj=case_obj,
129
129
  skip_case_id=skip_case_id,
130
- gq_treshold=gq_treshold,
130
+ gq_threshold=gq_threshold,
131
131
  max_window=max_window,
132
132
  variant_type=variant_type,
133
133
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: loqusdb
3
- Version: 2.6.9
3
+ Version: 2.7.0
4
4
  Summary: Store observations of vcf variants in a mongodb
5
5
  Home-page: https://github.com/moonso/loqusdb
6
6
  Author: Måns Magnusson
@@ -7,7 +7,6 @@ numpy==1.21.4
7
7
  coloredlogs==14.0
8
8
  pyyaml==5.4.0
9
9
  vcftoolbox==1.5
10
- pip==21.3.1
11
10
  setuptools==59.2.0
12
11
  mongo_adapter>=0.3.3
13
12
  ped_parser
@@ -10,8 +10,6 @@
10
10
  import io
11
11
  import os
12
12
 
13
- from pip._internal.network.session import PipSession
14
- from pip._internal.req import parse_requirements
15
13
  from setuptools import find_packages, setup
16
14
 
17
15
  # Package meta-data.
@@ -21,13 +19,10 @@ URL = "https://github.com/moonso/loqusdb"
21
19
  EMAIL = "mans.magnusson@scilifelab.com"
22
20
  AUTHOR = "Måns Magnusson"
23
21
  REQUIRES_PYTHON = ">=3.7.0"
24
- VERSION = "2.6.9"
25
-
26
- requirements = [
27
- requirement.requirement
28
- for requirement in parse_requirements(filename="./requirements.txt", session=PipSession())
29
- ]
22
+ VERSION = "2.7.0"
30
23
 
24
+ with open('requirements.txt') as f:
25
+ install_requires = f.read().strip().split('\n')
31
26
 
32
27
  # The rest you shouldn't have to touch too much :)
33
28
  # ------------------------------------------------
@@ -68,7 +63,7 @@ setup(
68
63
  entry_points={
69
64
  "console_scripts": ["loqusdb = loqusdb.__main__:base_command"],
70
65
  },
71
- install_requires=requirements,
66
+ install_requires=install_requires,
72
67
  include_package_data=True,
73
68
  license="MIT",
74
69
  keywords=["vcf", "variants"],
@@ -319,7 +319,7 @@ def variant_obj(request, het_variant, ind_positions, individuals):
319
319
  individuals=individuals,
320
320
  ind_positions=ind_positions,
321
321
  case_id="test",
322
- gq_treshold=None,
322
+ gq_threshold=None,
323
323
  )
324
324
 
325
325
 
@@ -25,9 +25,9 @@ def test_format_variant_no_gq(variant_no_gq, case_obj):
25
25
  ## GIVEN a variant without GQ
26
26
  variant = variant_no_gq
27
27
  case_id = case_obj["case_id"]
28
- ## WHEN parsing the variant using a GQ treshold
28
+ ## WHEN parsing the variant using a GQ threshold
29
29
  formated_variant = build_variant(
30
- variant=variant, case_obj=case_obj, case_id=case_id, gq_treshold=20
30
+ variant=variant, case_obj=case_obj, case_id=case_id, gq_threshold=20
31
31
  )
32
32
  ## THEN assert that None is returned since requirements are not fulfilled
33
33
  assert formated_variant is None
@@ -38,9 +38,9 @@ def test_format_variant_chr_prefix(variant_chr, case_obj):
38
38
  variant = variant_chr
39
39
  assert variant.CHROM.startswith("chr")
40
40
  case_id = case_obj["case_id"]
41
- ## WHEN parsing the variant using a GQ treshold
41
+ ## WHEN parsing the variant using a GQ threshold
42
42
  formated_variant = build_variant(
43
- variant=variant, case_obj=case_obj, case_id=case_id, gq_treshold=20
43
+ variant=variant, case_obj=case_obj, case_id=case_id, gq_threshold=20
44
44
  )
45
45
  ## THEN assert that the 'chr' part has been stripped away
46
46
  assert formated_variant["chrom"] == variant.CHROM[3:]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes