varvamp 1.2.1__py3-none-any.whl → 1.2.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.
- varvamp/__init__.py +1 -1
- varvamp/command.py +3 -3
- varvamp/scripts/logging.py +1 -1
- varvamp/scripts/reporting.py +4 -6
- varvamp/scripts/scheme.py +2 -2
- {varvamp-1.2.1.dist-info → varvamp-1.2.2.dist-info}/METADATA +17 -8
- {varvamp-1.2.1.dist-info → varvamp-1.2.2.dist-info}/RECORD +10 -10
- {varvamp-1.2.1.dist-info → varvamp-1.2.2.dist-info}/WHEEL +1 -1
- {varvamp-1.2.1.dist-info → varvamp-1.2.2.dist-info}/entry_points.txt +0 -0
- {varvamp-1.2.1.dist-info → varvamp-1.2.2.dist-info}/top_level.txt +0 -0
varvamp/__init__.py
CHANGED
varvamp/command.py
CHANGED
|
@@ -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
|
|
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}
|
|
509
|
-
reporting.write_fasta(results_dir, f"ambiguous_consensus", f"{args.name}
|
|
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,
|
varvamp/scripts/logging.py
CHANGED
varvamp/scripts/reporting.py
CHANGED
|
@@ -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}
|
|
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
|
-
|
|
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}
|
|
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}
|
|
330
|
+
f"{scheme_name}_ambiguous_consensus",
|
|
333
331
|
*record,
|
|
334
332
|
".",
|
|
335
333
|
sep="\t",
|
varvamp/scripts/scheme.py
CHANGED
|
@@ -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[
|
|
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"][
|
|
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
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: varvamp
|
|
3
|
-
Version: 1.2.
|
|
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
|
|
@@ -9,12 +9,21 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
9
9
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
10
10
|
Requires-Python: >=3.9
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist: biopython
|
|
13
|
-
Requires-Dist: matplotlib
|
|
14
|
-
Requires-Dist: primer3-py
|
|
15
|
-
Requires-Dist: pandas
|
|
16
|
-
Requires-Dist: numpy
|
|
17
|
-
Requires-Dist: seqfold
|
|
12
|
+
Requires-Dist: biopython>=1.79
|
|
13
|
+
Requires-Dist: matplotlib>=3.5.1
|
|
14
|
+
Requires-Dist: primer3-py>=1.1.0
|
|
15
|
+
Requires-Dist: pandas>=1.4.4
|
|
16
|
+
Requires-Dist: numpy>=1.23.3
|
|
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,21 +1,21 @@
|
|
|
1
|
-
varvamp/__init__.py,sha256=
|
|
1
|
+
varvamp/__init__.py,sha256=wCHzWXwkVwFmeC5JBU1NcQH5A-wYZkWuit357pqziQA,107
|
|
2
2
|
varvamp/__main__.py,sha256=9R3mbX2_Q5LByPx8WLoTbvZ-G2dbRSMpDlgze0Wm5Fc,98
|
|
3
|
-
varvamp/command.py,sha256=
|
|
3
|
+
varvamp/command.py,sha256=9SOR3G9Ew0bJMQt_osWI9QW2Hh671kjez02SwhcnOAY,19749
|
|
4
4
|
varvamp/scripts/__init__.py,sha256=DtRsgfnA60BvccKMuD-Ueo1UpxaeANUfIWxGi1xPcV0,46
|
|
5
5
|
varvamp/scripts/alignment.py,sha256=w2I7BnaUt_rh1EaDQaU9Q_dmL_q019NtnaC8YMccOgM,7317
|
|
6
6
|
varvamp/scripts/blast.py,sha256=yF1-FjL7-P8sxSO6x4Q15gzj_I3LbE8ZfP37w6K3Akk,8434
|
|
7
7
|
varvamp/scripts/consensus.py,sha256=eU5eKU9iXyWeln2BW_LMPI8JiEq0_NXBI0jy4kMOvQg,3375
|
|
8
8
|
varvamp/scripts/default_config.py,sha256=8yjZ1ugZ5pus1daWRXeQMo-lVIikJXV4_q7FPEkTS64,3766
|
|
9
9
|
varvamp/scripts/get_config.py,sha256=Kvg3YhttUbDeRxjKhfxLjI5JSKpPoiLSEYqcE6rT4Xk,2940
|
|
10
|
-
varvamp/scripts/logging.py,sha256=
|
|
10
|
+
varvamp/scripts/logging.py,sha256=Vg_iojqrTejjKYOwba5VGm0gAi_-cQ5h7WNx0bMnmBc,20820
|
|
11
11
|
varvamp/scripts/param_estimation.py,sha256=jpfmbjCFp23V07af3y1uO2dQZJiWLlyOBa11aMphkko,3694
|
|
12
12
|
varvamp/scripts/primers.py,sha256=zLNs3lWiHS0dBmRIMpi8v0XxWi26JrS43YJW7xhEneM,13422
|
|
13
13
|
varvamp/scripts/qpcr.py,sha256=qO6JTl36WMUZGoz6NHIjRrtMOF87yQedmj-sE85Yay8,14453
|
|
14
14
|
varvamp/scripts/regions.py,sha256=VgYAlZmkC3rT946yhAdxATi-YT4oGcEwAPa0BkkfWIg,3239
|
|
15
|
-
varvamp/scripts/reporting.py,sha256=
|
|
16
|
-
varvamp/scripts/scheme.py,sha256=
|
|
17
|
-
varvamp-1.2.
|
|
18
|
-
varvamp-1.2.
|
|
19
|
-
varvamp-1.2.
|
|
20
|
-
varvamp-1.2.
|
|
21
|
-
varvamp-1.2.
|
|
15
|
+
varvamp/scripts/reporting.py,sha256=KGy3Nicb8q3dgyzkNqYQa6BYlUsWzERv_5O2TDkpY5s,22792
|
|
16
|
+
varvamp/scripts/scheme.py,sha256=8pg8n5WMVUx23Pb7fNjUlLIpV_TqszVIAvvlcgqg8mo,16198
|
|
17
|
+
varvamp-1.2.2.dist-info/METADATA,sha256=dgoF0hWirC5BQAQwMUOaMiLV6K2C16yUTotKOAacajo,5573
|
|
18
|
+
varvamp-1.2.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
19
|
+
varvamp-1.2.2.dist-info/entry_points.txt,sha256=puzW-basyBexZT4JVRUfUEqobvFmEyfqRQaqFjp7rB0,49
|
|
20
|
+
varvamp-1.2.2.dist-info/top_level.txt,sha256=11oVwE3SBUB9aTmvpvEDru95Tc5GZqQikzzFjw2eVGc,8
|
|
21
|
+
varvamp-1.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|