Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Q1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This script is for Question 1 of EX11
# Usage: bash Q1.sh

cat gene_sequences/sporecoat01.fasta > gene_sequences/sp.fasta
for sp in gene_sequences/sporecoat0[234].fasta
do
echo \n >> gene_sequences/sp.fasta
cat $sp >> gene_sequences/sp.fasta
done
./bin/muscle -in gene_sequences/sp.fasta -out gene_sequences/sp.align

cat gene_sequences/transporter01.fasta > gene_sequences/tr.fasta
for tr in gene_sequences/transporter0[234].fasta
do
echo \n >> gene_sequences/tr.fasta
cat $tr >> gene_sequences/tr.fasta
done
./bin/muscle -in gene_sequences/tr.fasta -out gene_sequences/tr.align
19 changes: 19 additions & 0 deletions Q2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This script is for Question 2 of EX11
# Usage: bash Q2.sh

# build a HMM profile for the transporter gene
./bin/hmmbuild proteomes/tr.hmm gene_sequences/tr.align

# search the hits to HMM profile
for bp in proteomes/*.fasta
do
./bin/hmmsearch --tblout ${bp%.*}.hits proteomes/tr.hmm $bp
done

# count for number of hits
echo "Number of hits to the HMM profile in each proteome:" > proteomes/hit_counts.txt
for hits in proteomes/*.hits
do
echo ${hits##*/} >> proteomes/hit_counts.txt
cat $hits | grep -v "#" | wc -l >> proteomes/hit_counts.txt
done
Binary file added bin/alimask
Binary file not shown.
Binary file added bin/hmmalign
Binary file not shown.
Binary file added bin/hmmbuild
Binary file not shown.
Binary file added bin/hmmconvert
Binary file not shown.
Binary file added bin/hmmemit
Binary file not shown.
Binary file added bin/hmmfetch
Binary file not shown.
Binary file added bin/hmmlogo
Binary file not shown.
Binary file added bin/hmmpgmd
Binary file not shown.
Binary file added bin/hmmpress
Binary file not shown.
Binary file added bin/hmmscan
Binary file not shown.
Binary file added bin/hmmsearch
Binary file not shown.
Binary file added bin/hmmsim
Binary file not shown.
Binary file added bin/hmmstat
Binary file not shown.
Binary file added bin/jackhmmer
Binary file not shown.
Binary file added bin/makehmmerdb
Binary file not shown.
Binary file added bin/muscle
Binary file not shown.
Binary file added bin/nhmmer
Binary file not shown.
Binary file added bin/nhmmscan
Binary file not shown.
Binary file added bin/phmmer
Binary file not shown.