From e99928e4243c79df022ca6b1b9e3401947c235ff Mon Sep 17 00:00:00 2001 From: James McLaughlin Date: Wed, 14 Aug 2024 13:06:00 +0100 Subject: [PATCH] fix numeric ids being chosen for relations --- 02_assign_ids/grebi_identifiers2groups/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/02_assign_ids/grebi_identifiers2groups/src/main.rs b/02_assign_ids/grebi_identifiers2groups/src/main.rs index 43748c8..4e2ab02 100644 --- a/02_assign_ids/grebi_identifiers2groups/src/main.rs +++ b/02_assign_ids/grebi_identifiers2groups/src/main.rs @@ -141,8 +141,6 @@ fn main() { for entity in sorted_ids { if is_first_value { - writer.write_all(entity.as_slice()).unwrap(); - writer.write_all("\t".as_bytes()).unwrap(); is_first_value = false; } else { writer.write_all("\t".as_bytes()).unwrap(); @@ -183,7 +181,7 @@ fn id_score(id:&[u8]) -> i32 { for c in id { if c.is_ascii_alphabetic() { - score = score + 1; + score = score - 1; } }