cuDDL
Loading...
Searching...
No Matches
fastx.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cuda/std/cstdint>
4
5#include <optional>
6#include <string>
7#include <utility>
8#include <vector>
9
11#include <cuddl/error.hpp>
12
13namespace cuddl {
14
17
35 std::string const& path,
36 uint32_t k,
37 unsigned threads = std::thread::hardware_concurrency()
38) {
39 return detail::parse_fasta(path, k, threads);
40}
41
42} // namespace cuddl
Result< fasta_parse_result > parse_fasta(std::string const &path, uint32_t k, unsigned threads=std::thread::hardware_concurrency())
Parses a FASTA/FASTQ file's sequence bases into packed canonical k-mers of length k.
Batch operations over contiguous device rows.
Definition a48.hpp:14
Result< fasta_parse_result > parse_fasta_file(std::string const &path, uint32_t k, unsigned threads=std::thread::hardware_concurrency())
Parses a FASTA/FASTQ file's sequence bases into packed canonical k-mers of length k.
Definition fastx.hpp:34
Fallible API result: cuda::std::expected<T, Error> with cuDDL factories.
Definition error.hpp:118
Result of parsing one FASTA/FASTQ file into packed canonical k-mers.