Mercurial > repos > melissacline > ucsc_cancer_utilities
comparison seg2matrix/CGData/GeneMap.py @ 58:3e5680fecd7a
accept chr1 and 1
author | jingchunzhu |
---|---|
date | Tue, 22 Sep 2015 15:16:19 -0700 |
parents | ab20c0d04f4a |
children |
comparison
equal
deleted
inserted
replaced
57:eef100efcc4c | 58:3e5680fecd7a |
---|---|
22 a given probe description and a gene, examples include 'gene_overlap' | 22 a given probe description and a gene, examples include 'gene_overlap' |
23 and 'gene_simple_meth_overlap' | 23 and 'gene_simple_meth_overlap' |
24 """ | 24 """ |
25 if cmp_func is None: | 25 if cmp_func is None: |
26 cmp_func = self.cmp_func | 26 cmp_func = self.cmp_func |
27 | |
27 if not ref_gene.has_chrom(segment.chrom): | 28 if not ref_gene.has_chrom(segment.chrom): |
28 return [] | 29 return [] |
29 chromList = ref_gene.get_chrom(segment.chrom) | 30 chromList = ref_gene.get_chrom(segment.chrom) |
30 | 31 |
31 out = [] | 32 out = [] |