TickingClock的个人博客分享 http://blog.sciencenet.cn/u/TickingClock

博文

Rosalind 8 - Transcribing DNA into RNA

已有 3735 次阅读 2017-10-24 08:32 |个人分类:Python Learning|系统分类:科研笔记|关键词:学者

Bioinformatics Stronghold - RNA: Transcribing DNA into RNA


The Second Nucleic Acid


在染色质上与DNA一起的还有一种核酸叫做核糖核酸ribose nucleic acid),简称为RNA。RNA与DNA不一样的地方在于其用尿嘧啶uracil)替换了DNA上的胸腺嘧啶(thymine)。



Structural differences between RNA and DNA


RNA是以DNA作为模版进行转录合成新链,主要就是把DNA上的T用U替换,其它的碱基都不变,其一类特殊的产物叫做信使RNAmessenger RNA;即mRNA)。


在真核生物中,DNA主要局限于细胞核中,而RNA可以达到细胞的任何位置,以传达DNA的指令。


Problem


An RNA string is a string formed from the alphabet containing 'A', 'C', 'G', and 'U'.


Given a DNA string t corresponding to a coding strand, its transcribed RNA string u is formed by replacing all occurrences of 'T' in tt with 'U' in u.


Given: A DNA string t having length at most 1000 nt.


Return: The transcribed RNA string of t.


Sample Dataset


GATGGAACTTGACTACGTAAATT


Sample Output


GAUGGAACUUGACUACGUAAAUU


Solution


就是把序列中的T替换成U:


>>> 'TATGGAACTTGACTACGTAAATT'.replace('T','U')
'UAUGGAACUUGACUACGUAAAUU'

>>>


Over


Rosalind is a platform for learning bioinformatics and programming through problem solving. Take a tour to get the hang of how Rosalind works.


P.S. 欢迎关注微信公众号:微信号Plant_Frontiers




https://m.sciencenet.cn/blog-3158122-1082191.html

上一篇:Nature Genetics:上位性效应在冬小麦籽粒产量杂种优势中的作用
下一篇:Plant Cell:拟南芥中促进叶片衰老的三重放大回路模型

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-26 17:38

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部