Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Binding energy statistics in the yeast genome (intergenic regions). Here we analyse signatures of selection from genomic data using transcription factor binding sites as an

Binding energy statistics in the yeast genome (intergenic regions). Here we analyse signatures of selection from genomic data using transcription factor binding sites as an example. Directory data/ contains a file alignment.txt.NaN.removed where intergenic sequences for four yeast species (S.cer, S.par, S.mik, S.bay) are given. Note we have removed insertions and deletions from the alignment so that analyses which in this assignment focus on a single species aspects are a bit simpler.

Python code that is given:

from setup import * %matplotlib inline

#import data to a dataframe datafile="data/alignment.txt.NaN.removed"; seq_igs=pd.read_csv(datafile,sep="\s+"); tfBindingFile="data/Emat.abf1.kinney"; # imports an energy matrix modelling transcription factor to DNA binding for factor Abf1 # the dimensions are 4 x 20, correspoding to the four nucleotides A,C,G,T and the binding sites motif length 20 # smaller energy values indicate better binding Emat=np.array(pd.read_csv(tfBindingFile,header=None,sep="\s+"))

def getEnergy(seq,Emat): s1=list(seq.replace('A','0').replace('C','1').replace('G','2').replace('T','3').replace('N','4')) Lmat=Emat.shape[1] Lseq=len(s1) Ev=[] for i in range(0,Lseq-Lmat+1): E=0.0; k=0; flag=0; eps=0.0; for j in range(i,i+Lmat): nuc=int(s1[j]) if nuc < 4: eps=Emat[nuc,k]; else: #remove sequences with missing data flag=1; E+=eps k+=1; if flag==0: Ev.append(E) return Ev

def randomise(seq): s1=list(seq.replace('A','0').replace('C','1').replace('G','2').replace('T','3').replace('N','4')) random.shuffle(s1) return "".join(s1)

Question:

Visualise the binding energy matrix Emat with elements ()k(a) where k denotes column (binding site position) and ,,,aA,C,G,T nucleotides. What is the best possible binding sequence according to this model?

Explain what the functions getEnergy() and randomise() do, and add some comments to the code to help a reader understand how they work.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Define "Rights Issue".

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

=+2 How does the preparation and support for each type of IE vary?

Answered: 1 week ago