Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Fix lazy GenBank loading of multiple records - #1159

Open
vera-rubin wants to merge 1 commit into
biojava:masterfrom
vera-rubin:fix/genbank-lazy-offsets
Open

vera-rubin wants to merge 1 commit into
biojava:masterfrom
vera-rubin:fix/genbank-lazy-offsets

Conversation

@vera-rubin

Copy link
Copy Markdown

With multiple records in a GenBank file, readGenbankDNASequence(file, true) returns the first record's DNA for later accessions. Two records containing AB123456 (AAAAAA) and AB123457 (CCCCCC) both return AAAAAA, even though the helper documents loading each sequence by accession.

GenbankReaderHelper.readGenbankDNASequence(file, true)
    .get("AB123457").getSequenceAsString()

We now pass each record's character offset to the sequence creator, preserving it across parser lookahead and line endings. We added a regression test for eager versus lazy loading and consecutive process(1) calls, and the reader and writer tests pass.

Reproduced on base commit 8f151db1d376ed0311979bd6bc2131f0eea11c1a.

— ChipLab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant