Yup, siridhar2bioinfo, seidel should have answered your question. If you want to pick the up-regulated genes or the down-regulated genes by using commands like awk:
assuming the column of log2(fold_change) is 3 (I am not familiar with cuffdiff output as I prefer using DESeq and edgeR), then you can do:
awk '{if($3 > 0 && index($3,"+inf")==0){print $0 > "Up_Regulated.txt"}else if($3<0 && index($3,"-inf")==0){print $0 > "Down_Regulated.txt"}}' InputFile
Then you will have the Up_Regulated.txt file which contains all the up-regulated observations and Down_Regulated.txt which contains all the down-regulated observations, removing all the +inf and -inf genes.
Hi, do you mean you want to separate the genes or to know which is which? If you get +inf or -inf, then one of your condition might have zero count such that you've got 0 fold change. As a result of that you will get +inf or -inf values. If I remember correctly, a genes with positive log2fold change will be up-regulated from condition A to condition B (if condition A/condition B) and negative log2fold change means a down-regulation.
Thanks for the reply Sam.. yeah i want to know which genes are up and down regulated... you mean +inf are up regulated and -inf are downregulated??