Reverse complementary

I’ve started my project with reverse complement function that works on RNA or DNA sequences. Code you can find on github: https://github.com/science-is-the-new-black/bio_stuff/tree/master/reverse_complement

you can check out how it looks running python3 science.py

Input is checked whether it contain only ACTGU letters. Otherwise, on the results windows you’ll get ‘wrong sequence’ message. However, you can use both RNA and DNA in single sequence (U and T) and result will be changed to RNA or DNA according to your choice.

You can:

(1) just change RNA to DNA or DNA to RNA

(2) reverse the sequences

(3) obtain complementary sequence without reversing it

(4) obtain reversed complementary sequences

Easy 😉

Advertisements

2 thoughts on “Reverse complementary

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s