varvamp 1.2.1__tar.gz → 1.2.2__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 (27) hide show
  1. {varvamp-1.2.1 → varvamp-1.2.2}/PKG-INFO +11 -2
  2. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/__init__.py +1 -1
  3. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/command.py +3 -3
  4. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/logging.py +1 -1
  5. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/reporting.py +4 -6
  6. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/scheme.py +2 -2
  7. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp.egg-info/PKG-INFO +11 -2
  8. {varvamp-1.2.1 → varvamp-1.2.2}/README.md +0 -0
  9. {varvamp-1.2.1 → varvamp-1.2.2}/setup.cfg +0 -0
  10. {varvamp-1.2.1 → varvamp-1.2.2}/setup.py +0 -0
  11. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/__main__.py +0 -0
  12. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/__init__.py +0 -0
  13. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/alignment.py +0 -0
  14. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/blast.py +0 -0
  15. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/consensus.py +0 -0
  16. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/default_config.py +0 -0
  17. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/get_config.py +0 -0
  18. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/param_estimation.py +0 -0
  19. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/primers.py +0 -0
  20. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/qpcr.py +0 -0
  21. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp/scripts/regions.py +0 -0
  22. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp.egg-info/SOURCES.txt +0 -0
  23. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp.egg-info/dependency_links.txt +0 -0
  24. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp.egg-info/entry_points.txt +0 -0
  25. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp.egg-info/not-zip-safe +0 -0
  26. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp.egg-info/requires.txt +0 -0
  27. {varvamp-1.2.1 → varvamp-1.2.2}/varvamp.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: varvamp
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Variable VirusAMPlicons (varVAMP) is a tool to design primers for highly diverse viruses
5
5
  Home-page: https://github.com/jonas-fuchs/varVAMP
6
6
  Author: Dr. Jonas Fuchs
@@ -15,6 +15,15 @@ Requires-Dist: primer3-py>=1.1.0
15
15
  Requires-Dist: pandas>=1.4.4
16
16
  Requires-Dist: numpy>=1.23.3
17
17
  Requires-Dist: seqfold>=0.7.15
18
+ Dynamic: author
19
+ Dynamic: author-email
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: requires-dist
25
+ Dynamic: requires-python
26
+ Dynamic: summary
18
27
 
19
28
 
20
29
  **var**iable **V**irus**AMP**licons (varVAMP) is a tool to design primers for highly diverse viruses. The input is an alignment of your viral (full-genome) sequences.
@@ -1,3 +1,3 @@
1
1
  """Tool to design amplicons for highly variable virusgenomes"""
2
2
  _program = "varvamp"
3
- __version__ = "1.2.1"
3
+ __version__ = "1.2.2"
@@ -119,7 +119,7 @@ def get_args(sysargs):
119
119
  type=int,
120
120
  metavar="100",
121
121
  default=100,
122
- help="min overlap of the amplicons"
122
+ help="min overlap of the amplicon inserts"
123
123
  )
124
124
  SINGLE_parser.add_argument(
125
125
  "-n",
@@ -505,8 +505,8 @@ def main():
505
505
  # write files that are shared in all modes
506
506
  reporting.write_regions_to_bed(primer_regions, args.name, data_dir)
507
507
  reporting.write_alignment(data_dir, alignment_cleaned)
508
- reporting.write_fasta(data_dir, f"majority_consensus", f"{args.name}_consensus",majority_consensus)
509
- reporting.write_fasta(results_dir, f"ambiguous_consensus", f"{args.name}_consensus", ambiguous_consensus)
508
+ reporting.write_fasta(data_dir, f"majority_consensus", f"{args.name}_majority_consensus",majority_consensus)
509
+ reporting.write_fasta(results_dir, f"ambiguous_consensus", f"{args.name}_ambiguous_consensus", ambiguous_consensus)
510
510
 
511
511
  # Functions called from here on return lists of amplicons that are refined step-wise into final schemes.
512
512
  # These lists that are passed between functions and later used for reporting consist of dictionary elemnts,
@@ -147,7 +147,7 @@ def raise_arg_errors(args, log_file):
147
147
  log_file,
148
148
  exit=True
149
149
  )
150
- if args.overlap < 50:
150
+ if args.overlap < 10:
151
151
  raise_error(
152
152
  "small overlaps might hinder downstream analyses. Consider increasing.",
153
153
  log_file
@@ -53,7 +53,7 @@ def write_regions_to_bed(primer_regions, scheme_name, path, mode=None):
53
53
  with open(outfile, 'w') as o:
54
54
  for counter, region in enumerate(primer_regions):
55
55
  print(
56
- f"{scheme_name}_consensus",
56
+ f"{scheme_name}_ambiguous_consensus",
57
57
  region[0],
58
58
  region[1],
59
59
  "REGION_"+str(counter),
@@ -68,9 +68,7 @@ def write_primers_to_bed(outfile, scheme_name, primer_name, primer_properties, n
68
68
  """
69
69
  with open(outfile, 'a') as o:
70
70
  # write header for primer bed
71
- if os.path.getsize(outfile) == 0 and sequence is not None:
72
- print("#chrom\tchromStart\tchromEnd\tprimer-name\tpool\tstrand\tprimer-sequence", file=o)
73
- data = [f"{scheme_name}_consensus",
71
+ data = [f"{scheme_name}_ambiguous_consensus",
74
72
  primer_properties[1], # start
75
73
  primer_properties[2], # stop
76
74
  primer_name,
@@ -150,7 +148,7 @@ def write_qpcr_to_files(path, final_schemes, ambiguous_consensus, scheme_name, l
150
148
  amp_name = f"{scheme_name}_{n}"
151
149
  # write bed amplicon file
152
150
  print(
153
- f"{scheme_name}_consensus",
151
+ f"{scheme_name}_ambiguous_consensus",
154
152
  amp["LEFT"][1],
155
153
  amp["RIGHT"][2],
156
154
  amp_name,
@@ -329,7 +327,7 @@ def write_scheme_to_files(path, amplicon_scheme, ambiguous_consensus, scheme_nam
329
327
  # write amplicon bed with amplicons sorted by start position
330
328
  for record in sorted(amplicon_bed_records, key=lambda x: x[0]):
331
329
  print(
332
- f"{scheme_name}_consensus",
330
+ f"{scheme_name}_ambiguous_consensus",
333
331
  *record,
334
332
  ".",
335
333
  sep="\t",
@@ -102,14 +102,14 @@ def create_amplicon_graph(amplicons, min_overlap):
102
102
 
103
103
  # add the maximum len of a primer to ensure that possible amplicon starts
104
104
  # before the min overlap
105
- min_overlap = min_overlap + config.PRIMER_SIZES[2]
105
+ min_overlap = min_overlap + config.PRIMER_SIZES[1]
106
106
 
107
107
  for current_amplicon in amplicons:
108
108
  # remember all vertices
109
109
  amplicon_id = current_amplicon["id"]
110
110
  nodes.append(amplicon_id)
111
111
  start = current_amplicon["LEFT"][1] + current_amplicon["length"]/2
112
- stop = current_amplicon["RIGHT"][2] - min_overlap
112
+ stop = current_amplicon["RIGHT"][1] - min_overlap
113
113
  for next_amplicon in amplicons:
114
114
  # check if the next amplicon lies within the start/stop range of
115
115
  # the current amplicon and if its non-overlapping part is large
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: varvamp
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Variable VirusAMPlicons (varVAMP) is a tool to design primers for highly diverse viruses
5
5
  Home-page: https://github.com/jonas-fuchs/varVAMP
6
6
  Author: Dr. Jonas Fuchs
@@ -15,6 +15,15 @@ Requires-Dist: primer3-py>=1.1.0
15
15
  Requires-Dist: pandas>=1.4.4
16
16
  Requires-Dist: numpy>=1.23.3
17
17
  Requires-Dist: seqfold>=0.7.15
18
+ Dynamic: author
19
+ Dynamic: author-email
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: requires-dist
25
+ Dynamic: requires-python
26
+ Dynamic: summary
18
27
 
19
28
 
20
29
  **var**iable **V**irus**AMP**licons (varVAMP) is a tool to design primers for highly diverse viruses. The input is an alignment of your viral (full-genome) sequences.
File without changes
File without changes
File without changes
File without changes
File without changes