public abstract class AbstractAlignmentToCompactMode extends AbstractGobyMode
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAlignmentToCompactMode.TransferIds |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_M_PARAM
default ambiguity threshold.
|
protected String |
inputFile
Input file.
|
protected int |
largestQueryIndex |
protected int |
mParameter |
protected int |
numberOfReads |
protected int |
numberOfReadsFromCommandLine |
protected String |
outputFile
Output file.
|
protected boolean |
propagateQueryIds |
protected boolean |
propagateTargetIds |
protected AlignmentQualityFilter |
qualityFilter |
protected String |
qualityFilterParameters
Conversion parameters.
|
protected edu.cornell.med.icb.identifier.IndexedIdentifier |
queryIds
Identifiers for the query sequences in this alignment.
|
protected String |
queryReadIdsFilename
Query / target identifiers.
|
protected File |
readIndexFilterFile |
protected int |
smallestQueryIndex |
protected edu.cornell.med.icb.identifier.IndexedIdentifier |
targetIds
Identifiers for the target sequences in this alignment.
|
protected String |
targetReferenceIdsFilename |
protected boolean |
thirdPartyInput
Indicate that the file being imported is from a third party.
|
| Constructor and Description |
|---|
AbstractAlignmentToCompactMode() |
| Modifier and Type | Method and Description |
|---|---|
AbstractCommandLineMode |
configure(String[] args)
Configure.
|
protected int[] |
createReadLengthArray()
Deprecated.
|
protected void |
evaluateStatistics(AlignedSequence reference,
AlignedSequence query,
AlignmentStats stats) |
void |
execute()
Run the alignment-to-compact mode.
|
static void |
extractSequenceVariations(Alignments.AlignmentEntry.Builder currentEntry,
int alignmentLength,
it.unimi.dsi.lang.MutableString referenceSequence,
it.unimi.dsi.lang.MutableString readSequence,
int readStartPosition,
int queryLength,
boolean reverseStrand,
byte[] baseQualities)
Compare read and reference sequences to determine sequence variations.
|
String |
getOutputFile() |
static int |
getTargetIndex(edu.cornell.med.icb.identifier.IndexedIdentifier targetIds,
CharSequence targetIdentifier,
boolean thirdPartyInput) |
protected abstract int |
scan(ReadSet readIndexFilter,
edu.cornell.med.icb.identifier.IndexedIdentifier targetIds,
AlignmentWriter writer,
AlignmentTooManyHitsWriter tmhWriter)
Scan.
|
void |
setAmbiguityThreshold(int mParameter) |
void |
setInputFile(String inputFile) |
void |
setLargestQueryIndex(int largestQueryIndex) |
void |
setNumberOfQuerySequences(int numberOfReads) |
void |
setNumberOfReads(int numberOfReads) |
void |
setOutputFile(String outputFile) |
void |
setPropagateQueryIds(boolean propagateQueryIds) |
void |
setPropagateTargetIds(boolean propagateTargetIds) |
void |
setQualityFilterParameters(String qualityFilterParameters) |
void |
setQueryReadIdsFilename(String queryReadIdsFilename) |
void |
setSmallestQueryIndex(int smallestQueryIndex) |
void |
setTargetReferenceIdsFilename(String targetReferenceIdsFilename) |
void |
setThirdPartyInput(boolean thirdPartyInput) |
getJarFilename, getModeDescription, getModeName, getShortModeName, loadJsapFromResource, loadJsapFromResource, parseJsap, parseJsapArguments, parseJsapArguments, printDynamicHelpOptions, printUsage, printUsageAsHtmlTable, printUsageAsWikiTable, setJarFilenameprotected static final int DEFAULT_M_PARAM
protected String inputFile
protected String outputFile
protected String queryReadIdsFilename
protected String targetReferenceIdsFilename
protected boolean propagateQueryIds
protected boolean propagateTargetIds
protected String qualityFilterParameters
protected AlignmentQualityFilter qualityFilter
protected File readIndexFilterFile
protected int mParameter
protected int numberOfReads
protected final edu.cornell.med.icb.identifier.IndexedIdentifier queryIds
protected final edu.cornell.med.icb.identifier.IndexedIdentifier targetIds
protected int numberOfReadsFromCommandLine
protected boolean thirdPartyInput
protected int smallestQueryIndex
protected int largestQueryIndex
@Deprecated protected int[] createReadLengthArray()
protected abstract int scan(ReadSet readIndexFilter, edu.cornell.med.icb.identifier.IndexedIdentifier targetIds, AlignmentWriter writer, AlignmentTooManyHitsWriter tmhWriter) throws IOException
readIndexFilter - writer - targetIds - tmhWriter - IOException - error parsingpublic AbstractCommandLineMode configure(String[] args) throws IOException, com.martiansoftware.jsap.JSAPException
configure in class AbstractCommandLineModeargs - command line argumentsIOException - error parsingcom.martiansoftware.jsap.JSAPException - error parsingpublic void execute()
throws IOException
execute in class AbstractCommandLineModeIOException - error reading / writingprotected void evaluateStatistics(AlignedSequence reference, AlignedSequence query, AlignmentStats stats)
public void setInputFile(String inputFile)
public void setOutputFile(String outputFile)
public String getOutputFile()
public void setQueryReadIdsFilename(String queryReadIdsFilename)
public void setTargetReferenceIdsFilename(String targetReferenceIdsFilename)
public void setPropagateTargetIds(boolean propagateTargetIds)
public void setPropagateQueryIds(boolean propagateQueryIds)
public void setAmbiguityThreshold(int mParameter)
public void setQualityFilterParameters(String qualityFilterParameters)
public void setNumberOfReads(int numberOfReads)
public void setThirdPartyInput(boolean thirdPartyInput)
public void setSmallestQueryIndex(int smallestQueryIndex)
public void setLargestQueryIndex(int largestQueryIndex)
public void setNumberOfQuerySequences(int numberOfReads)
public static int getTargetIndex(edu.cornell.med.icb.identifier.IndexedIdentifier targetIds,
CharSequence targetIdentifier,
boolean thirdPartyInput)
public static void extractSequenceVariations(Alignments.AlignmentEntry.Builder currentEntry, int alignmentLength, it.unimi.dsi.lang.MutableString referenceSequence, it.unimi.dsi.lang.MutableString readSequence, int readStartPosition, int queryLength, boolean reverseStrand, byte[] baseQualities)
currentEntry - alignment entry where variations will be stored.alignmentLength - length of the sequence alignment (common length of reference and read sequences)referenceSequence - The reference sequencereadSequence - The read sequencequeryLength - baseQualities - ASCII encoded, remove 33 to get Phred quality score (see http://bioinformatics.oxfordjournals.org/cgi/reprint/btp352v1.pdf)Copyright © 2018 Campagne Laboratory. All rights reserved.