How read the .tag file for landmarks visualization

Operating system: Windows 10
Slicer version: 4.10.2
Expected behavior:

Hello, I want to check the fiducial on the ultrasound and MRI data and all the fiducials are saved in a .tag file. Since it is not a common .fcsv file and I could not load the .tag file directly in 3D slicer. Any methods to solve this problem? Thanks.

An example of the file looks like:

MNI Tag Point File
Volumes = 2;
% Case 1: XXX landmarks

Points =
 10 20 30 40 -30 30 ""

The easiest would be to write a short python script that parses the file line by line by a few regular expressions and adds landmark point positions to a markups fiducial node.

If you want to be able to load a tag file by “Add data” window (or drag-and-dropping to the application window) then you need to add a file reader plug-in. Let us know if you are interested in this and we can help with more specific instructions.

Thanks for your guidance @lassoan . I have wrote the python script to convert the .tag file to .fcsv file and it can be loaded in 3D slicer.

I have two fiducial dataset (one is preoperative MRI and one is 3D ultrasound) and I want to calculate the displacement vector for each fiducial pair. I am wondering if there is a method to calculate the displacement vector for each fiducial point and show all the vectors in the slice and 3D scene. My final goal is to manually check the outlier for each fiducial pairs in both image slice. Thanks.

For example in the two fcsv files, we have:
.fcsv_1 file:
vtkMRMLMarkupsFiducialNode_0,50.164402 -31.719656 34.845306,-5.771,-11.195,9.070,1.000,1,1,0,F1-1,F1-3, …

.fcsv_2 file:
vtkMRMLMarkupsFiducialNode_0,48.972829 -32.396878 34.952277,0.000,0.000,0.000,1.000,1,1,0,M1-2,

The displacement vector = (x1 - x2, y1 - y2, z1 - z2) for each pair. I could calculate all the displacement vectors from two fiducial sets and I would like to load the result to 3D slicer, and able to visualize all the vectors automatically. The result is similar to the following figure (refer from another question “calculating-the-displacement-between-two-models”). And I am not sure if this can be finished all in python.

Thanks again for your help.