-
Notifications
You must be signed in to change notification settings - Fork 1
Gfllm search export #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Gfllm search export #215
Changes from 21 commits
aaf6d9a
53f2fef
ffa4e42
7c0b270
ca3ee09
bbb78e2
c40cef0
3e818d6
a4901b7
0efdf8d
f30bead
0c2d944
96d37fd
29dc710
6332d64
cd6e07d
fa07512
b045965
f00a676
acdba3c
fa64872
77583ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| COPY ( | ||
| SELECT | ||
| json_build_object( | ||
| 'id', todo.id, | ||
| 'urs_taxid', todo.urs_taxid, | ||
| 'should_show_goflow', true | ||
| ) | ||
| FROM search_export_urs todo | ||
| JOIN go_flow_llm_curation_results gfllm | ||
| ON | ||
| todo.urs_taxid = gfllm.urs_taxid | ||
| ORDER by todo.id | ||
| ) TO STDOUT |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -708,6 +708,9 @@ def has_publications(counts): | |
| def has_litsumm(litsumm): | ||
| return str(bool(litsumm)) | ||
|
|
||
| def has_go_flow_llm_annotation(go_flow): | ||
| return str(bool(go_flow)) | ||
|
|
||
|
|
||
| def has_editing_event(editing_events): | ||
| return str(bool(editing_events)) | ||
|
|
@@ -881,6 +884,7 @@ def edit_ref_to_edit(editing_events): | |
| edit_repeat_type, | ||
| keys="editing_events", | ||
| ), | ||
| field("has_go_flow_llm_annotation", has_go_flow_llm_annotation, keys="goflow"), | ||
|
||
| ## Add new fields above this line! Otherwise editing the produced xml is hard. | ||
| tree("so_rna_type", so_rna_type_tree, key="so_rna_type_tree"), | ||
| ], | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| use serde::{ | ||
| Deserialize, | ||
| Serialize, | ||
| }; | ||
| use std::path::Path; | ||
|
|
||
| use anyhow::Result; | ||
| use rnc_core::grouper; | ||
|
|
||
| #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] | ||
| pub struct GoFlowLLMAnnotation { | ||
| pub id: usize, | ||
| urs_taxid: String, | ||
| should_show_goflow: bool, | ||
| } | ||
|
|
||
| impl grouper::HasIndex for GoFlowLLMAnnotation { | ||
| fn index(&self) -> usize { | ||
| self.id | ||
| } | ||
| } | ||
|
|
||
| pub fn group(path: &Path, max: usize, output: &Path) -> Result<()> { | ||
| grouper::group::<GoFlowLLMAnnotation>(grouper::Criteria::AnyNumber, &path, 1, max, &output) | ||
| } | ||
|
|
||
| impl GoFlowLLMAnnotation { | ||
| pub fn should_show_goflow(&self) -> bool { | ||
| self.should_show_goflow | ||
| } | ||
| pub fn urs_taxid(&self) -> &str { | ||
| &self.urs_taxid | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.