Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Bioinformatics Consider a set S of (k+1)-mers of some unknown DNA string. Let Src denote the set containing all reverse complements of the elements

Python Bioinformatics

Consider a set S of (k+1)-mers of some unknown DNA string. Let Src denote the set containing all reverse complements of the elements of S. (recall from Counting Subsets that sets are not allowed to contain duplicate elements).

The de Bruijn graph Bk of order k corresponding to SSrc is a digraph defined in the following way:

  • Nodes of Bk correspond to all k-mers that are present as a substring of a (k+1)-mer from SSrc.
  • Edges of Bk are encoded by the (k+1)-mers of SSrc in the following way: for each (k+1)-mer r in SSrc, form a directed edge (r[1:k], r[2:k+1]).

Given: A collection of up to 1000 (possibly repeating) DNA strings of equal length (not exceeding 50 bp) corresponding to a set S of (k+1)-mers.

Return: The adjacency list corresponding to the de Bruijn graph corresponding to SSrc.

Sample Dataset

TGAT CATG TCAT ATGC CATC CATC

Sample Output

(ATC, TCA) (ATG, TGA) (ATG, TGC) (CAT, ATC) (CAT, ATG) (GAT, ATG) (GCA, CAT) (TCA, CAT) (TGA, GAT)

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

Recommended Textbook for

Genomes Browsers And Databases Data Mining Tools For Integrated Genomic Databases

Authors: Peter Schattner

1st Edition

0521711320, 978-0521711326

More Books

Students also viewed these Databases questions

Question

What is human nature?

Answered: 1 week ago