Wednesday, April 10, 2013

How to rename files in linux (regular expression)

Here is a very useful link to this question, just need to download their perl script and then use perl regular expression to rename file!!

It's a very good post, and I strongly recommend it!

http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html#perlscript

Friday, February 1, 2013

nucleotide degenercy code

ref: http://www.le.ac.uk/bl/phh4/nucredun.htm

A = Adenine
C = Cytosine
T = Thymine
G = Guanine
U = Uracil
N = A, G, C or T = aNy
R = A or G = puRine (9-ring with 4 N and 5 C)
Y = C or T (also U) = pYrimidine (6-ring with N at positions 1 and 3)
M = A or C = aroMatic
S =  G or C 
W = A or T 
 K = G or T = Keto 
V = A, C or G = Not T (letter after)
D = A, G or T = Not C
H = A, C or T = Not G
B = C, G or T = Not A

Wednesday, January 30, 2013

sample from discrete distribution in R


 Basically use sample function:

refer to this very useful blog:

http://msenux.redwoods.edu/math/R/SampleDiscrete.php

How to rename files in linux (regular expression)

Here is a very useful link to this question, just need to download their perl script and then use perl regular expression to rename file!! ...