Repository
All (at first) most of the example code of each post will be collected on this page. I will update the posts to direct links to the code here. The source will be displayed inside the a page and also be available for download.
AY162388.seq – sequence used in some of the scripts
code_01.py – Hello World
code_02.py – DNA sequence concatenation
code_03.py – convert DNA to RNA with RegEx
code_04.py – print a sequence file line by line
code_05.py – finding motifs in DNA sequences
code_06.py – finding motifs in DNA sequences, take two
code_07.py – counting nucleotides
code_08.py – counting nucleotides take two
code_09.py – count nucleotides with user interaction
code_10.py – add a poly-T tail to a sequence using a function
code_11.py – count nucleotides using a function
code_12.py – a very simple dice game
code_13.py – generates a random DNA sequence with random.choice()
code_14.py – generates a set of simulated DNA sequences
code_15.py – generates a set of simulated DNA and checks for nucleotide frequencies and sequence identity
code_16.py – DNA transcription – very simple
code_17py – simple string manipulation in Python
code_18.py – a simple string to translate DNA to proteins, using the homemade dnatranslate module
dnatranslate.py – the module with the function to translate DNA to protein
fasta.py – the module with the FASTA reading class and function – UPDATED
code_19.py – simple script that read a FASTA file and prints the sequences formatted
code_20.py – script to translate DNA into protein, this time using previously coded modules
code_21.py – derivation of code_20.py
code_22.py Restriction Enzyme site finder script
more to come …
Recent Comments