Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/src/controllers/mpa/pept2data.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::collections::HashSet;
use axum::{extract::State, Json};
use itertools::Itertools;
use serde::{Deserialize, Serialize};
use index::{ProteinInfo, SearchResult};
use crate::{
Expand Down Expand Up @@ -122,7 +123,7 @@ async fn handler(
}
}

let taxa: Vec<u32> = filtered_proteins.iter().map(|protein| protein.taxon).collect();
let taxa: Vec<u32> = filtered_proteins.iter().map(|protein| protein.taxon).unique().collect();

let lca = calculate_lca(
taxa.clone(),
Expand Down