Unspecified AssertionError during 3D Flex Mesh preparation

Hello, a following questioning on this:

I tried to make mesh by using individual protein pdb models by molmap then resample on the box size to my map of interested in chimera, then used the script below to change value of individual molmap volume so that any voxel > 0 is assigned to protein number (1,2,3, etc.) and -1 for voxel <0, I tried format either float32 or int8.

import mrcfile
import numpy as np

assign_val = 1
with mrcfile.open(volume_path, mode=‘r’) as mrc:
data = mrc.data.copy() # Create a copy to avoid modifying the original file
voxel_size = mrc.voxel_size

modified_data = np.where(data > 0, assign_val, -1).astype(np.int8)

with mrcfile.new(volume_path.replace(‘.mrc’, ‘_’ + str(assign_val) + ‘.mrc’), overwrite=True) as new_mrc:
new_mrc.set_data(modified_data)
new_mrc.voxel_size = voxel_size

volume_path = ‘~/J1061/J1061_n1.mrc’

Then, I merged individual maps with reassigned value using vop maximum command in chimera and resulted the volume with regions of interest at values 1,2,3,4… and solvent at -1, used this as the input of seg file. However, the mesh create job failed with Assertion Exception without further error message. If possible, some advice will be very helpful.


here is the error message

Hi @nym2834610!

It looks like the immediate issue here is that your input MRC is not on a cubic grid. You could try resampling the molmap MRC onto the grid from the Data Prep job to get a map on the proper grid.

Do you mind if I ask why you’re using individual molmaps instead of using segger?

Hello, thanks a lot for the reply.

I had resample it to be a cubic, but it didn’t resolve.

The reason for molmap is because that we are processing filament data so that binding proteins are flexible relative to the filament, therefore molmap by pdb is much easier than segger.

If possible, I could upload the consensus volume and the corresponding mrc segmentation file for some advice. Thanks a lot.

I see! When you say

binding proteins are flexible relative to the filament

do you mean that the proteins will be at different positions along the filament, or that both they and the filament are flexible?