Posts

Protein Gene BLAST

         From previous lecture, we had learnt to use a search tool called Basic Local Alignment Search Tool (BLAST). BLAST finds regions of similarity between biological sequences. The program compares nucleotide or protein sequences to sequence databases and calculates the statistical significance. In the previous lecture by Dr Azran, he taught us how to use BLAST for a protein gene. For example, we want to find the  BRCA1 genes. We search the gene of BRCA1 for homo sapiens in National Centre for Biotechnology Information (NCBI).            Secondly, we make a comparison between the homo sapiens BRCA1 gene with other  BRCA1 animal gene that is similar to human gene which are Pan troglodytes (chimpanzee), Rattus norvegicus (norway rat), Myotis lucifugus (little brown bat), Acinonyx jubatus (cheetah) and finally Dipodomys ordii (Ord's kangaroo rat).            Thirdly, the nucleotide sequence of the gene was downloaded from BLAST in FASTA format. From the nucleotide sequen

Python... Python... last part

Image
 Welcome back for part 3, the final part... We want to create plots for all of our data sets with a single statement. To do that, we’ll have to teach the computer how to repeat things. An example task that we might want to repeat is printing each character in a word on a line of its own. word = 'lead'   We can access a character in a string using its index. For example, we can get the first character of the word ‘lead’, by using word[0]. One way to print each character is to use four print statements: print(word[0]) print(word[1]) print(word[2]) print(word[3])   Output: l e a d   This is a bad approach for two reasons: It doesn’t scale: if we want to print the characters in a string that’s hundreds of letters long, we’d be better off just typing them in. It’s fragile: if we give it a longer string, it only prints part of the data, and if we give it a shorter one, it produces an error because we’re asking for characters that don’t e

Python... Python... part 2

Image
Welcome back... Now we will continue with part 2 of python programme. In this post, we will mostly apply what we learnt in part 1. LET'S BEGIN... In order to load our inflammation data, we need to access ( import in Python terminology) a library called NumPy . In general you should use this library if you want to do fancy things with numbers, especially if you have matrices or arrays. We can import NumPy using:   import numpy Libraries provide additional functionality to the basic Python package. Once you’ve imported the library, we can ask the library to read our data file for us: numpy.loadtxt(fname='inflammation-01.csv', delimiter=',') array([[ 0., 0., 1., ..., 3., 0., 0.], [ 0., 1., 2., ..., 1., 0., 1.], [ 0., 1., 1., ..., 2., 1., 1.], ..., [ 0., 1., 1., ..., 1., 1., 1.], [ 0., 0., 0., ..., 0., 2., 0.], [ 0., 0., 1., ..., 1., 1., 0.]])   The expression numpy.loadtxt(.

Python... Python... Part 1

Image
Welcome everybody. For this post, I will be sharing what we learnt with our lecturer. About Python. No!!! Not that python... but this one Now, let us get to know about python first before going deeper. Introduction to Python Python is a powerful high-level, object-oriented programming language created by Guido van Rossum. Python is a fairly old language created by Guido Van Rossum. The design began in the late 1980s and was first released in February 1991. It has simple easy-to-use syntax, making it the perfect language for someone trying to learn computer programming for the first time. Benefits Python is a general-purpose language. It has a wide range of applications from Web development (like Django and Bottle), scientific and mathematical computing (Orange, SymPy, NumPy) to desktop graphical user Interfaces (Pygame, Panda3D). The syntax of the language is clean and length of the code is relatively short. It's fun to work in Python because it allows you to

URL

Image
URL is the abbreviation for The Universal Resource Locator . If you spend most of your time in front of the computer, you might notice a long word located inside a bar: For example, this is a screenshot of your desktop. Those in the red box is what we called URL ! Or more specifically known as URL address. Just like when you're writing a letter to someone, to reach the person's house you must know the address, same goes to what happened on the Internet. If you want to browse a website, you must know it's URL address. This is a clear and brief explanation behind each piece of word from the URL address. Protocol that may appear in URL'S

Cara nukarin 32 bit kepada dot desimal

32 bit angka tersebut dapat dituliskan dalam bentuk yang lebih manusiawi yakni dalam format  bilangan desimal . Caranya adalah dengan membagi angka 32 bit tersebut menjadi 4 bagian masing-masing 8 bit. Setiap bagian tadi disebut octet. 11000000 10101000 00001010 00000001 8 bit 8 bit 8 bit 8 bit Kemudian  untuk setiap 8 bit bilangan biner  dapat kita konversi menjadi bilangan desimal, sehingga kita dapatkan 4 buah angka desimal. Cara mengkonversi bilangan biner menjadi bilangan desimal adalah dengan menggunakan tabel berikut ini : Nilai dalam desimal 128 64 32 16 8 4 2 1 Bit ke-1 ke-2 ke-3 ke-4 ke-5 ke-6 ke-7 ke-8 Yang berarti : bit ke – 1 bernilai 128 bit ke – 2 bernilai 64 bit ke – 3 bernilai 32 bit ke – 4 bernilai 16 bit ke – 5 bernilai 8 bit ke – 6 bernilai 4 bit ke – 7 bernilai 2 bit ke – 8 bernilai 1 Misal, dengan menggunakan tabel diatas, 8 bit  11110000  ini dapat kita konversi menjadi bilangan desimal seperti berikut : Nilai dalam desimal 128 64 32 16

HISTORY OF THE INTERNET

Image
As Internet nowadays has become a part of us, do you guys actually know the history of Internet? And are you keen to discover more about it? Aren't you curious to know who Internet was developed back during the old days? Here's how its happened. ✌✌✌✌✌✌✌ WHAT IS INTERNET? Internet is a network of networks, joining many government, university and private computers together and providing an infrastructure for the use of E-mail, bulletin boards, file archives, hypertext documents, databases and other computational resources The vast collection of computer networks which form and act as a single huge network for transport of data and messages across distances which can be anywhere from the same office to anywhere in the world The largest network of networks in the world Uses TCP/IP protocols and packet switching Runs on any communications substrate BRIEF HISTORY OF INTERNET Timeline of Internet's development The precursor to the Internet was