seqpad 1.0.5__tar.gz → 1.0.7__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.
- {seqpad-1.0.5/src/seqpad.egg-info → seqpad-1.0.7}/PKG-INFO +30 -4
- seqpad-1.0.7/README.rst +62 -0
- {seqpad-1.0.5 → seqpad-1.0.7}/pyproject.toml +3 -3
- seqpad-1.0.7/src/seqpad/tests/__init__.py +0 -0
- seqpad-1.0.7/src/seqpad/tests/test_triplets.py +46 -0
- {seqpad-1.0.5 → seqpad-1.0.7/src/seqpad.egg-info}/PKG-INFO +30 -4
- {seqpad-1.0.5 → seqpad-1.0.7}/src/seqpad.egg-info/SOURCES.txt +3 -1
- seqpad-1.0.5/README.rst +0 -37
- {seqpad-1.0.5 → seqpad-1.0.7}/LICENSE.txt +0 -0
- {seqpad-1.0.5 → seqpad-1.0.7}/MANIFEST.in +0 -0
- {seqpad-1.0.5 → seqpad-1.0.7}/setup.cfg +0 -0
- {seqpad-1.0.5 → seqpad-1.0.7}/src/seqpad/__init__.py +0 -0
- {seqpad-1.0.5 → seqpad-1.0.7}/src/seqpad/__main__.py +0 -0
- {seqpad-1.0.5 → seqpad-1.0.7}/src/seqpad.egg-info/dependency_links.txt +0 -0
- {seqpad-1.0.5 → seqpad-1.0.7}/src/seqpad.egg-info/requires.txt +0 -0
- {seqpad-1.0.5 → seqpad-1.0.7}/src/seqpad.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: seqpad
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Summary: Pad nucleotide sequence.
|
|
5
|
-
Author-email: Johannes <johannes-programming@mailfence.com
|
|
5
|
+
Author-email: Johannes <johannes-programming@mailfence.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
7
7
|
|
|
8
8
|
Copyright (c) 2023 Johannes Programming
|
|
@@ -27,11 +27,12 @@ License: The MIT License (MIT)
|
|
|
27
27
|
Project-URL: Documentation, https://pypi.org/project/seqpad
|
|
28
28
|
Project-URL: Download, https://pypi.org/project/seqpad/#files
|
|
29
29
|
Project-URL: Source, https://github.com/johannes-programming/seqpad
|
|
30
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
30
31
|
Classifier: License :: OSI Approved :: MIT License
|
|
31
32
|
Classifier: Programming Language :: Python
|
|
32
33
|
Classifier: Programming Language :: Python :: 3
|
|
33
34
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
34
|
-
Requires-Python: >=3.
|
|
35
|
+
Requires-Python: >=3.8
|
|
35
36
|
Description-Content-Type: text/x-rst
|
|
36
37
|
License-File: LICENSE.txt
|
|
37
38
|
Requires-Dist: click>=8.1.7
|
|
@@ -55,6 +56,31 @@ To install ``seqpad``, you can use ``pip``. Open your terminal and run:
|
|
|
55
56
|
|
|
56
57
|
pip install seqpad
|
|
57
58
|
|
|
59
|
+
Features
|
|
60
|
+
--------
|
|
61
|
+
|
|
62
|
+
The core function of this project is implemented as follows:
|
|
63
|
+
|
|
64
|
+
.. code-block:: python
|
|
65
|
+
|
|
66
|
+
def seqpad(seq):
|
|
67
|
+
while len(seq) % 3 != 0:
|
|
68
|
+
seq += "N"
|
|
69
|
+
return seq
|
|
70
|
+
|
|
71
|
+
The project also provides a CLI that can also be accessed from within python. For more information read the help message that can be accessed through one of the two following ways.
|
|
72
|
+
|
|
73
|
+
.. code-block:: bash
|
|
74
|
+
|
|
75
|
+
# bash
|
|
76
|
+
python3 -m seqpad -h
|
|
77
|
+
|
|
78
|
+
.. code-block:: python
|
|
79
|
+
|
|
80
|
+
# python
|
|
81
|
+
import seqpad
|
|
82
|
+
seqpad.main(['-h'])
|
|
83
|
+
|
|
58
84
|
License
|
|
59
85
|
-------
|
|
60
86
|
|
|
@@ -71,6 +97,6 @@ Credits
|
|
|
71
97
|
-------
|
|
72
98
|
|
|
73
99
|
* Author: Johannes
|
|
74
|
-
* Email: johannes-programming@mailfence.com
|
|
100
|
+
* Email: `johannes-programming@mailfence.com <mailto:johannes-programming@mailfence.com>`_
|
|
75
101
|
|
|
76
102
|
Thank you for using ``seqpad``!
|
seqpad-1.0.7/README.rst
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
======
|
|
2
|
+
seqpad
|
|
3
|
+
======
|
|
4
|
+
|
|
5
|
+
Overview
|
|
6
|
+
--------
|
|
7
|
+
|
|
8
|
+
Pad nucleotide sequence.
|
|
9
|
+
|
|
10
|
+
Installation
|
|
11
|
+
------------
|
|
12
|
+
|
|
13
|
+
To install ``seqpad``, you can use ``pip``. Open your terminal and run:
|
|
14
|
+
|
|
15
|
+
.. code-block:: bash
|
|
16
|
+
|
|
17
|
+
pip install seqpad
|
|
18
|
+
|
|
19
|
+
Features
|
|
20
|
+
--------
|
|
21
|
+
|
|
22
|
+
The core function of this project is implemented as follows:
|
|
23
|
+
|
|
24
|
+
.. code-block:: python
|
|
25
|
+
|
|
26
|
+
def seqpad(seq):
|
|
27
|
+
while len(seq) % 3 != 0:
|
|
28
|
+
seq += "N"
|
|
29
|
+
return seq
|
|
30
|
+
|
|
31
|
+
The project also provides a CLI that can also be accessed from within python. For more information read the help message that can be accessed through one of the two following ways.
|
|
32
|
+
|
|
33
|
+
.. code-block:: bash
|
|
34
|
+
|
|
35
|
+
# bash
|
|
36
|
+
python3 -m seqpad -h
|
|
37
|
+
|
|
38
|
+
.. code-block:: python
|
|
39
|
+
|
|
40
|
+
# python
|
|
41
|
+
import seqpad
|
|
42
|
+
seqpad.main(['-h'])
|
|
43
|
+
|
|
44
|
+
License
|
|
45
|
+
-------
|
|
46
|
+
|
|
47
|
+
This project is licensed under the MIT License.
|
|
48
|
+
|
|
49
|
+
Links
|
|
50
|
+
-----
|
|
51
|
+
|
|
52
|
+
* `Documentation <https://pypi.org/project/seqpad>`_
|
|
53
|
+
* `Download <https://pypi.org/project/seqpad/#files>`_
|
|
54
|
+
* `Source <https://github.com/johannes-programming/seqpad>`_
|
|
55
|
+
|
|
56
|
+
Credits
|
|
57
|
+
-------
|
|
58
|
+
|
|
59
|
+
* Author: Johannes
|
|
60
|
+
* Email: `johannes-programming@mailfence.com <mailto:johannes-programming@mailfence.com>`_
|
|
61
|
+
|
|
62
|
+
Thank you for using ``seqpad``!
|
|
@@ -7,9 +7,9 @@ requires = [
|
|
|
7
7
|
[project]
|
|
8
8
|
authors = [
|
|
9
9
|
{ email = "johannes-programming@mailfence.com", name = "Johannes" },
|
|
10
|
-
{ email = "johannes-programming@posteo.org", name = "Johannes Programming" },
|
|
11
10
|
]
|
|
12
11
|
classifiers = [
|
|
12
|
+
"Development Status :: 5 - Production/Stable",
|
|
13
13
|
"License :: OSI Approved :: MIT License",
|
|
14
14
|
"Programming Language :: Python",
|
|
15
15
|
"Programming Language :: Python :: 3",
|
|
@@ -23,8 +23,8 @@ description = "Pad nucleotide sequence."
|
|
|
23
23
|
keywords = []
|
|
24
24
|
name = "seqpad"
|
|
25
25
|
readme = "README.rst"
|
|
26
|
-
requires-python = ">=3.
|
|
27
|
-
version = "1.0.
|
|
26
|
+
requires-python = ">=3.8"
|
|
27
|
+
version = "1.0.7"
|
|
28
28
|
|
|
29
29
|
[project.license]
|
|
30
30
|
file = "LICENSE.txt"
|
|
File without changes
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
|
|
3
|
+
# Importing the function to be tested
|
|
4
|
+
from seqpad import seqpad
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TestSeqPad(unittest.TestCase):
|
|
8
|
+
|
|
9
|
+
def test_already_multiple_of_three(self):
|
|
10
|
+
# Test case where sequence length is already a multiple of three
|
|
11
|
+
self.assertEqual(seqpad("ATG"), "ATG")
|
|
12
|
+
self.assertEqual(len(seqpad("ATG")), 3)
|
|
13
|
+
|
|
14
|
+
def test_not_multiple_of_three(self):
|
|
15
|
+
# Test case where sequence length is not a multiple of three
|
|
16
|
+
self.assertEqual(seqpad("AT"), "ATN")
|
|
17
|
+
self.assertEqual(len(seqpad("AT")), 3)
|
|
18
|
+
self.assertEqual(len(seqpad("ATN")), 3)
|
|
19
|
+
|
|
20
|
+
self.assertEqual(seqpad("ATGCA"), "ATGCAN")
|
|
21
|
+
self.assertEqual(len(seqpad("ATGCA")), 6)
|
|
22
|
+
self.assertEqual(len(seqpad("ATGCAN")), 6)
|
|
23
|
+
|
|
24
|
+
def test_empty_sequence(self):
|
|
25
|
+
# Test case where input sequence is empty
|
|
26
|
+
self.assertEqual(seqpad(""), "")
|
|
27
|
+
self.assertEqual(len(seqpad("")), 0)
|
|
28
|
+
|
|
29
|
+
def test_length_of_result(self):
|
|
30
|
+
# Check if the result has length that is a multiple of three
|
|
31
|
+
test_sequences = ["A", "AT", "ATGCA", "ATGCGTACG"]
|
|
32
|
+
|
|
33
|
+
for seq in test_sequences:
|
|
34
|
+
padded_seq = seqpad(seq)
|
|
35
|
+
self.assertEqual(len(padded_seq) % 3, 0, f"Failed for input: {seq}")
|
|
36
|
+
|
|
37
|
+
def test_edge_cases(self):
|
|
38
|
+
# Testing edge cases such as strings with non-standard nucleotides
|
|
39
|
+
self.assertEqual(seqpad("NNN"), "NNN")
|
|
40
|
+
self.assertEqual(seqpad("N"), "NNN")
|
|
41
|
+
self.assertEqual(len(seqpad("N")), 3)
|
|
42
|
+
self.assertEqual(len(seqpad("NNN")), 3)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
if __name__ == "__main__":
|
|
46
|
+
unittest.main()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: seqpad
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
4
4
|
Summary: Pad nucleotide sequence.
|
|
5
|
-
Author-email: Johannes <johannes-programming@mailfence.com
|
|
5
|
+
Author-email: Johannes <johannes-programming@mailfence.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
7
7
|
|
|
8
8
|
Copyright (c) 2023 Johannes Programming
|
|
@@ -27,11 +27,12 @@ License: The MIT License (MIT)
|
|
|
27
27
|
Project-URL: Documentation, https://pypi.org/project/seqpad
|
|
28
28
|
Project-URL: Download, https://pypi.org/project/seqpad/#files
|
|
29
29
|
Project-URL: Source, https://github.com/johannes-programming/seqpad
|
|
30
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
30
31
|
Classifier: License :: OSI Approved :: MIT License
|
|
31
32
|
Classifier: Programming Language :: Python
|
|
32
33
|
Classifier: Programming Language :: Python :: 3
|
|
33
34
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
34
|
-
Requires-Python: >=3.
|
|
35
|
+
Requires-Python: >=3.8
|
|
35
36
|
Description-Content-Type: text/x-rst
|
|
36
37
|
License-File: LICENSE.txt
|
|
37
38
|
Requires-Dist: click>=8.1.7
|
|
@@ -55,6 +56,31 @@ To install ``seqpad``, you can use ``pip``. Open your terminal and run:
|
|
|
55
56
|
|
|
56
57
|
pip install seqpad
|
|
57
58
|
|
|
59
|
+
Features
|
|
60
|
+
--------
|
|
61
|
+
|
|
62
|
+
The core function of this project is implemented as follows:
|
|
63
|
+
|
|
64
|
+
.. code-block:: python
|
|
65
|
+
|
|
66
|
+
def seqpad(seq):
|
|
67
|
+
while len(seq) % 3 != 0:
|
|
68
|
+
seq += "N"
|
|
69
|
+
return seq
|
|
70
|
+
|
|
71
|
+
The project also provides a CLI that can also be accessed from within python. For more information read the help message that can be accessed through one of the two following ways.
|
|
72
|
+
|
|
73
|
+
.. code-block:: bash
|
|
74
|
+
|
|
75
|
+
# bash
|
|
76
|
+
python3 -m seqpad -h
|
|
77
|
+
|
|
78
|
+
.. code-block:: python
|
|
79
|
+
|
|
80
|
+
# python
|
|
81
|
+
import seqpad
|
|
82
|
+
seqpad.main(['-h'])
|
|
83
|
+
|
|
58
84
|
License
|
|
59
85
|
-------
|
|
60
86
|
|
|
@@ -71,6 +97,6 @@ Credits
|
|
|
71
97
|
-------
|
|
72
98
|
|
|
73
99
|
* Author: Johannes
|
|
74
|
-
* Email: johannes-programming@mailfence.com
|
|
100
|
+
* Email: `johannes-programming@mailfence.com <mailto:johannes-programming@mailfence.com>`_
|
|
75
101
|
|
|
76
102
|
Thank you for using ``seqpad``!
|
|
@@ -9,4 +9,6 @@ src/seqpad.egg-info/PKG-INFO
|
|
|
9
9
|
src/seqpad.egg-info/SOURCES.txt
|
|
10
10
|
src/seqpad.egg-info/dependency_links.txt
|
|
11
11
|
src/seqpad.egg-info/requires.txt
|
|
12
|
-
src/seqpad.egg-info/top_level.txt
|
|
12
|
+
src/seqpad.egg-info/top_level.txt
|
|
13
|
+
src/seqpad/tests/__init__.py
|
|
14
|
+
src/seqpad/tests/test_triplets.py
|
seqpad-1.0.5/README.rst
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
======
|
|
2
|
-
seqpad
|
|
3
|
-
======
|
|
4
|
-
|
|
5
|
-
Overview
|
|
6
|
-
--------
|
|
7
|
-
|
|
8
|
-
Pad nucleotide sequence.
|
|
9
|
-
|
|
10
|
-
Installation
|
|
11
|
-
------------
|
|
12
|
-
|
|
13
|
-
To install ``seqpad``, you can use ``pip``. Open your terminal and run:
|
|
14
|
-
|
|
15
|
-
.. code-block:: bash
|
|
16
|
-
|
|
17
|
-
pip install seqpad
|
|
18
|
-
|
|
19
|
-
License
|
|
20
|
-
-------
|
|
21
|
-
|
|
22
|
-
This project is licensed under the MIT License.
|
|
23
|
-
|
|
24
|
-
Links
|
|
25
|
-
-----
|
|
26
|
-
|
|
27
|
-
* `Documentation <https://pypi.org/project/seqpad>`_
|
|
28
|
-
* `Download <https://pypi.org/project/seqpad/#files>`_
|
|
29
|
-
* `Source <https://github.com/johannes-programming/seqpad>`_
|
|
30
|
-
|
|
31
|
-
Credits
|
|
32
|
-
-------
|
|
33
|
-
|
|
34
|
-
* Author: Johannes
|
|
35
|
-
* Email: johannes-programming@mailfence.com
|
|
36
|
-
|
|
37
|
-
Thank you for using ``seqpad``!
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|