|
|
@@ -215,6 +215,7 @@ impl TryFrom<String> for BlastResult {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+use num_format::{Locale, ToFormattedString};
|
|
|
|
|
|
impl BlastResult {
|
|
|
pub fn swap_query_subject(&self) -> BlastResult {
|
|
|
@@ -232,7 +233,7 @@ impl BlastResult {
|
|
|
|
|
|
pub fn to_bed(&self) -> String {
|
|
|
let strand = if self.s_start <= self.s_end { "+" } else { "-" };
|
|
|
- let info = format!("{}:{}-{}", self.subject_id, self.s_start, self.s_end);
|
|
|
+ let info = format!("{}:{}-{}", self.subject_id, self.s_start.to_formatted_string(&Locale::en), self.s_end.to_formatted_string(&Locale::en));
|
|
|
[
|
|
|
self.query_id.to_string(),
|
|
|
self.q_start.to_string(),
|