1 GetNg<- function(IsoformName, GeneName){
2 GeneNg = tapply(IsoformName, GeneName, length)
3 IsoformNg = GeneNg[GeneName]
4 names(IsoformNg) = IsoformName
6 GeneNgTrun[GeneNgTrun>3]=3
7 IsoformNgTrun=IsoformNg
8 IsoformNgTrun[IsoformNgTrun>3]=3
9 out=list( GeneNg=GeneNg, GeneNgTrun=GeneNgTrun, IsoformNg=IsoformNg, IsoformNgTrun=IsoformNgTrun)