diff deseq-hts_1.0/tools/separate.m @ 0:94a108763d9e draft

deseq-hts version 1.0 wraps the DESeq 1.6.0
author vipints
date Wed, 09 May 2012 20:43:47 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deseq-hts_1.0/tools/separate.m	Wed May 09 20:43:47 2012 -0400
@@ -0,0 +1,7 @@
+function f = separate(str, delim)
+
+f={};
+idx=[0 find(str==delim) length(str)+1];
+for i=1:length(idx)-1
+    f{i}=deblank(str(idx(i)+1:idx(i+1)-1));
+end;