Commit 4a44444
Add basic functionality to read indexed FASTA files (continued) (#214)
* Cherry pick the pull request for faidx
#165 (review)
* Cargo formatting
* Update faidx documentation for clarification
* Implement faidx_open test
* Run actions on faidx branch
* Remove faidx from github actions
* Activate CI for faidx branch
* update osx bindings with faidx support
* update linux bindings for faidx
* Drop faidx branch from CI actions
As requested by @brainstorm (see #214 (comment))
* Migrate faidx to use thiserror instead of snafu (#214 (comment))
* Use i64 in faidx and return byte array
Internal C method faidx_fetch_seq64 uses i64 as type to index into large FASTA
sequences.
The fetch function now returns a byte array instead of a String to be more
efficient.
A new method was added to automatically convert to a String for convenience.
* Formatting using cargo fmt
* Use usize-type for position paramter in faidx
The return type of the faidx functions is changed to a Result
capturing a potential failure in converting the usize
into a i64 (hts_pos_t in the C API).
* Correct typo in faidx-error: to -> too
Co-authored-by: Patrick Marks <[email protected]>
Co-authored-by: Patrick Marks <[email protected]>
Co-authored-by: Roman Valls Guimera <[email protected]>1 parent e979e34 commit 4a44444
7 files changed
Lines changed: 4426 additions & 766 deletions
File tree
- .github/workflows
- hts-sys
- src
- faidx
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11239 | 11239 | | |
11240 | 11240 | | |
11241 | 11241 | | |
| 11242 | + | |
| 11243 | + | |
| 11244 | + | |
| 11245 | + | |
| 11246 | + | |
| 11247 | + | |
| 11248 | + | |
| 11249 | + | |
| 11250 | + | |
| 11251 | + | |
| 11252 | + | |
| 11253 | + | |
| 11254 | + | |
| 11255 | + | |
| 11256 | + | |
| 11257 | + | |
| 11258 | + | |
| 11259 | + | |
| 11260 | + | |
| 11261 | + | |
| 11262 | + | |
| 11263 | + | |
| 11264 | + | |
| 11265 | + | |
| 11266 | + | |
| 11267 | + | |
| 11268 | + | |
| 11269 | + | |
| 11270 | + | |
| 11271 | + | |
| 11272 | + | |
| 11273 | + | |
| 11274 | + | |
| 11275 | + | |
| 11276 | + | |
| 11277 | + | |
| 11278 | + | |
| 11279 | + | |
| 11280 | + | |
| 11281 | + | |
| 11282 | + | |
| 11283 | + | |
| 11284 | + | |
| 11285 | + | |
| 11286 | + | |
| 11287 | + | |
| 11288 | + | |
| 11289 | + | |
| 11290 | + | |
| 11291 | + | |
| 11292 | + | |
| 11293 | + | |
| 11294 | + | |
| 11295 | + | |
| 11296 | + | |
| 11297 | + | |
| 11298 | + | |
| 11299 | + | |
| 11300 | + | |
| 11301 | + | |
| 11302 | + | |
| 11303 | + | |
| 11304 | + | |
| 11305 | + | |
| 11306 | + | |
| 11307 | + | |
| 11308 | + | |
| 11309 | + | |
| 11310 | + | |
| 11311 | + | |
| 11312 | + | |
| 11313 | + | |
| 11314 | + | |
| 11315 | + | |
| 11316 | + | |
| 11317 | + | |
| 11318 | + | |
| 11319 | + | |
| 11320 | + | |
| 11321 | + | |
| 11322 | + | |
| 11323 | + | |
| 11324 | + | |
| 11325 | + | |
| 11326 | + | |
| 11327 | + | |
| 11328 | + | |
| 11329 | + | |
| 11330 | + | |
| 11331 | + | |
| 11332 | + | |
| 11333 | + | |
| 11334 | + | |
| 11335 | + | |
| 11336 | + | |
| 11337 | + | |
| 11338 | + | |
| 11339 | + | |
| 11340 | + | |
| 11341 | + | |
| 11342 | + | |
| 11343 | + | |
| 11344 | + | |
| 11345 | + | |
| 11346 | + | |
| 11347 | + | |
| 11348 | + | |
| 11349 | + | |
| 11350 | + | |
| 11351 | + | |
| 11352 | + | |
| 11353 | + | |
| 11354 | + | |
| 11355 | + | |
| 11356 | + | |
| 11357 | + | |
| 11358 | + | |
| 11359 | + | |
| 11360 | + | |
| 11361 | + | |
| 11362 | + | |
| 11363 | + | |
| 11364 | + | |
| 11365 | + | |
| 11366 | + | |
| 11367 | + | |
| 11368 | + | |
| 11369 | + | |
| 11370 | + | |
| 11371 | + | |
| 11372 | + | |
| 11373 | + | |
| 11374 | + | |
| 11375 | + | |
| 11376 | + | |
| 11377 | + | |
| 11378 | + | |
| 11379 | + | |
| 11380 | + | |
| 11381 | + | |
| 11382 | + | |
| 11383 | + | |
| 11384 | + | |
| 11385 | + | |
| 11386 | + | |
| 11387 | + | |
| 11388 | + | |
| 11389 | + | |
| 11390 | + | |
| 11391 | + | |
| 11392 | + | |
| 11393 | + | |
11242 | 11394 | | |
11243 | 11395 | | |
11244 | 11396 | | |
| |||
0 commit comments