All Downloads are FREE. Search and download functionalities are using the official Maven repository.

htsjdk.beta.plugin.reads.ReadsQuery Maven / Gradle / Ivy

There is a newer version: 4.1.3
Show newest version
package htsjdk.beta.plugin.reads;

import htsjdk.beta.plugin.HtsRecord;
import htsjdk.samtools.util.CloseableIterator;

import java.util.Optional;

/**
 * Query methods specific to {@link ReadsDecoder}s.
 */
public interface ReadsQuery {

    /**
     * Get an iterator of unmapped reads.
     */
    CloseableIterator queryUnmapped();

    /**
     * Fetch the mate for the given read.
     *
     * @param record the source record
     * @return the source record's mate, or Optional.empty() if the source record has no mate
     */
    Optional queryMate(R record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy