Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python I want to append and concatenate the mrna sequence. >A18178 1 caccaataaaaaaacaagcttaacctaattc >A21196 1 cggccagatcta >A21197 1 agcttagatctggccgggg >AX557348 1 gcggatttactcaggggagagcccagataaatggagtctgtgcgtccaca gaattcgcacca >AX557349

In python I want to append and concatenate the mrna sequence.

>A18178 1 caccaataaaaaaacaagcttaacctaattc >A21196 1 cggccagatcta >A21197 1 agcttagatctggccgggg >AX557348 1 gcggatttactcaggggagagcccagataaatggagtctgtgcgtccaca gaattcgcacca >AX557349 1 gcggatttactcaggggagagcccagataaatggagtctgtgcgtccaca gaattcgcacca >AX557350 1 tccgtgaaacaaagcggatgtaccggatttttattccggctatggggcaa ttccccgtcgcggagcca

image text in transcribed

image text in transcribed

Write a function named input_sequences(filename) that will read in sequences from a FASTA file. The file should create a list of lists that contains the tag and sequence pairs and return it. The sequence data (all consisting of the letters a, c, t, g) should appear as a single sequence. The list of lists must be of the format ( [tag, sequence], [tag, sequence], [tag, sequence]] Consider the following example FASTA file that contains 4 sequences: >A21197 1 agcttagatctggccgggg >AX557348 1 goggatttactcaggagtctgtgcgtccaca gaattcgcacca >AX557349 1 goggatttactcagtccaca gaattcgcacca >AX557350 1 tccgtgaaacaa ccggctatggggcaa ttccccgtcgcggagcca The list of lists returned from input_sequence() with the above data would be: [['A21197 1', 'agcttagatctggccgggg'], ['AX557348 1', 'goggatttactcaggagtctgtgcgtccacagaattcgcacca'], ['AX557349 1', 'gcggatttactcagtccacagaattcgcacca'], ['AX557350 1', 'tccgtgaaacaaccggctatggggcaattccccgtcgcggagcca']]

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_2

Step: 3

blur-text-image_3

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

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions