public class AlignmentWriterImpl extends Object implements AlignmentWriter
| Modifier and Type | Field and Description |
|---|---|
static DynamicOptionClient |
doc |
| Constructor and Description |
|---|
AlignmentWriterImpl(String outputBasename) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReadOriginInfo(it.unimi.dsi.fastutil.objects.ObjectArrayList<Alignments.ReadOriginInfo.Builder> readOriginInfoBuilderList) |
void |
appendEntry()
Deprecated.
|
void |
appendEntry(Alignments.AlignmentEntry entry)
Append an entry to the file being written.
|
void |
close() |
static DynamicOptionClient |
doc() |
boolean |
entriesHaveQueryIndexOccurrences() |
String |
getAlignerName() |
String |
getAlignerVersion() |
Alignments.AlignmentEntry.Builder |
getAlignmentEntry()
Deprecated.
|
int |
getNumQueries()
Get the total number of queries.
|
boolean |
isAllReadQualityScores() |
void |
printStats(PrintStream out) |
void |
putStatistic(String description,
double value) |
void |
putStatistic(String description,
int value) |
void |
putStatistic(String description,
String value) |
protected long |
recodePosition(int firstTargetIndexInChunk,
int firstPositionInChunk) |
void |
setAlignerName(String alignerName) |
void |
setAlignerVersion(String alignerVersion) |
void |
setAlignmentEntry(int queryIndex,
int targetIndex,
int position,
float score,
boolean matchesReverseStrand,
int queryLength)
Deprecated.
|
void |
setAlignmentScore(float score)
Deprecated.
|
void |
setLargestSplitQueryIndex(int largestQueryIndex) |
void |
setNumAlignmentEntriesPerChunk(int numEntriesPerChunk) |
void |
setNumQueries(int numQueries)
Set the total number of queries.
|
void |
setNumTargets(int numTargets)
Set the total number of targets.
|
void |
setPermutation(boolean state)
Indicate whether query indices are small indices.
|
void |
setQueryIdentifiers(edu.cornell.med.icb.identifier.IndexedIdentifier queryIdentifiers) |
void |
setQueryIdentifiersArray(String[] queryIdentifiersArray)
Provide query identifiers as an array of strings, where queryIndex is the index of the
element in the array.
|
void |
setQueryIndex(int queryIndex)
Deprecated.
|
void |
setReadOriginInfo(it.unimi.dsi.fastutil.objects.ObjectArrayList<Alignments.ReadOriginInfo.Builder> readOriginInfoBuilderList) |
void |
setSmallestSplitQueryIndex(int smallestQueryIndex) |
void |
setSorted(boolean sortedState) |
void |
setStatistics(Properties statistics) |
void |
setTargetIdentifiers(edu.cornell.med.icb.identifier.IndexedIdentifier targetIdentifiers) |
void |
setTargetIdentifiersArray(String[] targetIdentifiersArray)
Provide target identifiers as an array of string, where targetIndex is the index of the
element in the array.
|
void |
setTargetIndex(int targetIndex)
Deprecated.
|
void |
setTargetLengths(int[] targetLengths) |
void |
setTargetPosition(int position)
Deprecated.
|
public static DynamicOptionClient doc
public AlignmentWriterImpl(String outputBasename) throws IOException
IOExceptionpublic static DynamicOptionClient doc()
public void setPermutation(boolean state)
setPermutation in interface AlignmentWriterstate - True or False.public void setSorted(boolean sortedState)
setSorted in interface AlignmentWriter@Deprecated public final void setQueryIndex(int queryIndex)
appendEntry(Alignments.AlignmentEntry).queryIndex - The query index of the next alignment entry to append@Deprecated public final void setTargetIndex(int targetIndex)
appendEntry(Alignments.AlignmentEntry).targetIndex - The target index of the next alignment entry to append@Deprecated public final void setTargetPosition(int position)
appendEntry(Alignments.AlignmentEntry).position - The target position of the next alignment entry to append@Deprecated public final void setAlignmentScore(float score)
appendEntry(Alignments.AlignmentEntry).score - The score of the next alignment entry to appendpublic void setNumAlignmentEntriesPerChunk(int numEntriesPerChunk)
@Deprecated public final void setAlignmentEntry(int queryIndex, int targetIndex, int position, float score, boolean matchesReverseStrand, int queryLength)
appendEntry(Alignments.AlignmentEntry).queryIndex - The query index of the next alignment entry to appendtargetIndex - The target index of the next alignment entry to appendposition - The target position of the next alignment entry to appendscore - The score of the next alignment entry to appendmatchesReverseStrand - true if the entry matches the reverse strand@Deprecated public Alignments.AlignmentEntry.Builder getAlignmentEntry()
appendEntry(Alignments.AlignmentEntry).appendEntry().@Deprecated public void appendEntry() throws IOException
appendEntry(Alignments.AlignmentEntry).IOException - if the entry cannot be writtenprotected long recodePosition(int firstTargetIndexInChunk,
int firstPositionInChunk)
public void appendEntry(Alignments.AlignmentEntry entry) throws IOException
appendEntry in interface AlignmentWriterentry - The entry to appendIOException - If an error occurs writing this entry.public boolean entriesHaveQueryIndexOccurrences()
public boolean isAllReadQualityScores()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface AlignmentWriterIOExceptionpublic void setQueryIdentifiersArray(String[] queryIdentifiersArray)
setQueryIdentifiersArray in interface AlignmentWriterqueryIdentifiersArray - Array of query identfierspublic void setTargetIdentifiersArray(String[] targetIdentifiersArray)
setTargetIdentifiersArray in interface AlignmentWritertargetIdentifiersArray - Array of target identfierspublic void printStats(PrintStream out)
printStats in interface AlignmentWriterpublic void setQueryIdentifiers(edu.cornell.med.icb.identifier.IndexedIdentifier queryIdentifiers)
setQueryIdentifiers in interface AlignmentWriterpublic void setTargetIdentifiers(edu.cornell.med.icb.identifier.IndexedIdentifier targetIdentifiers)
setTargetIdentifiers in interface AlignmentWriterpublic void setTargetLengths(int[] targetLengths)
setTargetLengths in interface AlignmentWriterpublic void setNumQueries(int numQueries)
setNumQueries in interface AlignmentWriternumQueries - The number of query sequences.public int getNumQueries()
public void setNumTargets(int numTargets)
setNumTargets in interface AlignmentWriternumTargets - The number of target sequences.public void putStatistic(String description, String value)
putStatistic in interface AlignmentWriterpublic void putStatistic(String description, double value)
putStatistic in interface AlignmentWriterpublic void putStatistic(String description, int value)
putStatistic in interface AlignmentWriterpublic void setStatistics(Properties statistics)
setStatistics in interface AlignmentWriterpublic void setSmallestSplitQueryIndex(int smallestQueryIndex)
setSmallestSplitQueryIndex in interface AlignmentWriterpublic void setLargestSplitQueryIndex(int largestQueryIndex)
setLargestSplitQueryIndex in interface AlignmentWriterpublic String getAlignerVersion()
public void setAlignerVersion(String alignerVersion)
setAlignerVersion in interface AlignmentWriterpublic String getAlignerName()
public void setAlignerName(String alignerName)
setAlignerName in interface AlignmentWriterpublic void setReadOriginInfo(it.unimi.dsi.fastutil.objects.ObjectArrayList<Alignments.ReadOriginInfo.Builder> readOriginInfoBuilderList)
setReadOriginInfo in interface AlignmentWriterpublic void addReadOriginInfo(it.unimi.dsi.fastutil.objects.ObjectArrayList<Alignments.ReadOriginInfo.Builder> readOriginInfoBuilderList)
addReadOriginInfo in interface AlignmentWriterCopyright © 2018 Campagne Laboratory. All rights reserved.