Created
April 22, 2013 19:00
-
-
Save danmaclean/5437571 to your computer and use it in GitHub Desktop.
finding a reference and creating the feature in experiments_controller.rb (lines 76 - 93)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ref = Reference.find(:first, :conditions => ["name = ? AND genome_id = ?", "#{ record.seqname }", "#{@experiment.genome_id}"]) | |
feature = Feature.new( | |
:group => "#{attribute}", | |
:feature => "#{record.feature}", | |
:source => "#{record.source}", | |
:start => "#{record.start}", | |
:end => "#{record.end}", | |
:strand => "#{record.strand}", | |
:phase => "#{record.frame}", | |
:seqid => "#{record.seqname}", | |
:score => "#{record.score}", | |
#:experiment_id => "#{exp.id}", | |
:gff_id => "#{gff_id}", | |
:sequence => "#{seq}", | |
:quality => "#{qual}", | |
:reference_id => "#{ref.id}" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment