diff PLIDflow/scripts/separateChain.sh @ 2:afd5b5ffc38f draft

Uploaded
author bitlab
date Tue, 14 Jan 2020 07:52:48 -0500
parents 6fcfa4756040
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PLIDflow/scripts/separateChain.sh	Tue Jan 14 07:52:48 2020 -0500
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Arguments
+# $1 = pdb
+
+grep "ATOM\|HETATM" $1 | awk '{ if(length($5)==1) updateName=$5;   if($1 == "ATOM" || $1 == "HETATM"){ print $0 > "chain"updateName".pdb";  }}' ; 
+for i in chain* ; do echo "TER" >> $i ; echo "END" >> $i ; done