OK, that's what I inferred. How about (the first line will work with a recent shell only)
Code:
if [[ "ALA ARG ASN ASP CYS GLN GLY GLU HIS ILE LEU LYS MET PHE PRO SER THR TRP TYR VAL" =~ $AAA ]]
then for i in HS_*.pdb
do cat $i | voronota get-balls-from-atoms-file --annotated | \
awk -F"[<>]" -vSRCH="$AAA" '$0 ~ SRCH && !OCC[$4]++ {CNT++ } END {print CNT+0}' $i
done
else echo exit 1
fi
2
I was wondering if it was possible to tell awk to print the output of a command in the print.
.... | awk '{print $0}'
I would like it to print the date right before $0, so something like (this doesn't work though)
.... | awk '{print date $0}' (4 Replies)
Hi, I'm stuck in an awkward situation please help :)
I have two identical Seagate 80GB harddrives.
My objective is a bit strange.
1.I want to have a cloned disk as bootable backup
2.When booting using the master drive, I also want to mount the cloned backup disk so I can do incremental... (6 Replies)
I have a file, let's say 1.jpg, and I have a text file that contains a list of filenames I would like to duplicate 1.jpg as (i.e., 2.jpg, 3.jpg, 4.jpg, etc.). The filenames that I want to create are all on separate lines, one per line.
I'm sure there's a simple solution, but I'm not claiming to... (7 Replies)
Hi all,
Actually 2 files are there - file1, file2.
file1 contains --->
london
mosco
america
russia
mosco
file2 contains -->
europe
india
japan
mosco
england
london
Question is I want to print all the city names without duplication cities in those... (10 Replies)
i have many questions concerning the FD.
it was stated that "to redirect Error to output std, you have to write the following code"
# ls -alt FileNotThere File > logfile 2>&1
# cat logfile
ls: cannot access FileNotThere: No such file or directory
-rw-r--r-- 1 root root 0 2010-02-26... (9 Replies)
Hey,
I am making a Facebook like Page system as my first project, So far it's been bate in mind I did it from my 3DS at the same time as my PC gets replaced, So far it's turned out great. Now I am on to creation the blocking system I need to get the code to say If the user already likes the... (0 Replies)
Hi all,
I download and install lessfs for deduplication,
I copy files in /SharedFiles directory and lessfs work right and not store again copy files,
but, when i delete all files in /SharedFiles , not return free space to total space,
files not show in /SharedFiles , but not copy new files in... (3 Replies)
So while this seemed totally trivial it turned out to be much more difficult than I had thought.
I have a file with 3 rows, and I "just" want to add each field n number of times. E.g.
> cat file.txt
0.5
-0.1
0.6
for n=3 into:
cat newfile.txt
0.5 0.5 0.5
-0.1 -0.1 -0.1
0.6 0.6 0.6
I... (4 Replies)
Hello,
Giving those commands:
cat > myfile
1
2
3
^D
cat myfile | awk '{ s=s+$1 ; print s}'
The output is:
1
3
6
It seems like this command iterates each time on a different row so $1 is the first field of each row.. But what caused it to refer to each row ?.
What I mean... (3 Replies)
Discussion started by: uniran
3 Replies
LEARN ABOUT DEBIAN
trjorder
trjorder(1) GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c trjorder(1)NAME
trjorder - orders molecules according to their distance to a group
VERSION 4.5.4-dev-20110404-bc5695c
SYNOPSIS
trjorder -f traj.xtc -s topol.tpr -n index.ndx -o ordered.xtc -nshell nshell.xvg -[no]h -[no]version -nice int -b time -e time -dt time
-xvg enum -na int -da int -[no]com -r real -[no]z
DESCRIPTION
trjorder orders molecules according to the smallest distance to atoms in a reference group or on z-coordinate (with option -z). With
distance ordering, it will ask for a group of reference atoms and a group of molecules. For each frame of the trajectory the selected mole-
cules will be reordered according to the shortest distance between atom number -da in the molecule and all the atoms in the reference
group. The center of mass of the molecules can be used instead of a reference atom by setting -da to 0. All atoms in the trajectory are
written to the output trajectory.
trjorder can be useful for e.g. analyzing the n waters closest to a protein. In that case the reference group would be the protein and
the group of molecules would consist of all the water atoms. When an index group of the first n waters is made, the ordered trajectory can
be used with any Gromacs program to analyze the n closest waters.
If the output file is a .pdb file, the distance to the reference target will be stored in the B-factor field in order to color with e.g.
Rasmol.
With option -nshell the number of molecules within a shell of radius -r around the reference group are printed.
FILES -f traj.xtc Input
Trajectory: xtc trr trj gro g96 pdb cpt
-s topol.tpr Input
Structure+mass(db): tpr tpb tpa gro g96 pdb
-n index.ndx Input, Opt.
Index file
-o ordered.xtc Output, Opt.
Trajectory: xtc trr trj gro g96 pdb
-nshell nshell.xvg Output, Opt.
xvgr/xmgr file
OTHER OPTIONS
-[no]hno
Print help info and quit
-[no]versionno
Print version info and quit
-nice int 19
Set the nicelevel
-b time 0
First frame (ps) to read from trajectory
-e time 0
Last frame (ps) to read from trajectory
-dt time 0
Only use frame when t MOD dt = first time (ps)
-xvg enum xmgrace
xvg plot formatting: xmgrace, xmgr or none
-na int 3
Number of atoms in a molecule
-da int 1
Atom used for the distance calculation, 0 is COM
-[no]comno
Use the distance to the center of mass of the reference group
-r real 0
Cutoff used for the distance calculation when computing the number of molecules in a shell around e.g. a protein
-[no]zno
Order molecules on z-coordinate
SEE ALSO gromacs(7)
More information about GROMACS is available at <http://www.gromacs.org/>.
Mon 4 Apr 2011 trjorder(1)