The cortexpy API reference¶
Random access of cortexpy graphs¶
This module contains classes for inspecting cortex graphs with random access to their kmers.
-
class
cortexpy.graph.parser.random_access.
RandomAccess
(graph_handle, kmer_cache_size=None)[source]¶ Provide fast k-mer access to Cortex graph in log(n) time (n = number of kmers in graph)
-
__getitem__
(lexlo_string)[source]¶ Return kmer associated with kmer string
No check is performed to make sure that the input string is a lexicographically-lowest kmer string. Use
get_kmer_for_string()
in order to convert a kmer string to its lexlo form before retrieving it from the cortex object.
-
Utility functions¶
This module contains utility functions that are used inside cortexpy. These functions may also be useful outside of cortexpy.