Protein model interaction method, terminal and readable storage medium
By generating grabbing attachment points and transparent spheres in the center of the protein model, the problem of unrepairable interaction after protein molecules are solved, normal interaction and convenient operation of the protein model are achieved, and learning costs are reduced.
Patent Information
- Application Number
- CN202411185822.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-06
AI Technical Summary
Existing protein molecule visualization software based on virtual reality technology cannot interact without repair after loading protein molecules, resulting in inconvenience in user use and increased learning costs.
By generating grab attachment points at the center of the protein model and generating transparent spheres as colliders, the grab and rotation interaction of protein molecules is achieved, instead of preloaded collision components and grab components, the manual repair process is avoided.
It realizes normal interaction of protein models, reduces the learning cost of software, and improves user experience and operation convenience.
Smart Images

Figure CN119089527A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual reality technology, and in particular to a protein model interaction method, a terminal and a readable storage medium. Background Art
[0002] Proteins are important molecules in organisms, and their structure determines their function. From the study of protein molecules, we can understand their secondary structure (α-helix, β-fold, etc.) and tertiary structure (three-dimensional conformation of protein), and infer their possible functional mechanisms, including enzyme activity, ligand binding, signal transduction, etc. If we want to connect to the structure of protein molecules intuitively, we need to visualize the protein molecules, so as to intuitively observe the secondary and tertiary structures of protein molecules. Therefore, protein molecule visualization technology is an important technology in the process of studying protein structure and function.
[0003] Traditional protein molecule visualization software includes traditional visualization software developed based on two-dimensional screens and molecular visualization software developed based on virtual reality. These tools can display the three-dimensional structure of proteins, but users are still limited to two-dimensional screens and cannot truly experience the three-dimensional sense of proteins in three-dimensional space. At the same time, users usually need to use a mouse or keyboard for molecular operations and analysis, and the interactivity is limited to a certain extent.
[0004] Virtual reality (VR) technology provides an extremely effective solution to these problems. Virtual reality technology is a technology that uses a computer-generated simulation environment to allow users to immerse themselves in and interact with it. It simulates the senses of vision, hearing, and touch in the real world, making users feel like they are in a virtual environment. This protein molecule analysis tool based on virtual reality has important application value in many fields such as biomedical research, life science education, drug design and optimization, biotechnology, and engineering applications. It can greatly promote the progress of social sciences and promote changes in biological sciences. Therefore, virtual reality technology has shown broad application potential in the field of biological research, especially in the visualization of protein molecular structures.
[0005] However, the current 3D molecular visualization software developed based on virtual reality technology also has its shortcomings. The existing 3D molecular visualization software can only load specific protein data. If the user needs to import the protein molecules loaded by himself, since it is impossible to know in advance which protein file the user needs to load, the protein molecules can only be loaded dynamically. For the interaction of protein molecular models, specific SDK files are required, which are used to add relevant components to the selected targets so that the entire model can be captured. When dynamically loading protein molecules, the corresponding SDK files cannot be called, resulting in the protein model not having collision components and rigid body components. As a result, the user needs to manually click Repair after loading the protein molecules to obtain the collision components and rigid body components, otherwise he cannot interact with the protein molecules. This not only causes inconvenience in use, but also increases the user's learning cost. Summary of the invention
[0006] The purpose of the present invention is to provide a protein model interaction method, terminal and readable storage medium, which is intended to solve the problem that the existing protein molecule visualization software cannot interact after loading protein molecules without repair.
[0007] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0008] The present invention provides a protein model interaction method, the protein model interaction method comprising:
[0009] Obtain protein data files, and generate protein models according to the protein files;
[0010] Generate a grab attachment point at the center of the protein molecule model and a transparent sphere as a collision body;
[0011] Based on the grab attachment point and the collision body, interaction is performed according to user instructions.
[0012] Furthermore, it is characterized in that the step of obtaining a protein data file and generating a protein model according to the protein file specifically includes:
[0013] Acquire a protein data file, and analyze the three-dimensional structure information of the protein molecules in the protein data file;
[0014] A three-dimensional model is constructed according to the three-dimensional structure information and rendered to obtain the protein model.
[0015] Furthermore, the step of generating a grabbing attachment point at the center of the protein molecule model and generating a transparent sphere as a collision body specifically includes:
[0016] identifying a center point of the protein model and generating the grabbing attachment point at the center point;
[0017] A transparent sphere with the size of the protein model is generated as a collision body with the central point as the sphere center.
[0018] Furthermore, the step of identifying the center point of the protein model further comprises:
[0019] A semi-transparent sphere of a set size is generated with the center point as the sphere center.
[0020] Further, the interaction includes grabbing and rotating interaction, molecular ranging interaction, protein management interaction and label management interaction;
[0021] The grabbing and rotating interaction specifically includes:
[0022] Obtaining a user's grasping instruction for grasping an attachment point to grasp the protein model;
[0023] Obtain the user's rotation instruction for the grab attachment point to rotate the protein model;
[0024] During grabbing or rotating, collision calculation is performed based on the collision body.
[0025] Furthermore, the molecular ranging interaction specifically includes:
[0026] When the user's setting input event is triggered, the atom selected by the user is obtained through ray detection;
[0027] If the number of atoms is even, the distances between the atoms are calculated and displayed.
[0028] Furthermore, the tag management interaction specifically includes:
[0029] Obtaining a user input instruction, and setting a label for the protein model according to the user input instruction;
[0030] Draws the rendered label.
[0031] Furthermore, the drawing and rendering of the label specifically includes:
[0032] Calculating the distance between the tag and the grab attachment point;
[0033] If the distance is less than the set distance, the label is drawn and rendered;
[0034] The step of calculating the distance between the tag and the grabbing attachment point further comprises:
[0035] If the distance is greater than or equal to the set distance, the label is not drawn or rendered.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, which includes: a memory, a processor, and a protein model interaction program stored in the memory and executable on the processor, and when the protein model interaction program is executed by the processor, the terminal is controlled to implement the steps of the protein model interaction method as described above.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a readable storage medium, wherein the readable storage medium stores a protein model interaction program, and when the protein model interaction program is executed by a processor, the steps of the protein model interaction method described above are implemented.
[0038] The present invention adopts the above technical solution to achieve the following effects:
[0039] The present invention generates a grabbing attachment point at the center of the protein, realizes grabbing interaction on the protein molecule through the grabbing attachment point, and generates a collision sphere to replace the originally preloaded collision component and grabbing component, so that normal use can be achieved without repair, thereby reducing the learning cost of the software. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flowchart of the steps of the protein model interaction method in a preferred embodiment of the present invention;
[0041] Figure 2 is a schematic diagram of the interface of molecular ranging in a preferred embodiment of the present invention;
[0042] Figure 3 is a schematic diagram of the interface of protein management interaction in a preferred embodiment of the present invention;
[0043] Figure 4 is a schematic diagram of the interface of tag management interaction in a preferred embodiment of the present invention;
[0044] Figure 5 This is a schematic diagram of the interface of the protein model color interaction in a preferred embodiment of the present invention:
[0045] Figure 6 is a schematic diagram of an interface in which a protein model is displayed in line form in a preferred embodiment of the present invention;
[0046] Figure 7 It is a schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention. All other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0048] Embodiment 1
[0049] Embodiment 1 of the present application is a protein model interaction method, which comprises the steps of:
[0050] S1. Obtain protein data files and generate protein models based on the protein files.
[0051] Specifically, in this embodiment, a protein visualization software is developed based on Unity3D, which obtains a pdb file as a protein data file. The software reads and parses the three-dimensional structure information of the protein molecules in the pdb file, then constructs the 3D structure of the molecule, and finally uses unity's rendering technology to present it in a virtual reality space.
[0052] S2. Generate a grab attachment point at the center of the protein molecule model and generate a transparent sphere as a collision body.
[0053] In this embodiment, when generating a protein model, a MolecularDocking script is customized. When loading the protein molecule model, the script reads the pdb file name, finds the parent object of the model in the project, and performs a traversal loop to create a collision body and a grabbing function for each child object. The motion mode of the model grabbing is set to VelocityTracking, and the detection mode of the collision body is set to Continuous. In this way, the user can grab the protein molecule by remote control, and can avoid the problem of model penetration caused by continuous collision.
[0054] Specifically, a CollisionSize script is defined in this embodiment. This script is a self-created Rayinteraction script that can add interactive functions to the loaded protein molecules. A method is used to track and identify the center point of the protein molecule and set the interaction point at the center point, thereby bypassing the original SDK and achieving grab interaction without repair. The script embeds a translucent sphere and a slider, and the user can use the slider to adjust the radius of the collision body of the previously added protein model. The sphere will track the collision body of the selected model, visualize the size of its collision body, and facilitate user operation.
[0055] It is worth mentioning that, because protein molecules are irregular, it is difficult to determine the center coordinates of the entire molecule. Although the coordinates of the collision volume can be approximated to the center point of the model after adding the collision volume, the coordinates of the collision body cannot be called. There is no good solution to the problem of determining the center point of the irregular model. There are some methods that can solve it, but the amount of code and performance overhead are large. After continuous exploration and research, the present invention has found a very clever method: create an empty object with code in the child object of an object, then the coordinates of this empty object are the center point of its parent object, and this feature can obtain the center point of the irregular model. Therefore, in this embodiment, by generating a grab attachment point at the center of the protein, and realizing the grab interaction of the protein molecule through the grab attachment point, the entire function tends to be complete.
[0056] In addition, in this embodiment, in order to make the grabbing attachment point visible to facilitate grabbing, the present invention adds a translucent sphere at the center point to display the grabbing attachment point.
[0057] S3. Based on the grabbing attachment point and the collision body, interact according to user instructions.
[0058] With the grabbing attachment points, users can grab and rotate protein molecules based on the grabbing attachment points, which not only displays the morphology of protein molecules from all angles, but also provides innovative possibilities for the application of molecular docking algorithms in the future. Its all-round display and combination with molecular docking algorithms provide users with more in-depth molecular observation and simulation analysis capabilities, while bringing innovative possibilities to fields such as protein research and drug design. The introduction of this function marks an important progress in this field and provides a useful tool for academic research and industrial applications.
[0059] In addition, in this embodiment, the interaction with protein molecules also includes molecular ranging interaction, protein management interaction and label management interaction.
[0060] Please refer to Figure 2As shown, for the molecular distance measurement, through in-depth analysis, the present invention finds that similar applications in the prior art have significant limitations in protein molecular distance measurement. These tools can usually only manually select and measure the distance between atoms, lack automation and real-time update functions, and are not intuitive enough in displaying distance information and visualization effects. However, the protein molecular distance measurement script independently developed by the present invention breaks through these limitations and demonstrates its independence and advancement. This technology can not only automatically detect the atoms pointed by the handle controller and add them to the selected list, but also calculate and display the distance between the selected atoms in real time. The unique highlights include: automatic detection and selection: through the handle controller, the script can automatically detect and select the pointed atoms, reducing the tediousness of manual operation; real-time distance calculation and display: once two atoms are selected, the script will automatically calculate the distance between them and display the distance information in real time through text labels in the virtual reality environment; visualization effect: the script not only displays the distance, but also draws lines between atoms and creates highlighted spheres for visual marking, so that users can intuitively observe the relationship between atoms; color selector integration: the script integrates a color selector function, allowing users to change the color of the distance line and provide personalized visualization options; multi-atom processing: the script supports the distance calculation and display of multiple groups of atomic pairs, and users can observe multiple distance measurement results at the same time, which improves the analysis efficiency. This automated, real-time updated and highly visualized distance measurement script provides powerful tool support for protein research, drug design and other fields, significantly improving work efficiency and research depth.
[0061] Specifically, the molecular distance measurement in this embodiment defines the following components:
[0062] start (initialize components) is used to obtain the required component instances, including the color picker component ColorPickerControl (color picker), bind the color selection event, and trigger OnColorChanged (color changed) when the color changes.
[0063] The Update component is used to detect the user's mouse click event. When the user's mouse click event is obtained, the selected atoms are obtained through raycast detection, and corresponding selection and highlighting are performed. If the number of selected atoms is even, HighlightAtoms is called to highlight the atoms in pairs, and ConnectAtoms is called to create connecting lines between atoms.
[0064] OnColorChanged component, used to update the color of all connecting lines to match the color selected by the user.
[0065] The HighlightAtomg component is used to highlight individual atoms in yellow and green.
[0066] The HighlightAtoms component is used to highlight pairs of atoms and create corresponding highlight objects (Sphere).
[0067] The ConnectAtoms component is used to create connecting lines between atoms, calculate distances, and generate TextMesh objects to display distances.
[0068] UpdateLinePositions updates the position of the connecting line in real time.
[0069] The UpdateDistanceText method displays the distance information on the UI text.
[0070] The ClearHighlightsAndLines component is used to clear all highlight and connecting line objects and release resources.
[0071] After completing the component definition, first obtain the user's mouse click event. After obtaining the user's mouse click event, automatically highlight the atom that the user's ray is facing, call the relevant components to create a text grid for the highlighted atom pair, and mark the distance in the text grid.
[0072] Please refer to Figure 3 For the protein management, the present invention relates to a system for managing and operating protein data, in particular, a protein manager implemented based on the Unity engine. The system enables users to easily load, switch and operate different protein structures through interface interaction and data processing, and facilitates integration and various functions in subsequent development by adding corresponding reference methods in scripts such as interfaces and management.
[0073] Specifically, the protein management of this embodiment defines the following components:
[0074] ProteinManager component, the user is responsible for managing the loading and switching of proteins. It defines member variables such as MaxCurrent to track the number of proteins currently loaded, the MyloadedStructures array to store the names of the currently loaded proteins, and the SwitchProtein array to store the corresponding UI switch buttons.
[0075] The Start component adds event listeners for each button in the SwitchProtein array and calls the ToggleValueChanged component when the button state changes.
[0076] The Update component is used to detect changes in the number of loaded proteins in real time, update the MyloadedStructures array and synchronize the button text on the UI.
[0077] The ToggleValueChanged component is used to find the corresponding protein object through the button text and switch its display status. The operation logic is relatively straightforward and simple.
[0078] Set_selName (Format Name) component is used to format the protein name.
[0079] The FindChildObject component is used to find a child object with a specific name in the scene.
[0080] The getProteinController (get protein controller) component and the getProteinManager (get protein manager) component are used to dynamically reference the ProteinManager protein management script in the required script.
[0081] It is worth noting that some components are used in both molecular ranging interactions and protein management interactions, and the present invention explains the role of the components in these two parts respectively.
[0082] Through the components defined above, by uniformly managing protein data and UI interaction, convenient operations for protein loading and switching are achieved, which improves user efficiency and experience. The dynamic detection and update mechanism in Update ensures the synchronization of protein data and UI, allowing users to see the latest loading status in real time. Through event monitoring and processing of the Toggle button, users can easily switch between different protein display states without manual search and operation. Maintain independence of individual protein operations: By associating with the Toggle button, operations are performed on checked proteins, while unchecked proteins are ignored, making it easy to observe different forms of proteins at the same time.
[0083] Please refer to Figure 4 For label management interaction, the present invention implements a new label control module to control how to draw text labels for protein molecule objects, and can modify label size, color, and display mode. These functions together help users view and understand the structure and function of protein molecules in an intuitive way. The label control module has many key features, including:
[0084] Precise positioning and display of labels: The module allows users to accurately position and display labels on different structural features of protein molecules, including residues, chains, atom names, element symbols, atom names, van der Waals radius, etc. This ensures that the labels can accurately reflect the key information in the molecular structure.
[0085] Dynamically adjust font size: Users can dynamically adjust the font size of labels through the slider. This function is implemented through the OnValueChanged listener. When the slider position changes, the listener will obtain all label text objects and adjust the font size of the text by modifying the fontsize property of the TextMeshPro component. When the slider is adjusted, users can instantly see the change of the label font size, which improves the interactive experience. Reasonable minimum and maximum values are set to avoid display problems caused by too small or too large fonts, ensuring that the label is always clearly visible in different views and magnification levels.
[0086] Custom label color: The label control module provides a variety of color options. Users can choose the appropriate label color according to personal preferences and background colors. The color customization is achieved by obtaining all label text objects and modifying the color property of the TextMeshPro component. During the development process, the present invention encountered difficulties in implementing the custom label color function, mainly including real-time, consistency and user interface challenges. In order to cope with these problems, the present invention integrates a color picker component, allowing users to select colors in real time by clicking and dragging, and immediately preview the color change effect. Through the event monitoring mechanism, the user-selected color is dynamically obtained, and it is ensured that all label colors can be updated synchronously to ensure consistency.
[0087] Convenient label clearing function: This module implements a convenient label clearing function, and users can remove unnecessary labels at any time. This function is implemented by calling the corresponding function, ensuring that users can keep the view tidy and focused, so as to focus on important molecular structure features. To implement this function, a large number of labels need to be cleared at one time, rather than deleting them one by one, which requires the system to be able to efficiently handle batch operations. For this purpose, the present invention designs an efficient batch processing algorithm that can quickly traverse and clear a large number of label objects to ensure the efficiency of the clearing operation.
[0088] Filtering and managing tags: When a large number of tags are displayed, it is a difficult problem to facilitate users to filter and manage tags. Users need to be able to selectively display or hide specific tags according to different needs. When there are a large number of tags, how to efficiently manage these tags so that users can quickly find and operate specific tags is a major challenge. The present invention implements a filtering function for tag types. Users can selectively display or hide tags according to the type of tags such as molecular residues, and use data binding technology to associate the filtering options of the user interface with the actual tag data. When the user selects a filtering condition on the interface, the system can automatically update the displayed tags.
[0089] It is worth noting that when the present invention was developing the method of attaching labels to molecular objects, it was found that no matter what the front and back relationship of the molecular structure was, the label was always displayed at the forefront of the scene. This phenomenon not only affects the visual effect, but also makes it difficult for users to accurately understand the spatial relationship of the molecular structure. In order to solve this problem, the present invention continuously adjusts the material settings of the text object and uses depth writing. Its rule is that when a pixel is to be rendered, the distance between the pixel and the camera is detected, called the depth value, and compared with the value of the corresponding position in the depth buffer. If the depth value of the current pixel is less than the value in the depth buffer, the pixel is accepted and rendered, and the value in the depth buffer can be updated to the depth value of the current pixel. Then test the display effect of the label at different viewing angles and zoom levels to ensure that the label can be displayed correctly and remain clearly visible in various situations.
[0090] In addition, the interaction of the present invention also integrates the color modification of protein molecules, e.g. Figure 5 As shown in the figure, the user first loads the PDB file through the system to display the protein molecular structure, and then opens the color picker in the VR interface to accurately select the color through the RGB slider and color preset options. The user uses the VR controller to select specific parts of the protein molecule and apply the selected color to these parts. The system changes the color by modifying the material color properties of the corresponding molecular object. After the color is applied, the user can preview and save the current color configuration in real time to ensure that the modification meets the requirements.
[0091] Please refer to Figure 6 The present invention also integrates a switching display interaction for switching the protein model display method, and selects display modes such as Cartoon or Line in the VR interface. The system calls the corresponding rendering method according to the user's selection and displays the molecular structure as the selected mode. The Cartoon mode is used to display the secondary structure, and the Line mode is used to display the wireframe model of atoms and bonds. Users can preview and switch display modes in real time in the VR environment, and rotate, zoom and select the molecular structure to meet different scientific research and teaching needs.
[0092] Embodiment 2
[0093] See also Figure 7 Based on the above method, the present invention also provides a terminal, which includes a processor 10, a memory 20 and a display 30. Figure 7 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0094] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal, etc. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a protein model interaction program 40 is stored on the memory 20, and the protein model interaction program 40 can be executed by the processor 10.
[0095] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing related programs of the protein model interaction method.
[0096] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components of the terminal communicate with each other via a system bus.
[0097] In one embodiment, when the processor 10 executes the protein model interaction program 40 in the memory 20, the steps of the protein model interaction method described above are implemented.
[0098] The memory 20 may be an internal storage unit of the terminal in some embodiments, such as a hard disk or memory of the terminal. The memory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal, etc. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a protein model interaction program is stored on the memory 20, and the protein model interaction program can be executed by the processor 10, thereby realizing the protein model interaction method in the present application.
[0099] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the protein model interaction method.
[0100] Embodiment 3
[0101] This embodiment provides a storage medium, wherein the readable storage medium stores a protein model interaction program, and when the protein model interaction program is executed by a processor, the steps of the protein model interaction method described above are implemented.
[0102] In summary, the present invention generates a grabbing attachment point at the center of the protein, realizes grabbing interaction on the protein molecule through the grabbing attachment point, and generates a collision sphere to replace the originally preloaded collision component and grabbing component, so that normal use can be achieved without repair, thereby reducing the learning cost of the software.
[0103] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0104] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The storage medium can be a memory, a disk, an optical disk, etc.
[0105] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A protein model interaction method, characterized in that: The protein model interaction method comprises: Obtain protein data files, and generate protein models according to the protein files; Generate a grab attachment point at the center of the protein molecule model and a transparent sphere as a collision body; Based on the grab attachment point and the collision body, interaction is performed according to user instructions.
2. A protein model interaction method according to claim 1, characterized in that: It is characterized in that The step of obtaining a protein data file and generating a protein model according to the protein file specifically includes: Acquire a protein data file, and analyze the three-dimensional structure information of the protein molecules in the protein data file; A three-dimensional model is constructed according to the three-dimensional structure information and rendered to obtain the protein model.
3. A protein model interaction method according to claim 1, characterized in that: The method of generating a grabbing attachment point at the center of the protein molecule model and generating a transparent sphere as a collision body specifically includes: identifying a center point of the protein model and generating the grabbing attachment point at the center point; A transparent sphere with the size of the protein model is generated as a collision body with the central point as the sphere center.
4. A protein model interaction method according to claim 3, characterized in that: The step of identifying the center point of the protein model further comprises: A semi-transparent sphere of a set size is generated with the center point as the sphere center.
5. A protein model interaction method according to claim 1, characterized in that: The interactions include grasping and rotating interactions, molecular ranging interactions, protein management interactions, and label management interactions; The grabbing and rotating interaction specifically includes: Obtaining a user's grasping instruction for grasping an attachment point to grasp the protein model; Obtain the user's rotation instruction for the grab attachment point to rotate the protein model; During grabbing or rotating, collision calculation is performed based on the collision body.
6. A protein model interaction method according to claim 5, characterized in that: The molecular ranging interaction specifically includes: When the user's setting input event is triggered, the atom selected by the user is obtained through ray detection; If the number of atoms is even, the distances between the atoms are calculated and displayed.
7. A protein model interaction method according to claim 5, characterized in that: The tag management interaction specifically includes: Obtaining a user input instruction, and setting a label for the protein model according to the user input instruction; Draws the rendered label.
8. A protein model interaction method according to claim 7, characterized in that: The drawing and rendering of the label specifically includes: Calculating the distance between the tag and the grab attachment point; If the distance is less than the set distance, the label is drawn and rendered; The step of calculating the distance between the tag and the grabbing attachment point further comprises: If the distance is greater than or equal to the set distance, the label is not drawn or rendered.
9. A terminal, characterized in that: The terminal comprises: a memory, a processor and a protein model interaction program stored in the memory and executable on the processor. When the protein model interaction program is executed by the processor, the terminal is controlled to implement the steps of the protein model interaction method according to any one of claims 1 to 8.
10. A readable storage medium, characterized in that: The readable storage medium stores a protein model interaction program, and when the protein model interaction program is executed by a processor, the steps of the protein model interaction method according to any one of claims 1 to 8 are implemented.
