Module: Bio::Affy::Find
- Defined in:
- lib/bio/affy.rb
Class Method Summary collapse
Class Method Details
.probeset_by_feature_name(cdf, name) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/bio/affy.rb', line 7 def Find.probeset_by_feature_name cdf, name num_probesets = Bio::Affy::Ext.cdf_num_probesets(cdf) (0..num_probesets-1).each do | i | probeset_ptr = Bio::Affy::Ext.cdf_probeset_info(cdf,i) probeset = Bio::Affy::CDFProbeSet.new(probeset_ptr) return i if probeset.name == name end nil end |