Commit d4542c34 authored by Ben Webb's avatar Ben Webb

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
......@@ -2,6 +2,19 @@
awk '
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.* M /{Mx=$5 ; My=$6 ; Mz=$7}
/REMARK GAUSS.* CovM *xx /{Cxx=$6 ; Cxy=$8 ; Cxz=$10}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment