public class Explorer extends Object
| Constructor and Description |
|---|
Explorer(String referencesFolderPath)
Instantiates Explorer class
Finds all references inside the "parent" folder specified
|
| Modifier and Type | Method and Description |
|---|---|
long |
getContigLength(String reference,
String contig)
Get reference's contig length
|
List<String> |
getReferenceContigsList(String reference)
Get contigs list for reference specified
|
Set<String> |
getReferenceGenomesList()
Get available references
|
String |
getReferenceSequence(String reference,
String contig,
long start,
long stop,
ReferenceSequenceCase sequenceCase)
Get reference genome sequence for parameters specified
|
List<htsjdk.samtools.SAMSequenceRecord> |
getReferenceSequencesList(String reference)
Get references sequences for reference specified
|
boolean |
hasContig(String reference,
String contig)
Returns
true if reference's contig list
contains contig of specified name |
boolean |
hasReference(String reference)
Returns
true if references dictionary
contains mapping for specified reference name |
public Explorer(String referencesFolderPath) throws IllegalReferencesFolderPathException
referencesFolderPath - "Parent" folder to search references inIllegalReferencesFolderPathException - If specified "parent" folder is not a directorypublic Set<String> getReferenceGenomesList()
referencesFolderpublic boolean hasReference(String reference)
true if references dictionary
contains mapping for specified reference namereference - Reference name to look forreference is in the references dictionarypublic boolean hasContig(String reference, String contig) throws NoSuchReferenceException
true if reference's contig list
contains contig of specified namereference - Reference name to look incontig - Contig name to look forcontig is in the reference's contigs listNoSuchReferenceException - If there is no such reference name in the references dictionarypublic long getContigLength(String reference, String contig) throws NoSuchReferenceException, ContigNotFoundException
reference - Reference genome namecontig - Contig idNoSuchReferenceException - If there is no such reference name in the references dictionaryContigNotFoundException - If there is no reference's contig of name specifiedpublic List<htsjdk.samtools.SAMSequenceRecord> getReferenceSequencesList(String reference)
reference - To get sequences ofpublic List<String> getReferenceContigsList(String reference)
reference - To get contigs ofpublic String getReferenceSequence(String reference, String contig, long start, long stop, ReferenceSequenceCase sequenceCase)
reference - To get sequence ofcontig - To get sequence ofstart - To get sequence from (1-based inclusive)stop - To get sequence to (1-based inclusive)sequenceCase - Preferred sequence caseCopyright © 2017. All rights reserved.