annotate rDiff/src/tools/compute_testing_region.m @ 0:0f80a5141704

version 0.3 uploaded
author vipints
date Thu, 14 Feb 2013 23:38:36 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
1 function [genes]=compute_testing_region(CFG,genes)
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
2
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
3 %Iterate over gene
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
4
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
5 for i=1:size(genes,2)
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
6 [SPLICINGEVENTS,SEQUENCE,EXONSEQUENCE]=splicingsequence(genes(i));
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
7 genes(i).splicingevents=SPLICINGEVENTS;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
8 genes(i).sequence=SEQUENCE;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
9 genes(i).exonsequence=EXONSEQUENCE;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
10
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
11 [UNIQUE_NEW_EXONS,GRAPHNODES,ORDER_OF_GRAPHNODE,EIRS_IN_SEQ]=transform_single_end_reads(genes(i),CFG.sequenced_length-CFG.bases_to_clip*2);
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
12 genes(i).unique_new_exons=UNIQUE_NEW_EXONS;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
13 genes(i).graphnodes=GRAPHNODES;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
14 genes(i).order_of_graphnodes=ORDER_OF_GRAPHNODE;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
15 genes(i).eirs_in_seq=EIRS_IN_SEQ;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
16
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
17 end