Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

pipeline structural bioinformatics

#!/bin/bash

echo "1] Performing Blast Search..."
blastp -query target.fa -db $uniprot -out blast_uni.out
echo "OK!"
echo
echo "2] Obtaining HMM profile..."
hmmscan -o pfam.out --tblout profile.out $pfam target.fa
family=$(cat profile.out | awk 'NR==4' | awk '{print $1}')
echo $family
hmmfetch $pfam $family > domain.hmm
echo "OK!"
echo
echo "3] Searching sequences with known structure using HMM profile..."
hmmsearch domain.hmm $pdb > pdb_hmm.out
structures=$(grep -m 1 -A 6 "E-value" pdb_hmm.out | tail -n +3 | awk '{print $9}')
echo $structures
echo "OK!"
echo
echo "4] Align obtained sequences with the target using HMM profile..."
cat target.fa > structures.fa
for i in $structures
do
    id=$(echo $i | cut -d '_' -f1)
    if [ -f "$id.pdb" ]; then
        break
    else
        wget https://files.rcsb.org/download/$id.pdb &> /dev/null
        $splitchain -i $id.pdb -o $id
        id2=$(echo $i | tr -d _)
        cat $id2.fa >> structures.fa
    fi
done
hmmalign domain.hmm structures.fa > hmm_alignment.aln
cp hmm_alignment.aln hmm_alignment.sto
perl /shared/PERL/aconvertMod2.pl -in h -out c <hmm_alignment.sto>hmm_alignment.clu
echo "OK!"
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu 21.04 install gnome tweak tool 
Shell :: git diff without pagination 
Shell :: pull all files out of subfolders recursively 
Shell :: view block devices and file systems on linux 
Shell :: force shudown app from terminal 
Shell :: docker error "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. 
Shell :: even digits leetcode 
Shell :: docker compose logs container stdout 
Shell :: What is the command to build image from Dockerfile and Podman 
Shell :: promtail multiline 
Shell :: Check for command’s result 
Shell :: remove last command from history 
Shell :: instal specific version software in archlinux 
Shell :: scapy tutorials for mac 
Shell :: ssm terraform login to ec2 
Shell :: exiting nano 
Shell :: linux change default gateway 
Shell :: what is ssh key 
Shell :: install lua in ubuntu 
Shell :: grep search match in all files in folder 
Shell :: grep or match 
Shell :: gparted 
Shell :: ubuntu install Qsampler 
Shell :: install kubectl on ubuntu 
Shell :: how to install chrome browser on linux mint using terminal 
Shell :: psneuter download 
Shell :: powershell copy all images in a directory 
Shell :: rolyn is missing after retrieve from source control 
Php :: Go back URL in Laravel 
Php :: Class "AppHttpControllersAuth" not found 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =