np.array(chr_names)
- в вашем коде это самое chr_names
нигде не объявлено и не понятно, что там внутри.import numpy as np
head_line = ['123:45:67', '234:56:78', '123:45:67', '234:56:78', '123:45:67', '234:56:78', '123:45:67', '234:56:78',
'123:45:67', '234:56:78', '123:45:67', '234:56:78', '123:45:67', '234:56:78', '123:45:67', '234:56:78',
'123:45:67', '234:56:78', '123:45:67', '234:56:78', '123:45:67', '234:56:78', '123:45:67', '234:56:78']
chrom_seek_index = np.array([[int(line.split(":")[-2]), len(line)] for line in head_line])
for i in range(1, 24):
chrom_seek_index[i, 1] = (chrom_seek_index[i, 1] + chrom_seek_index[i - 1, 1] + chrom_seek_index[i - 1, 0] + np.ceil(
chrom_seek_index[i - 1, 0] / 60))
np.save('CaChr1_index.npy', chrom_seek_index)
print(chrom_seek_index)
18:11 ~ $ git clone https://github.com/phaggi/questator
Cloning into 'questator'...
remote: Enumerating objects: 243, done.
remote: Counting objects: 100% (243/243), done.
remote: Compressing objects: 100% (136/136), done.
remote: Total 243 (delta 135), reused 194 (delta 90), pack-reused 0
Receiving objects: 100% (243/243), 28.45 KiB | 571.00 KiB/s, done.
Resolving deltas: 100% (135/135), done.
18:14 ~ $ ls
README.txt questator
18:14 ~ $ cd questator/
18:15 ~/questator (master)$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Looking in links: /usr/share/pip-wheels
Collecting Django==2.2.10
Downloading Django-2.2.10-py3-none-any.whl (7.5 MB)
|████████████████████████████████| 7.5 MB 13.0 MB/s
Collecting django-filter==21.1
Downloading django_filter-21.1-py3-none-any.whl (81 kB)
|████████████████████████████████| 81 kB 2.0 MB/s
Collecting djangorestframework==3.13.1
...
Successfully installed Django-2.2.10 Markdown-3.3.6 django-filter-21.1 djangorestframework-3.13.1 importlib-metadata-4.10.0 pytz-2021.3 sqlparse-0.4.2 typin
g-extensions-4.0.1 zipp-3.6.0