Commit 5ecd1679 authored by Aaron Petkau's avatar Aaron Petkau

Added sample and file created dates

parent d59ea3ee
......@@ -113,7 +113,7 @@ my $report_worksheet = $report_workbook->add_worksheet();
my $header_format = $report_workbook->add_format();
$header_format->set_bold();
$report_worksheet->write_row(0,0,['Project Name','Sample Name','Mean Coverage','Total Bases','Reference Size','Project ID','Sample ID','File Pair ID','File Pair'],$header_format);
$report_worksheet->write_row(0,0,['Project Name','Sample Name','Sample Created Date','Mean Coverage','Total Bases','Reference Size','Project ID','Sample ID','File Pair ID','File Pair Created Date','File Pair'],$header_format);
$report_worksheet->set_column('A:A',30);
$report_worksheet->set_column('B:H',15);
$report_worksheet->set_column('I:I',60);
......@@ -178,8 +178,10 @@ try {
my $sample_updated_date = localtime($sample->{'modifiedDate'}/1000)->strftime('%F %T');
my $file_pair_label = $sequence_file_pair->{'label'};
my $sequence_file_create_date = localtime($sequence_file_pair->{'createdDate'}/1000)->strftime('%F %T');
$report_worksheet->write_row($row,0,[$project_info->{'name'},$sample->{'sampleName'},$coverage,$total_bases,$reference_size,$project_info->{'identifier'},$sample->{'identifier'},$sequence_file_pair->{'identifier'},$file_pair_label]);
$report_worksheet->write_row($row,0,[$project_info->{'name'},$sample->{'sampleName'},$sample_date,$coverage,$total_bases,$reference_size,$project_info->{'identifier'},$sample->{'identifier'},$sequence_file_pair->{'identifier'},$sequence_file_create_date,$file_pair_label]);
$row++;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment