class FAIUtils extends AnyRef
Routines for reading a FASTA index (.fai) file efficiently. They can be generated by e.g. 'seqkit faidx'
This algorithm tries to seek to the best position in the FAI file based on the current offset in the fasta file, assuming the records are on average evenly spread out. This is to help performance in the case where FAI files are huge, and we would otherwise need to parse the whole thing for each split. Additional records may be included before or after, so the start position of each record should still be checked.
- Alphabetic
- By Inheritance
- FAIUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
FAIUtils(path: Path, job: Configuration, startByte: Long, fullSize: Long)
- path
Path to the fai file
- job
The Hadoop configuration
- startByte
start byte in the fasta file
- fullSize
total size of the fasta file
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
- def close(): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fileSize: Long
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
recordsAtOffset: BufferedIterator[FAIRecord]
Stream FAI records from the current offset in the fai file.
Stream FAI records from the current offset in the fai file. After use, the close() method must be called to close the underlying source.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated