Mercurial > repos > bitlab > plidflow
view 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 |
line wrap: on
line source
#!/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