ReferenceSequenceFile
是 HTSJDK 库中的一个接口,用于表示参考基因组文件。它定义了读取参考基因组序列的标准方法。这个接口使得不同类型的参考基因组文件(如 FASTA 格式)能够以统一的方式进行访问。
ReferenceSequenceFile
接口主要功能
-
访问参考序列:
- 提供获取参考基因组序列的接口方法,使得用户能够从参考基因组文件中读取特定的序列数据(contig)。
-
支持不同格式:
- 该接口可以被不同格式的参考基因组文件实现,例如 FASTA 文件。具体实现类会根据文件格式提供相应的功能。
ReferenceSequenceFile接口的实现类:
ReferenceSequenceFile接口源码:
/*
* The MIT License
*
* Copyright (c) 2009 The Broad Institute
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software with