8000 Extend the .counts method of an Alignment by mdehoon · Pull Request #5011 · biopython/biopython · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Extend the .counts method of an Alignment #5011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 176 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
1623d6b
update
Mar 13, 2025
69504de
update
Mar 15, 2025
1437481
update
Mar 15, 2025
ac261b2
update
Mar 16, 2025
14e5ce8
update
Mar 17, 2025
8e0ef69
update
Mar 17, 2025
8000 6fa7c64
update
Mar 17, 2025
40f5c2f
update
Mar 19, 2025
67f8392
update
Mar 19, 2025
ce5062b
update
Mar 19, 2025
dd5a493
update
Mar 19, 2025
3aea169
update
Mar 19, 2025
9318dff
update
Mar 19, 2025
c625a2d
update
Mar 19, 2025
4d42b14
update
Mar 19, 2025
44386dc
update
Mar 20, 2025
43c70ce
update
Mar 20, 2025
2888e94
update
Mar 27, 2025
8b7abf4
update
Apr 19, 2025
156ac99
update
Apr 19, 2025
07c839d
update
Apr 20, 2025
281b3ff
update
Apr 21, 2025
f066234
update
Apr 21, 2025
3924793
update
Apr 21, 2025
236f38c
update
Apr 21, 2025
f98d414
update
Apr 22, 2025
a060117
update
Apr 22, 2025
fd44b36
update
Apr 22, 2025
d1662fb
update
Apr 22, 2025
ce78e5b
update
Apr 22, 2025
6b04cb7
update
Apr 27, 2025
e81a2c4
update
Apr 27, 2025
749be55
update
Apr 27, 2025
41ba16e
update
May 2, 2025
03ebb6b
update
May 2, 2025
b88c7f8
update
May 2, 2025
63d889e
update
May 2, 2025
e0b2166
update
May 6, 2025
114f66c
update
May 10, 2025
dd8d469
update
May 10, 2025
19fef4a
update
May 11, 2025
d54b9e9
update
May 11, 2025
e4063e8
update
May 11, 2025
3b25f32
update
May 12, 2025
a631edf
update
May 12, 2025
2c31731
update
May 12, 2025
351326d
update
May 12, 2025
11f069b
update
May 12, 2025
0c2b9a8
update
May 12, 2025
dbac864
update
May 12, 2025
cec71aa
update
May 12, 2025
ee7efde
update
May 13, 2025
491853d
update
May 13, 2025
f25ce75
update
May 14, 2025
1830d26
update
May 16, 2025
fd20fe5
update
May 16, 2025
3023587
update
May 16, 2025
19496de
update
May 16, 2025
451949f
update
May 16, 2025
3edd16c
update
May 16, 2025
cb16727
update
May 16, 2025
7f5f8c1
update
May 17, 2025
c584258
update
May 17, 2025
fe1c843
update
May 17, 2025
913f3ac
update
May 18, 2025
b9ce9cc
update
May 18, 2025
c3db813
update
May 18, 2025
0012052
update
May 18, 2025
ab88efa
update
May 18, 2025
6f2aee8
update
May 18, 2025
35b8446
update
May 18, 2025
fc5ef84
update
May 18, 2025
fe61197
update
May 18, 2025
8003d75
updat
May 18, 2025
b4d9733
update
May 18, 2025
c72bfd0
update
May 19, 2025
ff0c8f5
update
May 19, 2025
46560dc
update
May 26, 2025
bb33c3f
update
May 28, 2025
587de26
update
May 28, 2025
e45f19f
update
May 29, 2025
fc393ec
update
May 29, 2025
aa45b75
update
May 29, 2025
a487dbb
update
May 29, 2025
7fac7ac
update
May 30, 2025
a010228
update
May 30, 2025
2c77a69
halfway finished
May 31, 2025
65af1f1
update
Jun 2, 2025
4d84b27
update
Jun 2, 2025
8299851
update
Jun 2, 2025
c2045fc
update
Jun 2, 2025
fb4fe8d
update
Jun 2, 2025
a17fb7b
update
Jun 2, 2025
eb61f5c
update
Jun 2, 2025
bdddadb
update
Jun 2, 2025
bd0d06f
update
Jun 2, 2025
4f70995
update
Jun 2, 2025
74d1606
update
Jun 3, 2025
a0be729
update
Jun 3, 2025
b4ed734
update
Jun 3, 2025
0b0d1e7
update
Jun 3, 2025
cc92948
update
Jun 3, 2025
d58cda5
update
Jun 3, 2025
a04d716
update
Jun 4, 2025
d4c1c61
update
Jun 4, 2025
89e6509
update
Jun 4, 2025
97a167d
update
Jun 4, 2025
20761ab
update
Jun 4, 2025
279f4e2
update
Jun 4, 2025
5fecab7
update
Jun 7, 2025
629fbba
update
Jun 7, 2025
cf52cee
update
Jun 9, 2025
885677d
update
Jun 9, 2025
25614df
pdate
Jun 9, 2025
1f9a552
update
Jun 9, 2025
d5cc2c8
update
Jun 9, 2025
ba0449f
update
Jun 9, 2025
e21c76e
update
Jun 9, 2025
13dd3d8
update
Jun 10, 2025
83c6df5
update
Jun 10, 2025
99b357e
update
Jun 10, 2025
3f9c046
update
Jun 10, 2025
e6a0468
update
Jun 10, 2025
3884068
update
Jun 10, 2025
ea1850f
update
Jun 10, 2025
4769bd9
update
Jun 11, 2025
60312d3
update
Jun 11, 2025
d387112
update
Jun 11, 2025
43e4d60
update
Jun 11, 2025
6a6acad
replace precompiler #defines by inline functions
Jun 12, 2025
bfbe581
update
Jun 12, 2025
c6e5a31
update
Jun 13, 2025
7b7df62
add tests
Jun 14, 2025
69593b4
update
Jun 15, 2025
3fef1ad
update
Jun 15, 2025
54815ac
update
Jun 15, 2025
9088f22
update
Jun 16, 2025
9cc61b9
update
Jun 16, 2025
66fe849
update
Jun 16, 2025
8000 615b35a
update
Jun 16, 2025
b70e252
update
Jun 16, 2025
772a0f6
documentation
Jun 17, 2025
88e4338
update
Jun 17, 2025
41982f7
avoid stpcpy
Jun 17, 2025
0fd8c99
pointer printing
Jun 17, 2025
2d29527
compiler warning
Jun 17, 2025
c7dda78
testing without codonalign
Jun 17, 2025
cc1f9f6
testing without codonalign and pairwisealigner
Jun 17, 2025
c96c7ff
compiler warning
Jun 17, 2025
d331544
adding codonalign and pairwisealigner back in
Jun 17, 2025
b090c4f
remove inline from check_indices
Jun 17, 2025
2c37530
add inline to check_indices
Jun 17, 2025
e0d3ea8
update
Jun 18, 2025
4d2904e
add test line 12287 test_pairwise_aligner.py
Jun 18, 2025
a017178
update
Jun 18, 2025
53a6d39
update
Jun 18, 2025
0592823
update
Jun 18, 2025
204685a
update
Jun 18, 2025
e6b639f
change dtype from int32 to "i"
Jun 18, 2025
4b87900
all done
Jun 18, 2025
86b421c
testing
Jun 18, 2025
c66fa0a
testing
Jun 18, 2025
2264554
testing
Jun 18, 2025
d066727
testing
Jun 18, 2025
7184b30
done
Jun 18, 2025
022753a
done
Jun 18, 2025
c4ed474
fix how pointers are printed on Windows
Jun 18, 2025
9f4305a
update
Jun 20, 2025
49299d9
update
Jun 20, 2025
4cedd60
update
Jun 20, 2025
7c4ce35
update
Jun 20, 2025
c52ada8
fix id printing on pypy
Jun 20, 2025
646ec43
style change only
Jun 21, 2025
4105148
Use Py_uintptr_t instead of uintptr_t
Jun 21, 2025
3b70d59
fix memory leak
Jun 22, 2025
371c051
remove double semicolon
Jun 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
619 changes: 253 additions & 366 deletions Bio/Align/__init__.py

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Bio/Align/_aligncore.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ array_converter(PyObject* argument, void* pointer)
"buffer has incorrect number of columns %zd (expected %zd)",
view->shape[1], self->k);
}
else if (view->itemsize != sizeof(int64_t)) {
else if (view->itemsize != sizeof(Py_ssize_t)) {
PyErr_Format(PyExc_RuntimeError,
"buffer has unexpected item byte size "
"(%ld, expected %ld)", view->itemsize, sizeof(int64_t));
"(%ld, expected %ld)", view->itemsize, sizeof(Py_ssize_t));
}
else return 1; /* return status 1 to indicate a successful converstion */

Expand Down Expand Up @@ -232,7 +232,7 @@ PyDoc_STRVAR(
"Fill in the coordinates array based on the alignment lines fed\n"
"to the parser so far.\n"
"\n"
"The argument arr must be a 2D numpy array of data type int,\n"
"The argument arr must be a 2D numpy array of data type intp,\n"
"with the number of rows equal to the number of lines fed into\n"
"the parser so far, and the number of columns equal to the number\n"
"of columns needed to store the coordinates array.\n"
Expand All @@ -254,7 +254,7 @@ Parser_fill(Parser* self, PyObject* args)
Py_ssize_t* starts = NULL;
Py_uintptr_t** data = NULL;
bool* gaps = NULL;
int64_t* buffer;
Py_ssize_t* buffer;

n = self->n;
if (n == 0) Py_RETURN_NONE;
Expand Down Expand Up @@ -309,7 +309,7 @@ Parser_fill(Parser* self, PyObject* args)
for (i = 0; i < n; i++) {
p = i*k+j;
if (gaps[i] == true) buffer[p] = buffer[p-1];
else buffer[i*k+j] = (int64_t) (buffer[p-1] + step);
else buffer[i*k+j] = (Py_ssize_t) (buffer[p-1] + step);
if (end == starts[i]) {
data[i]++;
gaps[i] = !gaps[i];
Expand Down Expand Up @@ -452,7 +452,7 @@ PyDoc_STRVAR(
">>> parser.shape\n"
"(3, 7)\n"
">>> import numpy as np\n"
">>> coordinates = np.zeros((3, 7), int)\n"
">>> coordinates = np.zeros((3, 7), np.intp)\n"
">>> parser.fill(coordinates)\n"
">>> coordinates\n"
"array([[ 0, 2, 3, 4, 6, 8, 10],\n"
Expand Down
Loading
Loading
0