Skip to content

Commit

Permalink
feat: add "isReverseComplement" columt to csv and tsv outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Jun 24, 2022
1 parent 2605cca commit 18bdc94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages_rs/nextclade/src/io/nextclade_csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ static NEXTCLADE_CSV_HEADERS: &[&str] = &[
"qc.stopCodons.totalStopCodons",
"qc.stopCodons.score",
"qc.stopCodons.status",
"isReverseComplement",
// "failedGenes",
// "warnings",
"errors",
Expand Down Expand Up @@ -169,6 +170,7 @@ impl<W: VecWriter> NextcladeResultsCsvWriter<W> {
// divergence,
qc,
custom_node_attributes,
is_reverse_complement,
..
} = nextclade_outputs;

Expand Down Expand Up @@ -365,6 +367,7 @@ impl<W: VecWriter> NextcladeResultsCsvWriter<W> {
"qc.stopCodons.status",
qc.stop_codons.as_ref().map(|sc| sc.status.to_string()),
)?;
self.add_entry("isReverseComplement", &is_reverse_complement.to_string())?;
// self.add_entry("failedGenes", &format_failed_genes(missing_genes, ARRAY_ITEM_DELIMITER))?;
// self.add_entry("warnings", &format_aa_warnings(translations, ARRAY_ITEM_DELIMITER))?;
self.add_entry("errors", &"")?;
Expand Down

0 comments on commit 18bdc94

Please sign in to comment.