samples

fun samples(range: IntRange): NucMSA

Returns a subset of the NucSeqRecords in the NucMSA as a NucMSA, based on the sample IntRange given. Kotlin range operator is "..". Indices start at zero. Note Kotlin IntRange are inclusive end, while Python slices exclusive end. Negative slices "-3..-1" start from the last base (i.e. would return the last three bases).


fun samples(sampleCollection: Collection<Any>): NucMSA

Function to return a NucMSA given a collection of both indices and sample names. Returns a subset of the NucSeqRecords in the NucMSA as a new NucMSA based on the provided indices and sample names. Note this will work with both positive and negative indices.


fun samples(filterLambda: (Int) -> Boolean): NucMSA

Function to filter the MSA by sample index based on the provided filterLambda. This will return another NucMSA. Note this will not work with negative indices