Skip to content

Commit

Permalink
Merge pull request #1472 from nextstrain/feat/output-selection-index-…
Browse files Browse the repository at this point in the history
…seq-name
  • Loading branch information
ivan-aksamentov authored Jun 4, 2024
2 parents 8d2cab6 + c81936f commit feca45d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nextclade/src/io/nextclade_csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ lazy_static! {
// Default configuration and layout of CSV column categories
pub static ref CSV_COLUMN_CONFIG_MAP_DEFAULT: CsvColumnConfigMap = indexmap! {
CsvColumnCategory::General => indexmap! {
o!("index") => true,
o!("seqName") => true,
o!("clade") => true,
o!("qc.overallScore") => true,
o!("qc.overallStatus") => true,
Expand Down Expand Up @@ -228,8 +230,6 @@ fn prepare_headers(
) -> Vec<String> {
// Get names of enabled columns
let mut headers = {
let mandatory_headers = vec!["index", "seqName"].into_iter();

let category_headers = column_config
.categories
.iter()
Expand All @@ -239,7 +239,7 @@ fn prepare_headers(

let individual_headers = column_config.individual.iter().map(String::as_str);

chain![mandatory_headers, category_headers, individual_headers]
chain![category_headers, individual_headers]
.unique()
.map(String::from)
.collect_vec()
Expand Down

0 comments on commit feca45d

Please sign in to comment.