
Please provide a python code that solves this problem. Run your code with the metgenes.fasta file (genes copied below) to get output that look like the one i described. Please, don't give me an explanation of how to do it, I would like code not explanation. I will upvote.
Here is the sequence in the metgenes.fasta file. Test it with your code and if you get an output that looks like this, you're correct.
Output:
SAM2 20.78 TTTTTTT 505
MET30 20.78 TTTTTTT 42
RAD59 20.78 TTTTTTT 15
The word limit is 5000 so I couldn't post all the sequences but you should get an output similar to what's above. Metgenes.fasta Sequence:
>SAM2
TAACACTTACAGAGTCCTATCAGGAAAGAATAAAAGCCGATCAAGCTTCATTCTCAGGTA
ACAACTGGAGCACTGGCGAGCTTTGCTCTATTATATAAGATAAAATATGCACTAAAAGTT
TGCATTTCTTTACATAACTAAAACTAAGACATTATGCATAGCTTACCTGATCAAAAAGTA
TGTAAACTTGTTAACATCTTCACATGTGATTCATCTGGTCGTACTTTCTTGCGGTGCAGT
GTAATATTTCTACCCACGTGACTATAATTGAGCTTGAAAACTGTGGCGTTTTTCCACCGA
TGGGTCCACGCCAGATATTAACCGAAGCCAAAATACCGATGAAATTTCTGAGATAGCTCT
TGTAAACGACGTCAAATCTTCATATGCAAGGAGATCTTGATTTCTTTTTGGTAGTCATCT
GTCGTCTTGAGGCGTATAAGAAGGAGGTTATATCTGTCCTTTCTACAAAGTATTTTCGAG
AATCTTGCTTCTGCCCCTTTTTTCTTTTTTTAAAAGGTTTAAAAAACATAACTGTCTTCA
ATATATCCAGTATTTACGACAATATACAAACATAATC
>MET30
CACGTGATCGGGAAGCCACAGTTTGCGCGGAGATATTTTATTTTTTTTCATCAGCGTAAG
AAGAAAGCAACCTTGCAGTCTGTATCGTAAGAGAAGACTGCAGTTAAAGAAGTTTAGAGA
AGAGGCTTGAGTATCGGTAAAGGGGTGTGTGTTTGGTGATTTATAAAGGAGAAGGGC
>RAD59
TCTTGATAGGAGGGTTGTTATAGATATTAATCACTCGAAGTCGTGAACAAGAATTGTCTT
CTCTCCAGTATTCAGTCTCTGTGATGTCTAAACCCTGTTAATGTGCAAGGTCTATTTTTT
TCGTAAGAACCACGCGCTTTAGGCTTTATTTCTGGTAATAATAGCAAGAAATAAGAACAG
ACAGTTGCAAATCTAAACGACTGTCCAAACGAAAGTATCAAGTTCGCTAAATTTACTTCG
AAGACAGAAGCCAGTAAATTTTGTTTTCTTCATGGAAATAGTTTCCAAAAAGTTCTTAGT
AATTACCATATGTTCTTGTATGTGGCGCTGCGAAAGAAAGGTTAGCCGACCGGCATCACC
CATAATTGTATAATATAGCAATGAAGCAACTTGTTGAAGTTTTCTTTAAAGTACTATAGT
ATTGAATAATATCATGTTCACTTGATAAAATTGGGTATTTTATTGACCATTATATCGCGT
TGGACACTAATGTCTTTCAAGTTGGTGTCACGTCACGTGCTTTTCAATGTACTGGGGCAA
ATTGATTAGAGGAAGCCACAGTTTGGCAAGGGCAGATATGATAGGAAGCAGTAACGGCAA
GGAAGGATAAGAACATCATTGAGGGAGTCTGTGGCAGTTTAGCACATGCTTTGGACCATT
AAAGGGTTACGTAGAGGAGAAGAGCATATTTCAGGATAAACAGACAAAATA
>MET3
AAGAGTACAATTTATAAATTAATGAAAACACAGAAGTATTTAGATCGGCTCAAATGTTTT
TGGACATTAAAAGATCTTGAAACTGAGTAAGATGCTCAGAATACCCGTCAAGATAAGAGT
ATAATGTAGAGTAATATACCAAGTATTCAGCATATTCTCCTCTTCTTTTGTATAAATCAC
GGAAGGGATGATTTATAAGAAAAATGAATACTATTACACTTCATTTACCACCCTCTGATC
TAGATTTTCCAACGATATGTACGTAGTGGTATAAGGTGAGGGGGTCCACAGATATAACAT
CGTTTAATTTAGTACTAACAGAGACTTTTGTCACAACTACATATAAGTGTACAAATATAG
TACAGATATGACACACTTGTAGCGCCAACGCGCATCCTACGGATTGCTGACAGAAAAAAA
GGTCACGTGACCAGAAAAGTCACGTGTAATTTTGTAACTCACCGCATTCTAGCGGTCCCT
GTCGTGCACACTGCACTCAACACCATAAACCTTAGCAACCTCCAAAGGAAATCACCGTAT
AACAAAGCCACAGTTTTACAACTTAGTCTCTTATGAAGTTACTTACCAATGAGAAATAGA
GGCTCTTTCTCGAGAAATATGAATATGGATATATATATATATATATATATATATATATAT
ATATATGTAAACTTGGTTCTTTTTTAGCTTGTGATCTCTAGCTTGGGTCTCTCTCTGTCG
TAACAGTTGTGATATCGTTTCTTAACAATTGAAAAGGAACTAAGAAAGTATAATAATAAC
AAGAATAAAGTATAATTAAC
>MET28
GACTGTGATAATATGCTAGTTACACTGTTTATGTTGTGTGAACTTGTTGTAATATGGTTA
ACTTCACTTTCAGTGATTGATATGATAGCGACATCACTGCCGTGCAAAAAGACCATTCCA
TTACTGCACCTTTTTGTCCTTTTCCGTGGAATAAAAGTTCACTCGTCAGTTCCATGCATT
CTGGAAAAAAATGATCTGAAAGATGCCACAGTTGTGGGGCCCGCCCGGCCCAATAGGTAA
ACTAAAATACAATAGAAGGGGTACTGAGTGCACGTGACTTATTTTTTTTTTTTGGTTTTA
GGTTTCGCTTTTTTCACCTTTTTCTACTTTCTAACACCACAGTTTTGGGCGGGAAGCGGA
AACGCCATAGTTGTAGGTCACTGGCGTGAGTCAAGGCCGGGCAGCCAATGACTAAGAACA
CGAGGTAACTTGAATTTAACTATTTATAACCAGTGGTAGTTACGAAGACAAATTGTTTTG
TTCGTCAAT
>BNA3
TTTTTATCCAGTGAGTTTCCTTGTTCACTTTCGAGAATGGAAGGCTGATTTCGAATTTTT
ATATTCAACAACTGTATTTGTATTAGGCTTTGCAATAGTAGATGAAAAGTGCAGAAGACG
AATCTGCTACCCTCACAATACAAAGAAAAACAAAATCGTCATTTTAATATAGGAAGACAC
CGCTCAGGTAATTCAATATTGAATCTGGTTGCACTTTTCTTACGATGTAAATACCCACAA
ACTTCTTGTACGGTGAGCGTCTGACAACGAAATCAATTTACGGAGCAAGGATTTTGACAG
TAGAGCAGATTGTTTTGAGTAGGATTTAGGAATCAAGACCTCCATCTTTGTCGCATTATT
CCTAAATGTAACGTAACTCGTTTGATAAGAGAATGTCTAATCGAAGAGAGTTAATAACTT
AATAAGCTCTTTAAAAGAACGATGGCATTTATCGTCTCCTATGCCAAGATAATTACTGGC
TCAAAATTGTTCAGCGTTCATAAAACTTTGATATCACTTTCTGGCGCACAAGCTAACCTT
TATGTAGTTCTTACGTAGATTCTTTTTAGCAAGTGCCTGGTAGTGGTTATTACATAAATG
TATCTTTTCATTTGATAACAATTTCTTCAGTAGCATGTCGTGTCTAGCACGTGACGTAGA
ACTGTGGCTTTTTTGTTGTCATTATGACAATCAAGATACCAAAATTCAGTCATGTTTAAA
AGGGGAAGGTACGATAGAGATATATATAAAGTGTTCAATTTACTATAATTGCGTATAGAA
TCCATTGTTACTTGCTCTCA
>GSH1
CAAGGGATTTTATCGGTCAAAGGGGAAATCAATGCGAAAGACAGTAATGATGAGAGAAAA
ACTCTCCGTAACCACCAAGTTTGGTTCAGCGCGACGAGATTTTTATCGATTATCGAGAAA
AATACCTGTATATCTACATTTCTATGTCAGTGATATATACTTCTTAGATAAGTTATGCCA
CCAGTGCATACGCTTACGCACACACACGTATTCTTGTGCACACGCCTGTTACTTCTTGCA
GACATCAGACATACTATTGTAATTCAAAAAAAAAAAGCGAATCTTCCCATGCCTGTTGCT
GCTCTTGAATGGCGACAGCCTATTGCCCCAGTGTTCCCTCAACAACCTTGGTAGTTGGAG
CGCAATTAGCGTATCCTGTACCATACTAATTCTCTTCTGCCCAACGACGGCTGCCATTAG
TCAGCATGGCGCGCACGTGACTACAACTGTGGCTGGAAACCTTTTCGTCCTCCCCGGTTT
TTCAGTGAGCCGACTCTACTACAATGCTTTTTCATTTTTCACTCAGAAAAACCTGCAATT
TGCCAAATTGGCCATGCTCTGTGCCTCCCTTGACAAAGGACATCTTCCCTGTTTATAAAC
GGCGGCTTACCAAAAGTTGAAGCTTGTTCTTGCCTCTTATGAGTGGAGCAATCGATTATA
TTGAATCGTTGTGCTGGAGTAGTTGGATCTTTCCACGTGGTCTCGAGTCACTTGTAGAAG
![Question 5
For each of the 18 sequences in metgenes.fasta, find the best match to the following PWM. Print the gene name, PWM score, sequence and position. For
example, the first two genes should look like this:
SAM2 20.78 TTTTTTT 505
MET30 20.78 TTTTTTT 42
In [13]: # PWM for Question 5
PFM = np.matrix([
[
[
[
30, 10, 10, 10, 10, 10, 30],
30, 10, 10, 10, 10, 10, 30],
30, 10, 10, 10, 10, 10, 30],
[ 30, 90, 90, 90, 90, 90, 30]])
PPM = PFM / np.sum(PFM,axis=0)
PWM = np.log2 (PPM) np.log2 (bj.reshape(4,1))
In [14]: # Answer
#Please note, the output should Look Like this:
SAM2 20.78 TTTTTTT 505
MET30 20.78 TTTTTTT 42
RAD59 20.78 TTTTTTT 15
and it should print about 18 of them.](https://content.bartleby.com/qna-images/question/22bc06e6-76c3-4a59-ac51-4727217bc90e/a65173f6-59c4-4b8c-8538-b2c8a51dc493/nexp8cf_thumbnail.png)

Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images

- Create a file with given numbers. Read them from file with a python program andcalculate mean, median, variance and standard deviation for this data.Mean, Variance, Standard Deviation,Here μ = = Mean900 932 298 918 645 505 922 324 979 360 775 53 12 986 764 400 81 923 233 450897 166 787 148 376 385 49 62 149 618 568 270 52 295 278 705 942 341 365 74 538604 958 816 634 566 216 919 475 988 732 835 200 741 587 910 183 204 684 349373 29 503 63 217 213 656 416 350 386 257 827 820 807 369 634 185 690 255 312380 449 564 615 966 342 153 425 830 365 347 487 550 788 959 79 129 666 115 27arrow_forwardWrite a script file that will ask the user for an integer. Your program must use the “mod” function to find all the composite numbers up to and including the number input by the user. You cannot use the “isprime” function in MATLAB. You must use a nested loop and the “mod” function to determine the composite numbers.This program will find all the composite numbers up to and including the integer you input. Please input an integer: 11 4 is a composite number! 6 is a composite number! 8 is a composite number! 9 is a composite number! 10 is a composite number!arrow_forwardWrite a Java program that opens a file and counts the whitespace-separated words in that file. You may obtain the name of the input file either from the command line or via prompt and user input. Be sure to clearly document the method chosen. You may test your program using any number of text files; however, you must be sure to test your program using the Sample Text File provided at the end (excerpt.txt). Sample Text File There was nothing so VERY remarkable in that; nor did Alice think it so VERY much out of the way to hear the Rabbit say to itself, `Oh dear! Oh dear! I shall be late!' (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually TOOK A WATCH OUT OF ITS WAISTCOAT- POCKET, and looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to…arrow_forward
- One of the files is the instructions. One is what I have so far. My question's are: I'm confused about what they mean by holds the following data attributes. Do I write any code for that? ALSO: for list of number of gear teeth values- I'm not sure what they mean by should have a length equal to... etc. How would I write that in python? Thanksarrow_forwardWrite a python program that will open the file dataFile.csv, read its contents and print them out. Your output should look like this: First Last Age Wagejane Smith 21.00 21.50Jack Jones 20.00 19.50Edgar Martinez 22.00 22.75Zanab Sayegh 21.00 21.75arrow_forwardWrite a Python program that reads the file studentData.txt which contains the first name and last name of students. Print out "Names of the students." Then print the various information found in the file. For testing write any 5 names in your file and attach your code, file, and output in the document.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





