Skip to content

Commit

Permalink
Created task to print correlations by gene data
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbarton committed Oct 11, 2008
1 parent 6b16241 commit 94e95c8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions analysis/004_compare_mutation_and_cost/analysis.rake
Expand Up @@ -10,4 +10,19 @@ namespace '004' do
Alignment.each {|align| CorrelationByGene.estimate_for(align)}
end

desc 'Print gene correlation data'
task :print_gene_correlation_data do
target = File.join(File.dirname(__FILE__),'r','data','correlation_by_gene.csv')
FasterCSV.open(target,'w') do |csv|
CorrelationByGene.each do |cor|
csv << [
cor.alignment.gene.name,
cor.condition.name,
cor.cost_type.name,
cor.r
]
end
end
end

end

0 comments on commit 94e95c8

Please sign in to comment.