Repository navigation
feat: integrate the three method families into develop - #1295
Merged
Merged
Conversation
…aso de su herramienta, la medida de un corte (#1177) Registro de decision D59 en estado propuesto y el modulo protea.core.cut_photo (formatos y las tres pasadas de medida: superconjunto, vecinos y GAF), con sus pruebas. Los ayudantes de la tabla de Swiss-Prot pasan a protea.core.swissprot_table y la operacion los reexporta.
…ntratos (#1178) Registro de decision D60 en estado propuesto y su fila en el indice.
Las decisiones abiertas de D60 pasan a decisiones del autor y D59 toma las secuencias de la release emparejada.
…ostgres 18 con RabbitMQ (#1180) Fase 0 del plan de refactorizacion (ADR-D60).
Fase 0 del plan de refactorizacion (ADR-D60).
…a descarga (#1182) Fase 0 del plan de refactorizacion (ADR-D60).
…iega si falta (#1183) Fase 0 del plan de refactorizacion (ADR-D60).
… del sistema (#1184) Fase 0 del plan de refactorizacion (ADR-D60).
… ingiere (#1185) El cluster no se conecta: etapas de fichero con sello e ingesta en la plataforma.
…nrutado y las comprobaciones de POST /jobs (#1186) Paso 1 del plan de refactorizacion (ADR-D60).
…as fuentes y bandas por contenido (#1187) Paso 1 del plan de refactorizacion (ADR-D60).
… tablas de metodo (#1188) Paso 1 del plan de refactorizacion (ADR-D60).
…ana (#1189) Paso 1 del plan de refactorizacion (ADR-D60).
…sion 2) (#1190) Aprobada por el autor: inferencia logica y HAMAP al espejo; traduccion de campo del curador solo en entradas revisadas.
…-D59) (#1191) Pasadas members, rows, sequences y manifest; nombra el superset y los vecinos que lee y rechaza la foto ante evidencia sin clasificar o fuentes que no coinciden.
…fuente (ADR-D59) (#1193) Las pasadas de GOA declaran su fichero (URL y sha256), la de secuencias calcula el del archivo de UniProt, y el manifiesto rechaza una foto con GOA sin declarar o con dos ficheros distintos.
…l GAF (#1194) El constructor anota la cabecera del GAF y el cargador rechaza un grafo mas nuevo que la version declarada o que no sea el mas nuevo de los cargados que no pasan de ella.
#1195) Decidido por el autor (2026-11-16, Leer por with/from): SubCell como GO_REF:0000044, palabra clave como GO_REF:0000043; cualquier otro with/from sigue rechazando la foto. Anotado en ADR-D59, decision 2.
Cada etapa emite un evento cada 100 lotes y otro al terminar, y la de filas mueve el progreso del trabajo, para que el limpiador no tome la carga por muerta.
…a, con su runbook (#1197) deploy/cluster (descarga, medida, construccion y envio de solo codigo) con su prueba de cierre de imports y el runbook cut-photo-on-a-cluster.
…nales (#1198) check_channel_table compara el sha256 de la tabla de canales del manifiesto con el de la plataforma.
…ajos (#1199) builder_files.txt lista los dos scripts de trabajo; el envio acepta deploy/cluster/*.sh ademas de protea/*.py.
…1200) El autor acepta el ADR-D59 (2026-11-16). Enmiendas a las decisiones 3, 4 y 5 para que digan lo que la foto lee hoy; secuencias fuera de Swiss-Prot y grupos taxonomicos quedan abiertos.
…#1201) Tablas evidence_channel_table, evidence_channel y evidence_channel_empty_go_ref, funciones SQL evidence_reference_class y evidence_channel_of, clave foranea desde cut_photo, migracion f0e6749f94cb con la tabla del 2026-11-16 sembrada, y el cargador que la verifica y la escribe una vez (ADR-D59, decision 2).
Con SQLAlchemy 2.0.50 y psycopg un INSERT de varias filas con ON CONFLICT devuelve rowcount -1; las tres inserciones del cargador cuentan ahora las filas que devuelve RETURNING.
… no revisados (#1203) Pasada unreviewed del constructor (TrEMBL leido del archivo completo de la base de conocimiento, con el md5 del flujo comprobado contra el publicado), salida obligatoria en el manifiesto, verificacion y guardado por md5 en el cargador (ADR-D59, decision 5).
…#1204) ADR-D59, decisiones 1 y 3, enmendadas con el autor (A: todas las filas). Constructor partido por pasadas, admision de vecinos con fila de PAINT u ortologia, tabla cut_photo_member (migracion 384568a09847) en lugar de grupos y perfiles.
…ana (205) (#1205) Tipo de foto full o truth_only (sin vecinos ni TrEMBL), cut_photo.kind (migracion a6e1e05d3c8b), trabajo cut_photo_truth.sh, y el envio de codigo lee la lista de la revision que envia.
Los archivos historicos de la base de conocimiento traen TrEMBL solo como uniprot_trembl.dat.gz; lector iter_flat_file_sequences con el mismo md5 que el de FASTA, y filas y TrEMBL en paralelo en el trabajo de construccion.
Via 1 evaluates every scored set twice on 211->227 (decision 8): read raw, LAFA's reading and the headline, and by percentile rank, ADR-D55's reading for comparisons. Both results sit on one window over one prediction set, and the record said nothing of the reading: only the evaluating job's payload did, so the window page showed two rows it could not tell apart. - run_cafa_evaluation records results.reading: the score_reading and the grid's th_step. - The results list names each result's score_reading, from its record, else from the payload of the job that evaluated it (raw when the payload names none, the default and every earlier run's reading). - The window page says under each result how it was read. - Docs: what results.reading holds.
The closure plan's window page shows, per cell, each method against a
baseline with a paired interval. compare_paired_panels computes that
interval and writes no row of its own: its job is its record, and nothing
read those jobs back for a window.
- GET /annotations/evaluation-sets/{id}/paired-comparisons reads, from the
comparison jobs, the latest whole-panel comparison of each pair of the
window's results: the declared method axis, the operating point and the
resampling, and per panel the difference of f_micro_w, its interval and
the interval's method, the verdict and the paired population. A
comparison restricted to a stratum is left out.
- The window page gains a section that shows them against a baseline the
reader picks: the difference and its interval per cell, coloured by the
verdict, with a mark where either side's headline peaks at an edge of
the threshold grid (no verdict is read from an edge, ADR-D55). Each row
links the comparison's job.
- Each result in the list names its arm (the model of its set, the
scoring it read and its method), and the results table shows it.
- Labels in five locales; docs and openapi.
…of its own (#1270) The own-annotations method of a LAFA window (#1266) is another method, with another id, but kept the code of the reconciled one, so both derive the short name own-annotations-nonexp-211 at cut 211. The store keeps short names unique, and the first run on 211->227 failed there (job 90d6802c: duplicate key value violates "uq_method_short_name"). method_short_name already says why: one code at one cut is one method, so a variant at the same cut needs a code of its own. The LAFA variant is own-annotations-nonexp-lafa; every other window keeps its method as it was. The test now pins both short names.
Via 1 evaluates scored sets of about 1.66M candidate pairs over the 37,658 targets of 211->227, three times the earlier reference set. The first one was OOM-killed at the worker's 8G in the PK setting. Run at 24G, six such evaluations (and one of a 2.7M-row method set) peaked at 9.1 GB. 16G leaves room for the training windows, up to 43,992 targets, and stays inside the 50G slice beside the batch worker, which the batch driver restarts after each kNN. The test that pins the dev workers' memory now expects 16G for the evaluations queue.
On a set of about two million candidates the page's three reads take up to 20 s (they count the set's rows on every visit). Meanwhile the page printed "0 proteins" and, since #1265, "No scored set has been made from it yet" about a set that had four: an empty state shown before the answer that would fill it. Until the set's record arrives the page now says it is loading and that a large set's counts take up to 20 s; the protein count reads "Counting proteins..." until the first page answers; the GO distribution says the same while it loads. The counts themselves are the next change: computed once when a set is written, since a set never changes after.
cafaeval writes one best table per measure, each at that measure's own maximum. The strata pool micro F, and the cell they decompose publishes f_micro_w, yet both stratify_evaluation and the per-protein route read evaluation_best_f.tsv: the maximum of the protein-centric F, which sits at another threshold. On 211->227, ESM-2 650M with embedding_only read by percentile, NK molecular function: that table says tau 0.31, the cell's f_micro_w peaks at 0.57, and its strata summed to 0.390 inside a cell that publishes 0.4405. Every stratum was a number at an operating point no published figure used, and the route's own claim that a row cannot disagree with its cell did not hold. A stratum of a variant is now sliced at the maximum of that variant's micro F (BEST_TABLE_FOR_VARIANT: evaluation_best_f_micro_w.tsv for weighted, evaluation_best_f_micro.tsv for unweighted). The operation takes the table from its payload's variant; the route asks for it once the grid's footer has named the variant, and refuses with a 409 when the store lacks it instead of reading another measure's threshold. Checked on two results of the window (an ESM-2 650M arm and the own annotations arm, read by percentile): summing tp, pred and n_gt over the sliced proteins reproduces the published f_micro_w in all 18 cells, the largest gap 0.00005 (the published figure's rounding). The tests' grid now carries the protein-centric table as a decoy at another threshold, so a slice cut there fails three of them; a stratification and a page already stored are stale until they are recomputed.
load_cut_photo writes each annotation set's description since #1213 (2026-11-17). The sets it loaded before that carry none: on dev, the six GOA cuts 160, 177, 194, 205, 211 and 227, loaded on 2026-11-16, which every window and photo of the replication reads. Migration e0399c98f515 writes them the words the loader writes now, built from the row and its ontology snapshot, and touches nothing else: a row that already says something, or that another loader made, keeps what it has. The words live in one function, photo_set_description, which the loader calls and the migration's test holds the SQL to. The downgrade leaves them: they were missing, not wrong. Checked on dev inside a transaction rolled back at the end: the statement fills exactly the six sets, each with the loader's text, and the store is as it was afterwards.
run_count_map built every donor's state at t0 with cut_state, the reconciled path, which refuses a window of LAFA's frame: the first run on 211->227 under that frame failed with "unknown truth_profile 'own_graph' for the reconciled path". The state at a window's start is now read as the window's own frame states it (_cut_state.window_state). A window of LAFA's frame has no pivot: t0's experimental rows are named under t0's own ontology, each NOT term of t0 and everything under it is taken out of the direct terms, and what is left is closed upwards (lafa_frame.end_state: the steps of end_truth, which it leaves untouched, plus what each protein is denied). Only t0's NOT rows count: the window's truth unions the NOT rows of both ends, and one written at t1 is information from after the cut. Every other window keeps the reconciled state, its method and its id. The same map over a LAFA window is a variant at the same cut, so it has a code of its own, count-map-<units>-<lexicon>-lafa, which names its method and its weights alike (the store keeps method short names unique, #1270). Checked read-only on 211->227 (window ebf6f6ab): with the NOT rows of both ends, the state trimmed to the terms of interest equals the window's known terms for all 83,252 proteins it holds; with t0's NOT rows only, which is what the count map reads, 83,207 are identical and the 45 that differ all have a NOT row at 227, which would take 327 terms out of their state at t0. Building the state takes 25 s.
…ofiles (#1276) A stratum kept its ratios alone (precision, recall, F), and ratios do not add: no reader could pool the crossed strata into a profile on one axis, which is what the window panel shows first (identity with the closest measured member, then length). On NK molecular function the crossing leaves almost half its strata under the population floor, while every band of the homology profile holds at least 61 proteins. strata.parquet now carries tp, pred and n_gt beside the ratios, under the same variant: the masses at the cell's micro-F maximum, so the cell, a one-axis profile or any coarser crossing follow by addition. The router counts them as measures, not axes. stratify_evaluation also pools, per setting and aspect, every placed protein, each homology band and each length band, as [proteins, tp, pred, n_gt, f_micro], straight from the per-protein rows and with no floor: the count travels beside the number. It keeps them on the result they describe, under results["strata"] with the job that pooled them, as results["reading"] does, so the panel reads a whole window in one query instead of a store round trip per result.
GET /annotations/evaluation-sets/{id}/summary returns, for every result
of the window, oldest first and in one query: its arm (model, scoring,
method, how many neighbours it read, whether a target's own sequence
could vote, how its scores were read), its nine cells (f_micro_w, the
threshold it peaks at, whether that threshold is the grid's edge, its
targets) and the strata profiles the stratification left on it.
The window page lists results by downloading each one's whole row,
artefact keys and digests included, to show nine numbers a row. On
211->227 in dev, with 88 results: 1,083 KB from that listing, 93 KB from
this summary (1.1 KB a result), read in 127 ms. At the 420 results of a
batch that is about 450 KB instead of 5 MB, profiles included.
The arm's depth is the scored set's cut (max_k_position) when it has one,
else what its candidates retrieved; a method's set has no neighbours, so
no depth. The reading falls back on the job's payload for results stored
before results recorded it, and on raw before readings existed.
) A window's page listed one row per result: some thirty today, about 420 when the batch ends, with no depth shown, no grouping, no filter and no best marked. The panel above the list reads the window summary (#1277) and shows it five ways, each answering one question: - Summary: which arm wins each cell and how far from the reference (own annotations by default), the chosen cell's column first, the edge-of-grid maxima marked. A cell opens its strata. - Depth: F against the number of neighbours read, one line per scoring or per model, on one cell or the nine; and what the threshold grid costs, the same arm read raw and by percentile rank. - Trajectory: the best result so far, on the whole cell or on one band of identity, or the five bands side by side, with when it improved. - Strata: the profile by identity or length (#1276), the chosen band's ranking with its proteins and the winner's set, and who wins each band in the nine cells, neighbours against methods. - Detail: every result shown, its factors as columns, sortable. Above the views, one bar sets the cell, the reading, the reference, the filters (model, scoring, depth), whether superseded arms show, and up to three arms in focus, coloured alike in every view. All of it lives in the address (lib/panelState.ts): a view is shared by its link, and the back button undoes the last navigation, which a filter does not count as. The rules are pure functions (lib/windowPanel.ts), tested apart from the drawings; the texts are in the five catalogues.
… the counts (#1279) A set does not change after it is written, yet its page counted it on every visit: the detail grouped its rows by protein to return 37,658 per-protein counts nobody read, the GO distribution grouped them by term, and the protein list grouped them again for each page. On the 1.82 million pairs of a window's candidate set that was 21 s a visit, measured from the page. Migration a5e954c5bab4 adds prediction_set.summary (rows, proteins, totals per aspect, the 50 most frequent terms) and prediction_set_protein (each protein's terms and closest distance). A set is counted in one scan grouped two ways at once (GROUPING SETS), on its first read or by the new summarize_prediction_sets job, which counts the sets that exist one per transaction. The detail, the GO distribution and the protein list read from there. The detail returns protein_count, and per_protein_counts only when ?per_protein=true asks for it. A scored set keeps its pairs as arrays in prediction_score; the count reads them beside go_prediction's rows, so a scored set's page now lists its proteins and terms, which the old groupings over go_prediction alone never did. Checked read-only on that set in dev: one scan takes 19.1 s and gives 37,658 proteins, 28,286 terms and 1,821,687 pairs, equal to today's reads in rows, totals per aspect and the top 50 counts. After it a visit reads two small rows.
The benchmark page was the October campaign's matrix (embedding x stage x k): it knew no windows, no readings and no depths, and in dev it hung on "Loading benchmark…" although both its calls answered in under 0.2 s. Each window's panel (#1278) now answers what it asked, per window, and the author decided on 2026-11-21 to retire it. - The page goes, with what only it used: its curation, CSV, helper and view modules, its stratum comparison component, its empty-state test and the two API client calls nothing else made. lib/stratumCompare stays, since the stratum page reads it, and so do the heatmap and the row type the farm cost page uses. - /instrument/benchmark redirects to the list of windows, bare and under each locale; every link to it (the rail, the instrument index, the command palette, the home showcase, the annotate page and form, the functional annotation page, the sitemap) points there. - The list of windows shows the live ones first, each with its description and a link to its panel, and folds the superseded ones, each linked to the window that replaces it. - The five catalogues drop the benchmark namespace and nav entry, and say what the results now are. The API's /benchmark routes stay for a backend change of their own. The hub flow now looks for the evaluation link, and checks that the retired page lands on the list of windows.
On dev the panel's reference row read "own-annotations-nonexp-lafa-211"
and ran into the cell column. A method's short name is an identifier
(code, variant, cut); within one window the cut and the frame are the
window's, so the panel now shows what the method is: "own annotations",
"count map: themes", "count map: families (strict)", and otherwise the
name without its cut and frame. The depth chart's last tick ("k=30") no
longer runs off its right edge.
…#1283) Every paired comparison of via 1's arms on 211->227 was refused by the method seal, and every comparison involving a native method would have been, on three counts: - A retrieval handed a list of accessions (query_accessions), which is how a window's arms are asked about its targets, recorded neither a query set nor the list, so the seal read its population as undeclared (MUST_BE_RECORDED). The list stayed in the job's payload. - A native method's set (own annotations, count maps) recorded no code or library revisions. - Six keys native methods write in meta were classified by the seal as neither identity nor execution, so it refused them by name. A set handed a list now records its size and the sha256 of its sorted, distinct accessions, one per line, in meta.query_population (protea.core.query_population): the bytes of a plain sorted list file, so a list kept on disk can be checked against a set with sha256sum. The seal reads it as the population declared, as it reads query_set_id, and two different lists are a difference a comparison must name. The retrieval's receipt writes it, a scored set inherits it with the rest of its candidates' record, and a native method records its window's targets. A native method's set records code_revision and dependency_revisions as a retrieval's receipt does, written after the method's own keys so that none can stand in for them. In the seal, evaluation_set_id is identity (the window decides the targets, the cut's state and the frame's rules, its NOT codes among them, which no other field names whole); algorithm and method are labels of method_id; targets_with_a_term, targets_without_a_sequence and a count map's aspects are outcomes of the method over its inputs. Migration 7c5e1f0a9d42 writes the population of the retrievals run before this, from the list their job was handed, and gives each scored set its candidates'. It computes the digest in SQL with the accessions ordered COLLATE "C"; a test holds it to population_of on a list whose order an en_US collation would change. The downgrade removes the key, which the seal before this revision would refuse. Native method sets written before this keep no revisions. Their jobs recorded none, so there is nothing in the store to recover them from, and they stay refused until they are run again.
…mmary (#1282) The prediction sets listing grouped every row of go_prediction, every set's and not only the 100 it lists, to print one count per set. On dev with 110 sets it took 7.7 s, and the list of windows waited for it with "Loading…". A set counted once (prediction_set.summary, #1279) now gives its count from there, and only the listed sets not yet counted are counted, by one GROUP BY restricted to them (with a scored set's arrays, as before).
…ettled it (#1284) The window panel's trajectory lists each new best of a cell, or of one band of identity, with the best before it, and its paired-comparison column said "pending" on every row. Each step now says whether its pair was compared and how it came out. The cell. The panel reads the window's paired comparisons (`GET /annotations/evaluation-sets/{id}/paired-comparisons`) beside its summary. Each step shows, on the cell on show, the new best minus the one before it (the reference for a cell's first step), with its interval and verdict. Its tooltip is the comparison's own account of the panel (`panelNote`): interval method, paired proteins, effect of interest, smallest detectable effect, resamples, operating point and the method fields the pair varies. A comparison run the other way round is read turned over: its difference and interval negated and its verdict swapped (`stepComparison`, tested). A null, read. The via 1 comparisons declare an effect of interest (0.01 of F, the author's word). An interval that covers zero is then sameness within it (`null_with_power`) or too little data to tell (`underpowered`). The listing now keeps both numbers per panel, and a step says which of the two it is. A band. A whole-cell comparison does not test a band's claim. The listing takes an optional stratum (`axis` and `band` together, validated by the payload's own `validate_stratum`) and returns the comparisons restricted to exactly that stratum; with none it returns the whole-panel ones, as before. Each comparison now says its stratum. Half a stratum, or one outside the closed vocabularies, is a 422. The panel reads a band's comparisons when the trajectory shows that band, once per band. A pair never compared says so, and comparisons that could not be read say that rather than reading as none.
… it (#1285) The benchmark matrix was the only surface that said whether an arm may be read on a window at all: whether the release it was fitted at falls after the window's t0, by the rule the dispatch guard refuses on (leakage_guard.training_cut_verdict). That page went with #1280, and the window panel that replaced it showed every arm alike. The window summary now gives each arm its verdict and the release behind it, and the window its t0 and t1. A fitted encoder is read by the cut its configuration declares, as the badge did. A native method is read by the release its instance lives at, since it read the annotations of that release: the own annotations at 211 on 211->227 are clean, and at 227 they would have read the answers. A pretrained backbone is not_fitted. The verdict is a mark and not a filter: the panel's detail table gives each arm its state, and a note above the tabs counts the arms on show that may not be read. The release parser the badge kept (digits only, so "2026_01" is not a release) moves to the guard as release_ordinal, so the badge and the summary read a release one way.
The benchmark page gave way to each window's panel (#1280), but its API stayed: GET /benchmark/embeddings and /benchmark/matrix, their grid, the configuration file and loader that drove them, a dependency, and two cache prewarms the app ran at every start to keep a matrix nobody read warm in Postgres. The one thing of value the matrix carried, whether an arm may be read on a window, is on the window summary since #1285, for native methods too. Removed: the router and its grid, protea/config/benchmark.yaml with its loader and dependency, the prewarms and the route tag; in the web, the heatmap and metric selector no page imported any more and the matrix's row types. The showcase links its evaluation count to the windows list, the deploy smoke check reads the prediction sets listing instead of the two routes, and the reference documentation drops their sections. The tests of the matrix and its grid go with them; the two of its leak badge that the summary's own tests did not already cover (one rule with the dispatch guard, no verdict for an arm naming no producer) move there. The records of decisions that cite /benchmark keep the name they used.
…rote it (#1287) #1283 let a retrieval and a native method's set say whom they were asked about and which code and libraries wrote them, so the method seal can compare them. An ingested set (ingest_method_predictions) said neither, and the seal refused it by name for a third reason: its source key was classified neither as identity nor as execution. The ranked own annotations reach the platform this way and could not be compared with anything. An ingested set now records, as any set does, the code and libraries that wrote its rows (code_revision, dependency_revisions) and the population it was asked about: a query set, or, new in the payload, the list of accessions (query_accessions, at most one of the two), recorded as its count and digest. Two keys name the method: the producer's own record (name, commit, shas, models) moves from meta "method", which a native set uses for its short name and the seal reads as a label, to meta "producer", which the seal reads as identity; and the digest of the file it published gets a key of its own, predictions_sha256, also identity. "source" keeps where the file was read from and what its scan counted, classified as execution: a location and counts that follow from the bytes. Migration 3b9d4e2a7f15 moves the record of the sets ingested before and copies the digest they kept in source. Their revisions were never recorded, so the seal still refuses them until they are ingested again; the downgrade moves the record back.
…ll its readers (#1288) A prediction set is counted on its first read and the counts are kept (#1279). Two cases broke that. A set's page asks for the detail, the proteins and the terms at once, and on a set nobody had opened each of the three counted it in parallel. On the re-run count map of 211->227 (11.3 million rows, the store busy with a retrieval) they outlasted the web's proxy, which answered 500 while the API went on and kept the counts. A lock per set (pg_advisory_xact_lock) now makes the later readers wait for the first count, read the set again under the lock, and return what it kept. And nothing stopped a page opened while its set was still being written from freezing a partial count for good. A set is kept now only once the job that writes it has ended (succeeded, failed or cancelled: a set holds every row it will once its job stops) or when it names no job. While the job runs the set is counted live and returned with provisional set, nothing kept: its proteins are paged straight from its pairs, the detail says counts_provisional, and its page says the set is still being written. The sweep (summarize_prediction_sets) leaves such a set for the next sweep and says so. The set page's loading note said the counts are computed on every visit, which #1279 ended; it says now that a set is counted on its first visit.
) An ingested set (ingest_method_predictions) has no method row, and its configuration carries the method's name as its model name, so the window summary read it as a retrieval: the panel showed the ranked own annotations and the own annotations with a model's nearest neighbour added as "candidates" at a depth of hundreds, the term count of the busiest protein, which is all its limit per entry says. When a set has no method row, the summary now names the arm by its producer's record, so it is a method, with no neighbours and no depth. The panel named every method whose name starts with own-annotations "own annotations" and took the first of them as its default reference. A method built on the own annotations' rows has its own name now, and only the platform's own-annotations method is the reference.
…n and never used on a cut (#1290) A protein page shows UniProt functional metadata from protein_uniprot_metadata, which nothing in dev had filled, and the operation that fills it (fetch_uniprot_metadata) can also backfill the protein row's organism and gene, which feature code reads. Filling them from today's entry would hand that code knowledge from after its cut. resolve_protein_metadata fetches each canonical protein's current entry through the protea-sources plugin's fetch_accessions, which now names the UniProt release that served each batch (protea-sources #42, pinned here). Every row is stamped with that release and its date, and an answer that names no release is refused. It writes protein_uniprot_metadata only, never the protein row; its population is a query (no row, or a row with no release), and accessions UniProt no longer serves are counted as absent. Migration 5d2e8c1b4a73 adds the release, its date and the entry's descriptive fields (entry name, reviewed, protein and gene names, organism and its identifier, length). The protein route returns them, and the page shows the entry under a card that names its release and says it is today's knowledge: shown, never used to predict or evaluate on an earlier cut. tests/test_current_metadata_stays_out_of_experiments.py pins the boundary: only the model, the two fetch operations and the protein route may name the table. A protein's organism at a cut comes from that cut's photo (cut_photo_member.taxon_id).
…equest (#1291) The first smoke run of resolve_protein_metadata failed on its first batch with 414 Request-URI Too Long. The batch was 1,000 ten-character TrEMBL accessions with 26 fields, an 11,348-character request target, and UniProt answers 8,191 characters and refuses 8,202 (measured against the service). The count of 1,000 is only one of the accessions endpoint's two limits. protea-sources #43 adds accession_batches, which cuts by both limits, and both operations that batch accessions now use it with the fields their own request asks for, since the fields are part of the target: resolve_protein_metadata, and the sequence and date passes of resolve_protein_sequences, which had the same latent failure on a run of TrEMBL accessions. The plugin is pinned to 956c6e66. Tests pin that each pass sends exactly the plugin's batches for its own fields, and that 1,000 or 1,500 ten-character accessions no longer go as one or two requests.
…ry can go by accession (#1292) Since protea-contracts #54 a predict payload can name how the query leaves its own neighbourhood: by sequence (the query and its twins, other proteins with the identical sequence) or by accession (the query alone, its twins kept as donors). protea-method applies either rule since its #67, but PROTEA only knew the flag, which means by sequence. The thesis closure frame excludes the protein itself and nothing else: an identical sequence carried by another protein is a legitimate donor, and retrieval should be the one to bring it. Both pre-searches, per aspect and unified, take their margin and their drop from protea-method's self_exclusion_margin and drop_self, through one view of the payload (predict_go_terms._self_exclusion), so they cannot disagree with the method's own search. The whole bank's sequence map is read only under the by-sequence rule, and a by-sequence payload without it is refused rather than silently dropping nothing. The coordinator forwards the rule to every batch and the method's configuration carries it. The receipt records whether the query was excluded, whichever field asked for it, and the rule when the payload named it. The rule is method identity in the seal, the arm identity names "self-excluded-by-accession", and the window summary and the panel tell an accession arm from a sequence arm of the same model. The flag alone behaves and records exactly as before. protea-contracts f7008c90 (#54) names the rule. Every sibling that pins the contract moves with it, because Poetry cannot resolve two revisions of one git dependency: protea-method 69ea8af4 (#70), protea-sources f28af5b0 (#44), protea-runners c70335a7 (#32), protea-backends 1d0e5bc4 (#52) and protea-reranker-lab b296a3a7 (#125). Each moved only by its contract pin and one CI change, except protea-method, whose optional backends pin also moved to the revision PROTEA already pins (backends #47).
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (83.97%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #1295 +/- ##
===========================================
- Coverage 87.85% 85.69% -2.17%
===========================================
Files 306 471 +165
Lines 23414 37374 +13960
===========================================
+ Hits 20570 32026 +11456
- Misses 2844 5348 +2504
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integra en
developlas tres familias de metodos. Va en borrador a proposito, y abajo digo por que y como debe aterrizar.Que es
114 commits, 615 ficheros, +57.788 y -21.711. La rama va 114 por delante de
developy cero por detras, asi que es un avance limpio sin divergencia.Los 114 entraron uno a uno por pull request contra esta misma rama y todos pasaron CI en su momento. Lo que nunca se ha construido es la punta: no existe ni una ejecucion de CI sobre
integration/three-familiescomo tal, porque la suite se dispara en los pull request y en los push adevelopymain, y esta rama no es ninguno de los dos. Dos peticiones verdes por separado pueden romper el tronco entre ellas, que es exactamente lo que el comentario deintegration.ymlexplica. Este PR existe para cerrar ese hueco antes de declarar la revision en produccion.Por que en borrador
auto-merge.ymlse dispara en los pull request que apuntan adevelopy hacegh pr merge --auto --squash: al primer verde aplastaria los 114 commits en uno solo. Su guarda esdraft == false, asi que en borrador no se activa. La suite, el guardia de coautoria y la doc no filtran borradores, asi que CI si corre.Como debe aterrizar: avance rapido, nunca aplastado.
developes ancestro estricto de esta punta, asi que se puede avanzar sin perder un solo commit. Un squash aqui destruiria 114 mensajes que son el registro de la campana.Que tiene que probar CI
create_table, 17 columnas, 15 indices, 12executede los que solo uno modifica datos (un UPDATE sobreevaluation_set, 87 filas), y el unico toque asequence_embeddinges una columna nullable sin default. Ninguna reescribe una tabla grande.Despues, y no antes
La revision se declara en
agent-farmy solo entonces se mueve el arbol servido. El despliegue reinstala los seis hermanos y los verifica importando cada uno y leyendo su revision, no leyendo la salida de pip, que devuelve cero sin instalar cuando la version del pin coincide y dejaria produccion sellando una revision que nadie tiene cargada.