File: star_datablock_stack

package info (click to toggle)
relion 1.4+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,188 kB
  • sloc: cpp: 42,912; sh: 10,415; makefile: 267; ansic: 50; csh: 2
file content (29 lines) | stat: -rwxr-xr-x 767 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
if [ $# != 0 ]; then
 for i in `seq 1 ${1}`
  do
     printf "%06i%1s%s%s" ${i} "@" ${2}  " "
     for (( c=3; c<=$#; c++ ))
     do
       echo -n ${!c}" "
     done
     echo ""
 done
else
 echo " === Usage: === "
 echo " ${0} <N> <stackname> <value1> <value2> ..."
 echo " "
 echo " === Purpose: === "
 echo " This (bash) script generates the datablock for N images in a stack named stackname"
 echo " Other (optional) data values are in value1, value2, etc. "
 echo " "
 echo " === Example: ==="
 echo " ${0} 3 my_images.mrcs 10000 10500 0.0 200 2 0.1"
 echo " yields: "
 echo " 000001@my_images.mrcs 10000 10500 0.0 200 2 0.1" 
 echo " 000002@my_images.mrcs 10000 10500 0.0 200 2 0.1" 
 echo " 000003@my_images.mrcs 10000 10500 0.0 200 2 0.1" 
fi