Sort the records in a sequence dictionary.
Sort the records in a sequence dictionary.
Returns a new sequence dictionary where the sequence records are sorted. If the sequence records have indices, the records will be sorted by their indices. If not, the sequence records will be sorted lexically by contig name.
stripIndices
Strips indices from a Sequence Dictionary.
Strips indices from a Sequence Dictionary.
This returns a new sequence dictionary devoid of indices. This is important for sorting: the default sort in ADAM is based on a lexical ordering, while the default sort in SAM is based on sequence indices. If the indices are not stripped before a file is saved back to SAM/BAM, the SAM/BAM header sequence ordering will not match the sort order of the records in the file.
sorted
Converts this ADAM style sequence dictionary into a SAM style sequence dictionary.
Converts this ADAM style sequence dictionary into a SAM style sequence dictionary.
Returns a SAM formatted sequence dictionary.