annotate PLIDflow/scripts/separateChain.sh @ 3:d45ae17b4470 draft

Removed modeller which was not necessary anymore
author bitlab
date Mon, 27 Jan 2020 02:49:46 -0500
parents 6fcfa4756040
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
1 #!/bin/bash
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
2
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
3 # Arguments
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
4 # $1 = pdb
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
5
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
6 grep "ATOM\|HETATM" $1 | awk '{ if(length($5)==1) updateName=$5; if($1 == "ATOM" || $1 == "HETATM"){ print $0 > "chain"updateName".pdb"; }}' ;
6fcfa4756040 Uploaded
bitlab
parents:
diff changeset
7 for i in chain* ; do echo "TER" >> $i ; echo "END" >> $i ; done