public interface AlignmentToSamRecordFactory
final class MyClass {
private final AlignmentToSamRecordFactory alignmentToSamRecordFactory;
@Inject
MyClass(final AlignmentToSamRecordFactory alignmentToSamRecordFactory) {
this.alignmentToSamRecordFactory = alignmentToSamRecordFactory;
}
void doIt() {
Converter<Alignment, SAMRecord> converter = alignmentToSamRecordFactory.create(header);
SAMRecord record = converter.convert(alignment, stringency, logger);
// ...
| Modifier and Type | Method and Description |
|---|---|
Converter<org.bdgenomics.formats.avro.Alignment,htsjdk.samtools.SAMRecord> |
create(htsjdk.samtools.SAMFileHeader header)
Create a new Alignment to htsjdk SAMRecord converter with the specified header.
|
Converter<org.bdgenomics.formats.avro.Alignment,htsjdk.samtools.SAMRecord> create(htsjdk.samtools.SAMFileHeader header)
header - header, must not be nullCopyright © 2022. All rights reserved.