Thursday, October 28, 2010

rdesktop

check the help of rdesktop, it is possible to control the sound. I am using linux but rdesktop to windows 7 server. I play music and listen to music on the server:
rdesktop -0 -p - -r sound:remote -z -x l -a 16 -f -u ... -d ...

Sunday, October 24, 2010

Things about GO annotation

1, Note that annotating to a term implies annotation to all parents via any path. Usually, an annotation should be the most detailed level in the ontology that describes the biology. However, sometimes, one cannot be certain about the level, then annotating with a pair of parent-offspring GO terms is recommended. Go even permits you annotate a gene product with conflicting terms if the biology is in controversial.

[ref] http://www.geneontology.org/GO.annotation.conventions.shtml

2, GoSlim is the cut down version of GO. Some detailed information is neglect in order to just give a broad overview. GoSlim could be curated by different users to meet their own needs. A perl script map2slim.pl was developed to help map Go annotation to the nearest parent GoSlim node.

[ref] http://www.geneontology.org/GO.slims.shtml

3, Pay attention to the regulate relationship.

Sunday, July 18, 2010

change all text into lower case

tr '[:upper:]' '[:lower:]' <> output.txt

Monday, July 5, 2010

the performance of naive Bayesian network

1, does more attribute definitely improve the performance of naive Bayesian classifier?
continue the example by assuming the first LR is derived from age, and the second from weight and the predicted value is the chance of a disease.

2, reference for feature selection
Learning Augmented Bayesian Classifiers: A Comparison of Distribution-based and Classification-based Approaches.
Feature subset selection as search with probabilistic estimates.
Scaling up the Naive Bayesian Classifier: Using Decision Trees for Feature Selection.
Induction of Selective Bayesian Classifiers.
Bayesian Network Classfiers


3, an interesting thesis on ml
Attribute Interactions in Machine Learning

4, ML book
Introduction to Machine Learning

Tuesday, May 11, 2010

grep multiple words from a file

it is very easy, just use -f option:
grep -f keywords_file target_file

in the keywords_file, put one keyword per line

Thursday, May 6, 2010

something about Mycoplasma Pneumoniae

1, Mycoplasma Pneumoniae @ Uniprot
http://www.uniprot.org/docs/mycpn
# note that this place has a lot of comprehensive interesting documents

2, Annotation of Mycoplasma Pneumoniae's genome
http://coot.embl.de/Annot/MP/
and also the paper on NAR:
http://nar.oxfordjournals.org/cgi/content/full/28/17/3278
# note that this is hosted at Bork's group!
As you can see, Mpn245 is def and Mpn 246 is gmk here. However in their Science paper came out at Nov. 2009, they were wrongly mapped as Mpn246 -> def and Mpn 245 -> gmk
This takes quite a long time to figure out!

Wednesday, February 24, 2010

is it possible to get a more accurate time

is it possible to get a more accurate time?

edit 1:
I found another peace of code that does it

$start = (time)[0];

# script code goes here

$end = (time)[0];
printf "Elapsed time: %.2f seconds!\n", $end - $start;


edit 2:

Got another one.... this one shows something like "Elapsed time: 1.149333 seconds!"

use Time::HiRes;
my $start = [ Time::HiRes::gettimeofday( ) ];

## Your code goes here

my $elapsed = Time::HiRes::tv_interval( $start );
print "Elapsed time: $elapsed seconds!\n";