STOmics / SAW

GNU General Public License v3.0
143 stars 34 forks source link

registration failed cannot convert float NaN to integer #144

Closed XiaolongYang-HZAU closed 2 months ago

XiaolongYang-HZAU commented 2 months ago

I am using SAW7 to input the image files for quality control from imagestudio3.0. Before yesterday, this process was functioning normally. However, with this new sample, which follows the exact same procedure, the following error occurred: [INFO 20240905-02-16-46 p33461 run main.py:481] >> Next do the Registration task. I0905 02:16:46.270479 33461 main.py:481] >> Next do the Registration task. [INFO 20240905-02-16-46 p33461 registration registration.py:89] Get registration parameters. I0905 02:16:46.272974 33461 registration.py:89] Get registration parameters. [INFO 20240905-02-16-46 p33461 registration registration.py:95] Successfully obtained the pre-registered track line template. I0905 02:16:46.288332 33461 registration.py:95] Successfully obtained the pre-registered track line template. W0905 02:16:46.289314 33461 warnings.py:109] register/register-4.2.4/register/utils/matrixloader.py:134: RuntimeWarning: overflow encountered in uint_scalars

W0905 02:16:46.289844 33461 warnings.py:109] register/register-4.2.4/register/utils/matrixloader.py:135: RuntimeWarning: overflow encountered in uint_scalars

[INFO 20240905-02-16-48 p33461 registration registration.py:119] Start image registration ... I0905 02:16:48.493316 33461 registration.py:119] Start image registration ... W0905 02:16:48.498270 33461 warnings.py:109] /usr/local/python3/lib/python3.8/site-packages/cellbin/contrib/vision_track.py:10: RuntimeWarning: invalid value encountered in double_scalars x_mass = np.sum(xx_cal) / np.sum(image_x)

W0905 02:16:48.498734 33461 warnings.py:109] /usr/local/python3/lib/python3.8/site-packages/cellbin/contrib/vision_track.py:15: RuntimeWarning: invalid value encountered in double_scalars y_mass = np.sum(yy_cal) / np.sum(image_y)

Namespace(conf='/sdd/Raw_data/xlyang/sample/PM-XS01KF2024040319-01/ANNO_XS01KF2024040319_PM-XS01KF2024040319-01/Rawdata/FJA-133/B04115A5_20240903_200332/B04115A5_SC_20240903_200332_3.0.4.ipr', core=48, func=<class 'main.Pipeline'>, gpu='-1', group=None, input='/sdd/Raw_data/xlyang/sample/PM-XS01KF2024040319-01/ANNO_XS01KF2024040319_PM-XS01KF2024040319-01/Rawdata/FJA-133/B04115A5_20240903_200332/B04115A5_SC_20240903_200332_3.0.4.tar.gz', output='/sdc/xlyang/FJA-133/03.register', protein=None, vis='/sdc/xlyang/FJA-133/02.count/B04115A5.raw.gef', whether_cell=False) [] Traceback (most recent call last): File "register/register-4.2.4/register/main.py", line 521, in File "register/register-4.2.4/register/main.py", line 517, in main File "register/register-4.2.4/register/main.py", line 342, in init File "register/register-4.2.4/register/main.py", line 484, in run File "register/register-4.2.4/register/registration/registration.py", line 121, in registration File "/usr/local/python3/lib/python3.8/site-packages/cellbin/modules/registration.py", line 89, in mass_registration_trans self.vision_cp = self.align_track.find_track_on_vision_image(vision_image, chip_template) File "/usr/local/python3/lib/python3.8/site-packages/cellbin/contrib/alignment.py", line 78, in find_track_on_vision_image vision_cross_pts = find_cross(vision_img, template) File "/usr/local/python3/lib/python3.8/site-packages/cellbin/contrib/vision_track.py", line 75, in find_cross x_mid, y_mid = find_first_tp(gene_exp, mass_center, chip_template) File "/usr/local/python3/lib/python3.8/site-packages/cellbin/contrib/vision_track.py", line 29, in find_first_tp min_x = int(round(mass_center[0]) - find_range) ValueError: cannot convert float NaN to integer

Could you please tell me what caused this error?