
| Category | Value (records) |
|---|---|
| Downloaded | 100 |
| Valid dates | 94 |
| Adequate location | 80 |
| De-duplicated | 76 |
Apply synthetic removals of 6, 14, and 4 sequentially to 100 records; then 76 remain.
A research note says that a map of spring bee records was compiled from a GBIF download. The citation resolves. The original download landing page lists the contributing datasets and the search used to obtain them. Yet when a colleague tries to reproduce the map, their table contains several hundred more records. Both people can be using the same source without making the same analytical decisions. One may have dropped observations with uncertain dates, assigned records to counties by a local map, and kept only one record in several groups. The other may have excluded all flagged records and then kept the first row in each group. The citation points to the beginning of the work. It does not say which work happened afterward.
This is a specific problem about identifying and replaying an extract, not a general argument for keeping every intermediate spreadsheet forever. A reproducible extract makes it possible to tell which rows entered a published count, what the rules were at the time, and what changes if a reader proposes another rule. A credible result also gives contributors proper credit even when their records are pooled or reduced. Citation and reproducibility are complementary obligations. Neither is a substitute for the other, and neither establishes that a chosen filter is equally suitable for every research question.
The worked chart uses a fictional table of 100 downloaded records, followed by locally defined stages that leave 94, 80, and 76 records. Its purpose is to make conditional counts, rule order, and denominators explicit. Nothing in the chart is an observed rate of issues in GBIF, an estimate of how many bees were present, or a recommended acceptance threshold. Every decision about actual records must match the question, the fields, and the degree of uncertainty the evidence can support.
Record where the provider stops and your analysis begins
Start with the citation for the actual input, not a link to a search page that happens to resemble the search. GBIF's citation guidelines explain that an occurrence download has a landing page recording its citation, participating datasets, and the provider-side search specification. That provenance is valuable: it distinguishes a particular source selection from a later run with the same-looking inputs against newer holdings. Keep the provider's download DOI exactly as supplied, alongside the retrieved archive and a receipt for the retrieval date, where your storage and reuse arrangements permit.
A file can also arrive through tools or queries that do not produce one download DOI. Do not invent a DOI or cite the DOI of a vaguely related download for convenience. Establish the actual retrieval route: for example, your team may have queried a named monthly snapshot, or obtained rows through a search interface or client wrapping a service. The applicable attribution and capture work depends on that route. GBIF's guidance discusses individual dataset attribution and citable derived datasets for cases such as significant filtering, combining inputs, or some non-download access routes. The provenance record should say which approach you adopted. A local identifier for an extract is useful but is not a registered DOI.
Put a firm boundary around local processing. An original archive could have already excluded records outside a search polygon, but a local script might apply a second polygon. The two may use different geographic inputs and serve different purposes. Similarly, a provider may have interpreted names through a taxonomy, and an analyst may then apply a narrower set of taxa or maintain a local crosswalk. Saying only that records were filtered "to the study area and species list" does not tell a reviewer which decision was made in which system. Record the supplier selection and the local transformation in separate entries. If provider defaults or predicate fields are material, preserve the exact request or its recorded equivalent, not a retrospective approximation.
Keep a checksum of the actual bytes you used, with its algorithm, to distinguish two files with the same name or a corrupted copy. This does not replace attribution and does not validate their content. It lets the person replaying the methods determine whether they started with the same archive. A landing-page identifier and a checksum answer different questions. One points to the citable provider artifact; the other tests identity of a local object. If distributed files include sensitive coordinates or material you cannot freely republish, place the original in approved restricted storage, preserve the identifiers and relevant access terms, and make it clear what a public reviewer can and cannot download. Reproducibility plans should not create a new exposure of sensitive records merely to make a public appendix more convenient.
Give each stage an exact contract
A useful filter ledger is a series of contracts. Each stage defines its input, output, unit, decision rule, parameters, and evidence. Write a short purpose beside it. “Keep dated records” is not a contract. “On the frozen input, parse a complete calendar date from the published event-date field using the specified parser; accept only exact day precision; reject malformed, missing, and interval-only dates from this daily analysis” is much closer. Make similar decisions about whether you'll use an interpreted date, a preserved verbatim value, or separately reported year and month. A parser that silently assumes the first day of a month produces a different extract from a parser that keeps month precision and defers those rows to a monthly analysis.
Record literal values where they matter. A local rule might include a coordinate uncertainty at or below 2,000 metres rather than strictly below; both boundaries are defensible as examples, but the exact value affects a row reported as exactly 2,000. Distinguish empty, invalid, and absent fields. A zero stored in a field may reflect a particular provider interpretation or an issue flag. Do not make it stand in for a missing value. In a spatial filter, include a named coordinate reference or transformation as appropriate, the polygon used, a consistent geometry and boundary rule, and whether location is judged using a reported point or a suitable representation of uncertainty. A village centroid and a GPS waypoint may share coordinate digits but have different uncertainty. The ledger should not make them equivalent just because a map draw appears crisp.
A more detailed contract for the hypothetical weather-independent spring extract might contain the following decisions. First, record one incoming observation record per data row, not one species, one individual bee, or necessarily one field visit. Second, use complete calendar dates with a stated meaning and preserve the precision of every accepted date. Third, define adequacy of location relative to the map or summary; for the toy workflow a row must satisfy the spatial checks assigned to this extract. Finally, group candidates by a specified duplicate key and choose a representative deterministically. Store declarations as testable rules, and attach a narrative explanation of why that rule matches this analysis. A rule can be specified precisely and still be poor scientific design; this is why purpose and implementation both belong in the record.
The smallest useful stage outputs include the retained IDs and a tally for not retained rows. Where rights and access controls permit, preserve a row-level reason log and the derived columns the filter used. Do not rely entirely on a notebook's visual output or a running count printed to a terminal. When a person asks why a particular provider record did not appear, a durable reason log can answer whether it was outside the intended scope, incompatible with the calendar rule, too uncertain for the grid, or grouped with a more suitable representative. If the answer depends on memory, the most useful detail probably was not captured.
Read the toy chart as conditional bookkeeping
The first bar is the 100 synthetic records in the downloaded table. The second bar is 94 records surviving the date step: six of the 100 were removed at that step. The third is 80 after location adequacy: fourteen of those 94 were removed, not fourteen out of the original table assessed independently. The last is 76 after resolving four duplicate candidates out of the 80 left. The cumulative removal is 24 records. The values on the chart can be audited using the adjacent data table and a few lines of arithmetic.
The stage denominator is an important choice. Six of 100 records were removed at the date stage, and 14 of 94 were removed at the location stage; that second removal is about 14.9 percent of rows reaching the location step. You could also report fourteen percentage points of the original 100 as the change from the second to the third bar. These statements describe different proportions with the same numerator. In a professional methods section, name the denominator rather than relying on the graph. A reader should never have to guess whether "location removed 14 percent" means 14 percent of the beginning table, of the remaining table, or of all records for which a check could be run.
The chart does not establish the number of incoming rows with any location issue. Some of the six already removed for dates might have failed location too. A simple pipeline often stops or excludes at the first failing mandatory step. The chart assigns each exclusion to its first applicable step in that order. If an audit also needs to know how date and location failures overlap, calculate separate diagnostic flags on all assessable incoming rows and describe which rows are unassessable. That diagnostic view complements the sequential chart; it should not be summed in expectation of getting the same 24 removed records. Rows can fail multiple tests, and diagnosing all tests may not be possible if a prerequisite fails.
The last four removals also have a narrower meaning than first appears. They are four incoming records represented by other survivors under the specified grouping method. They are not four duplicate bees in nature and do not imply that the group representatives enumerate unique bees. Two distinct visits can be indistinguishable after coarse rounding, and one visit can be reported in different ways. The rank of the representative, group membership, and any unresolved cases are part of the analytical product. If the output is later grouped again into unique days or cell-by-period counts, rename the unit then. Do not carry the title "records" forward after the table has switched to summary cells.
Make the order a first-class part of the method
A pair of filters can look interchangeable on paper when they are not in a real pipeline. If both are pure yes-or-no checks computed on the same untouched rows and only the final intersection matters, reversing them should produce the same surviving set. But the step-specific counts will change when any failure overlaps. More often the preprocessing creates new fields, conditions one rule on the result of another, or chooses one representative from a group. Then reversing stages can change which rows survive.
Consider a hypothetical pair of copies connected by the same trustworthy event identifier. One has a complete date but is missing location at the precision the map needs; the other supplies suitable location as well as a complete date. If the deduplicator keeps the first ingested record before those adequacy checks, the entire group can be lost once the sole representative fails. If adequacy is checked before the grouping operation, the adequate copy remains eligible. A third implementation might select a representative using an explicit ranking that considers adequacy. Those are not merely different orders with identical meaning. Encode the chosen rule and test a fixture that distinguishes the implementations.
Another case involves the difference between normalized and provider values. Suppose a parser keeps one normalized taxon field for grouping and a raw field for audit. A deduplicator run before that normalization can split groups that would otherwise come together. A deduplicator run after an overbroad normalization may erroneously group records with distinct taxa whose original names contained contrary evidence. The choice of input field is a method decision with possible downstream effects. Retain both versions and make the stage dependencies visible, especially if one transformation enriches the row in ways that change how later logic behaves.
A ledger also needs to handle joins as operations, even when they do not look like filters. Adding a local table of habitat codes can accidentally multiply one occurrence into several rows when a lookup key is not unique. A left join that creates 104 rows from 100 but is faithfully followed by the local filters does not describe the chart's starting point anymore. Specify expected join cardinality and unmatched behavior. Check for duplicate lookup keys, count matches, and fail or quarantine unexpected expansions rather than pruning extra rows farther along to make the report line up. Ordinary quality checks should detect a mistake near the operation that caused it.
There are cases where a transformation needs to return both original records and a derived analysis unit. An aggregate table of dated cell counts may be exactly what a map uses, yet the claim does not follow from the count table alone if the inputs cannot be identified. Preserve a bridge between stable record IDs and output groups, or a provable reconstruction of that bridge. If public outputs cannot include record-level details, preserve the bridge privately and release enough nonidentifying information to clarify the steps. Exact order is not a promise to expose every input. It is a promise not to conceal what the analysis depends on.
Treat a flag as evidence about a check, not the endpoint
GBIF's occurrence issues and flags documentation describes the checks and interpretation outcomes signaled by its occurrence flags. A country-coordinate mismatch, for example, marks a disagreement under the specified check; it is not by itself a diagnosis of which input is wrong. An invalid coordinate-uncertainty flag should prompt examination of the field and its provenance, not substitution of an arbitrary low uncertainty. A missing flag cannot demonstrate that a record is accurate. Some conditions require local domain knowledge; some rows do not carry enough information to apply a particular check; and not every flag matters equally to every question.
Start with the intended output. A national list might be unable to use a record with unresolved country attribution, while a discussion of natural-history documents might benefit from citing its preserved metadata as an object of historical interest rather than as an accepted spatial observation. A narrow, pixel-level map might reject coordinates that a broad, region-level summary could appropriately accommodate. A dataset can therefore be eligible for one use and ineligible for another. Write your rule as “not retained for this extract under the stated requirement,” not “known bad” unless there is stronger evidence for that diagnosis. Conflating an analytical decision with intrinsic quality can have wider consequences when lists of excluded data circulate.
Record precisely how you parsed lists of flags. Do not compare the whole field to a single warning string if it can contain multiple values. Use the documented representation for the download format and preserve the raw issue fields. A local normalized flag list may be convenient, but version the mapping and distinguish the exact recognized values from unknown values, missing entries, or parse failures. A reader who receives a rule called "remove serious errors" has no way to reconstruct what seriousness meant. A meaningful account lists how each used flag affects the current analysis: excluded, reviewed with a rule, accepted with uncertainty, or not applicable.
There is rarely a reason to discard every flagged record without explaining why. A practical review matrix links each flag to the claim it could compromise. A date-related issue matters to a weekly activity comparison; a taxonomy issue may matter if the analyst estimates species richness; a coordinate issue is directly important in a local spatial pattern. Some flags, by contrast, may describe interpretation changes that can be retained if relevant fields are checked. Compare an alternative treatment as a deliberate sensitivity analysis rather than quietly switching sets once an attractive result appears. If those alternatives produce different conclusions, the dependency deserves a place in the report.
Design the grouping rule and its exceptions before inspection
The term duplicate suggests certainty, but the grouping rule can do several different jobs. A strict rule could collapse an identical stable record identifier used in two overlapping downloads. A more tentative rule could bring together records linked by well-supported provider relationships. A coarser rule could thin observations for an explicit analysis unit, such as one dated cell entry, even when the underlying observations are real and distinct. The third operation is not deduplication in the same evidentiary sense as the first. Calling it analytical thinning, and keeping the underlying records distinguishable, avoids telling a false story about what the contributors reported.
Begin with a priority hierarchy for evidence and an exit for uncertainty. The same observation identifier with matching source context may support a stronger decision than the same rounded coordinates and date. Preserve the keys actually used, not merely whether the records matched. A local occurrence key that is only unique within a contributing dataset generally needs that dataset context. A deduplicator must not treat missing keys as though they were a common, meaningful identifier. Consider an input test where one entire block of rows has no key. They should not all disappear because blank text was grouped as if it were an observation number.
When a representative is required, make the tie-breaking order explicit and stable. For an eligible group you might prefer date precision, then adequate spatial information, then an ascending stable identifier chosen as a neutral last resort. Prefer an explicit stable key over a file position, processing order, or timestamp attached by an import. Test an example with the same rows in a different order. If the rule selects a different representative with no change in the inputs besides ordering, the behavior is not a reliable method for reproducing a map. Record enough about the selected row and removed rows to explain why the group survives and who contributed to it.
Do not confuse the representative used for one analysis with the sole contributor worth crediting. A culled copy may still matter to understanding where the retained information originated; source credit and analytical row counts are not identical. Preserve a stable crosswalk between the source occurrences and the chosen representation and decide explicitly how to describe contributors to the extract or output. Provenance can show that a particular group formed from several reported items without counting each item in a figure labeled unique groups. The representation should not destroy the original association even if it is only needed for audit under access restrictions.
Package inputs, a decision ledger, and three kinds of outputs
A compact reproducibility package has a manifest, an execution description, and inspectable outputs. The manifest declares the provider artifacts, DOI or other exact citation references, input digests, lookup-table digests, schema expectations, and material parser and environment settings. Capture defaults that would cause disagreement if they changed, such as date locale, normalization rules, spatial boundaries, and column types. If a piece of software downloads an ancillary lookup at runtime, make that dependency part of the manifest rather than treating a moving remote resource as an implicit constant. Documentation that describes only the initial archive misses the inputs introduced locally.
The execution description can be a short script plus configuration or an equivalent notebook with a deterministic top-to-bottom run. It should include explicit order, paths or identifiers of required inputs, the expected row unit at each stage, and a stable sort only where it is genuinely needed. A method report can express the purpose in language the reader understands, while implementation files specify exact values. The two should agree. If “through May” in prose meant up to and including May 31 but the script tests against a boundary excluding part of that date, a truly replicable mistake has still occurred. Keep boundary tests alongside the code rather than assuming editorial review will catch every mismatch.
The first output is the analysis table consumed by the figure, with its unit and grouping rules. It can be aggregate when publication calls for aggregate data. The second is a verification ledger, organized by stage and exclusion or transformation reason. If you cannot make it public because it contains restricted records, give public reviewers a nonidentifying summary of rules and counts, plus an appropriate way to request additional audit access if such access is available. The third output is a citation report, based on the actual declared inputs and, for the appropriate downstream citation workflow, the contributing datasets represented by the retained material. Keep these outputs separate even if they are produced by one script. They serve different readers and answer different questions.
A verification ledger can include a short code for each condition, its own data dictionary, a count representing mutually exclusive first-failure outcomes, and separate diagnostics for overlapping outcomes. A local raw record ID and a source-qualified ID have different meanings; use the latter when more than one archive is possible, and define it in the schema. Test that every intended input enters a documented outcome once for a sequential removal report. Verify that no occurrence ID unexpectedly disappears between parser output and the first declared filter. If the archive contains ancillary files, headers, metadata rows, or multimedia tables, count occurrence records under the correct schema rather than treating archive line counts as occurrence totals.
People often publish only the excluded totals because they are easy to generate. Totals are valuable but cannot prove identity. Two versions of a result could both show 76 retained rows while exchanging several members. Compare a sorted list of stable retained keys, plus a digest of a standardized analysis table when practical. Document the canonical serialization: identical values encoded with different column order, decimal representation, newline conventions, or text encodings may yield different hashes. Matching serialized bytes across two clean runs is strong evidence that this procedure is repeatable for the fixed inputs, not that the procedure captures the ecology without bias.
Prove the cutoff and the dependency before you trust the report
Prepare a small fixture that makes silent differences observable. Include a malformed date, a missing date, a valid date exactly on the stated inclusion boundary, a month-only date, and a date interval that crosses that boundary. Give each record an expected outcomes table. Add a row with a complete date and a point exactly at the chosen location cutoff, and another with no uncertainty estimate. If a rule distinguishes a point actually near an edge from an uncertainty envelope spanning the edge, include both. These examples should test the method announced in the prose. They should not simply replicate the implementation's current behavior in another file without independent thought.
To test sequencing, include one row that fails both date and location and a duplicate group in which only one candidate can survive the location requirement. Assert both the final retained keys and the first-failure reasons. Then compare first-failure output with the overlap report to check that a row may contribute to both independent diagnostics but only one sequential exclusion. Add a lookup with a duplicate join key and check that the pipeline issues an explicit failure rather than silently scaling up the input. Test that reordering otherwise equivalent rows doesn't change representative membership or the analysis counts. You are not trying to reproduce the entire external system in miniature. You are protecting decisions your workflow actually makes.
After the fixture passes, use the frozen input, not a replacement query, for a clean reproduction run. Confirm the archive identity, compare independent outputs, and inspect discrepancy details before rewriting documentation to match them. If the first-stage count differs unexpectedly, look at the captured archive, selected table, parser, and import schema. If only the final count differs, compare the qualifying IDs immediately before deduplication and the representative evidence. A small checker at every stage makes differences more useful: a failure says where and how the reproduction went off script. A single assertion about the final figure count does not tell you whether the underlying apparent success masks compensating errors.
There is an editorial inspection to perform as well. Test whether the chosen geography or threshold creates systematic loss of particular places, providers, time slices, or kinds of records. If early submitted records lose more rows than recent ones because the newer records tend to have more precise dates, the output may be reproducible but misleading as evidence of a trend. Compare the makeup before and after each stage, subject to appropriate safeguards, and describe limitations of the surviving material. If an alternative tolerance changes the substantive conclusion, show that dependency rather than selecting a result just because it looks cleaner. This audit is about the fitness of the selected records for the claim, not fairness to rival executions of the script.
Give the citation its proper job in the finished methods section
A concrete methods paragraph separates three things: the download a reader can identify, the ordered processing they can inspect, and the derived output the reported result uses. If there is a citable derived dataset, state which artifact that citation represents instead of suggesting it is the unchanged provider download. GBIF's guidance explains that derived dataset attribution relies on retaining identifiers for contributing datasets, ideally tracking counts; see also its technical article on derived datasets. A local derived table and a separately registered citation have related but not identical purposes. Record the input DOI, the specified local rules, and the output name or identifier separately rather than expecting any one of them to stand for all three.
The methods paragraph for the toy example can be written without a fictitious DOI: “Starting with the declared 100-row synthetic table, we required complete calendar dates under the stated parser, applied the map-specific location rule to the date-qualified set, and grouped the remaining records by the declared duplicate key with a deterministic tie break. Stage counts were 100, 94, 80, and 76. The released count table uses the final representatives, not independent estimates of the number of animals present.” In a real report the reader can follow the source citation, open the manifest if available, see the actual threshold and boundary evidence, and verify which table fed the analysis. Get in the habit of stating the resulting unit and scope rather than expecting readers to infer them from familiar titles.
None of these practices guarantees that a contributor's data will always be reachable in the same way or that an earlier aggregation can be reconstructed from a new provider snapshot. Those are separate questions about access, stewardship, and changes in sources. The immediate obligation is narrower and achievable: do not call an undocumented selection a reproducible extract merely because the original download is cited. Give the original records their credit, then make the local decisions legible enough that a colleague can tell which extract a chart describes and can challenge your choice of filter with evidence rather than guesswork.
A ledger needs to say what happened to transformed rows
A reject log is easy to imagine when every step only removes rows. Real extracts generally have transformations that change fields without removal. Date normalization may add a parsed representation, coordinate work may add a generalized geometry, and editorial grouping may assign a publication category that did not exist in the download. A stage that retains all 94 input rows is not necessarily a stage that changed nothing. A simple operation log distinguishes an unchanged pass from a pass after a transformation. It also records whether the transformation supersedes a field in the analysis view, adds another view, or merely adds a label used by the reviewer.
For instance, a calendar record may contain an exact date, a time expression, and a verbatim note copied from a field sheet. A local daily table might use the calendar day as its analytical unit while dispensing with the finer time fields in its published view. That is not the same as changing an ambiguous date into an exact date. One choice discards unnecessary precision in the output; the other invents precision that may determine eligibility. Keep the input value and record which of those choices, if either, actually happened. When recording derived days from timestamped observations, explicitly declare the calendar and timezone interpretation rather than letting the computer's setting decide what day a midnight-crossing observation falls on.
Spatial reassignment calls for similar care. If you use a polygon overlay to derive an analytical region, preserve the provider country or locality separately. A record can legitimately produce different outcomes under two geographic definitions, such as administrative boundaries and a research grid. A local disagreement with a supplied region code is evidence for review, not an automatic license to overwrite the source. The ledger should indicate the geometry and rule used for the derived assignment and keep a flag for a failed or ambiguous join. If the record is retained in a nonspatial summary but excluded from a spatial report, preserve that distinction in named extract outputs rather than publishing one general quality label.
These labels make a practical difference in maintenance. A changed lookup might have no effect on which instances survived yet reassign many of them to different summary groups. Someone who checks only a retained-ID digest will miss the substantive change. Compare the digest or keyed values of the actual analysis columns as well as the set of retained IDs. In a public stability note, state whether the result changed because the population of records changed, their interpretation changed, or a summary threshold changed. Those are different statements, and reviewers may need to reach different conclusions about the older output.
What to show when two reasonable filter specifications disagree
Suppose a report can reasonably use either a stricter map with a fine grid or a broader regional summary with looser spatial requirements. Give each its own declared question and its own checked stage ledger. Keep the original input constant when comparing the filter effect. An overlap comparison might show that a broader rule retains all 76 rows from the stricter run plus additional rows, but it need not: a change in duplicate grouping or ties can swap representatives. Measure the membership overlap rather than inferring it from the increase in the total. If either version is reported, cite its associated result table, not a generic extract name used for both.
For editorial review, compare implications at the actual reporting unit. Increasing the number of retained records might fill a set of previously empty grid cells while leaving the number of distinct reporting days unchanged. Conversely, a change that adds one early date may be important to a discussion of earliest documented observations even if the total is nearly identical. Summaries of filtering are most helpful when they show what a decision changes in a specific claim. They are not contests to retain as much data as possible, or to win by discarding more. A reader should know why your specification is appropriate for the claim and where a different specification leads to another answer.
Finally, verify that the narrative, the chart and the analysis table refer to the same run before handing the work to someone else. Compare the declared filter order and scope with the stored stage records, and confirm that the plotted values came from the output named in the manifest rather than a similarly titled exploration. Check that the citation belongs to the bytes used, and that any count of contributing datasets uses the contributor identifiers from that run. A reviewer who sees an otherwise well-written article with mismatched source and output identities has to reconstruct both from scratch. A simple editorial receipt connecting the DOI, rules and output is cheaper than making the next person untangle them.
References
- GBIF: Citation guidelines, for download citations and significant filtering.
- GBIF: Occurrence issues and flags, for the provider's quality checks and interpretation flags.
- GBIF: Derived datasets, for dataset credit and citable derived dataset records.