Skip to content
Snippets Groups Projects
Commit d4542c34 authored by Ben Webb's avatar Ben Webb
Browse files

Copy metadata over to IMP format GMM file

IMP's deposition pipeline needs information about the
command used to generate the GMM, so extract this
from the REMARK COMMAND line.
parent c1e6c18b
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,19 @@ ...@@ -2,6 +2,19 @@
awk ' awk '
BEGIN{i=0} BEGIN{i=0}
/REMARK COMMAND /{
print "# Created by https://gitlab.pasteur.fr/rpellari/recursive-gmconvert"
for (k = 1; k <= NF; k++) {
v = k + 1
if ($k == "-imap") {
print "# data_fn: " $v
}
if ($k == "-ng") {
print "# ncenters: " $v
}
}
print "#|num|weight|mean|covariance matrix|"
}
/REMARK GAUSS.* W /{W=$5} /REMARK GAUSS.* W /{W=$5}
/REMARK GAUSS.* M /{Mx=$5 ; My=$6 ; Mz=$7} /REMARK GAUSS.* M /{Mx=$5 ; My=$6 ; Mz=$7}
/REMARK GAUSS.* CovM *xx /{Cxx=$6 ; Cxy=$8 ; Cxz=$10} /REMARK GAUSS.* CovM *xx /{Cxx=$6 ; Cxy=$8 ; Cxz=$10}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment