Commit 13173596 authored by Aaron Petkau's avatar Aaron Petkau

Switched around column order

parent 0c6ad183
......@@ -34,6 +34,7 @@ Example:
$0 --username user --reference-size 3500000 --project-id 3 --project-id 4 --report my-report.xlsx
Exports coverage values for the projects 3 and 4 to the file "my-report.xlsx", calculating minimum coverage using a reference genome size of 3,500,000 bp.
HELP
my $api = 'default';
......@@ -108,7 +109,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','File Pair','Total Bases','Reference Size','Project ID','Sample ID','File Pair ID'],$header_format);
$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);
my $row = 1;
foreach my $project_id (@project_ids) {
my $project_url = "$api/projects/$project_id";
......@@ -160,7 +161,7 @@ foreach my $project_id (@project_ids) {
my $file_pair_label = $sequence_file_pair->{'label'};
$report_worksheet->write_row($row,0,[$project_info->{'name'},$sample->{'sampleName'},$coverage,$file_pair_label,$total_bases,$reference_size,$project_info->{'identifier'},$sample->{'identifier'},$sequence_file_pair->{'identifier'}]);
$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]);
$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