Assignment 3/assignment3.rb
# 3. creating a new Bio::Feature object (used in method above)
3. creating a new Bio::Feature object (used in method above)
3 . creating a new Bio :: Feature object ( used in method above )
def create_features(position,strand) 
  ft=Bio::Feature.new('myrepeat',position) 
  ft.append(Bio::Feature::Qualifier.new('repeat_region','CTTCTT'))
  ft.append(Bio::Feature::Qualifier.new('note', 'found by repeatfinder 2.0'))
  if strand == 1
    ft.append(Bio::Feature::Qualifier.new('strand', '+'))
  elsif strand == -1
    ft.append(Bio::Feature::Qualifier.new('strand', '-'))
  end
end
def create_features ( position , strand ) ft = Bio :: Feature . new ( 'myrepeat' , position ) ft . append ( Bio :: Feature :: Qualifier . new ( 'repeat_region' , 'CTTCTT' ) ) ft . append ( Bio :: Feature :: Qualifier . new ( 'note' , 'found by repeatfinder 2.0' ) ) if strand == 1 ft . append ( Bio :: Feature :: Qualifier . new ( 'strand' , '+' ) ) elsif strand == - 1 ft . append ( Bio :: Feature :: Qualifier . new ( 'strand' , '-' ) ) end end
3. creating a new Bio::Feature object (used in method above)
3 . creating a new Bio :: Feature object ( used in method above )
position
<not_specific>
strand
<not_specific>