public class ProtoHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NEGATIVE_STRAND |
static int |
POSITIVE_STRAND |
| Constructor and Description |
|---|
ProtoHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<BaseInformationRecords.NumberWithFrequency> |
compressFreq(List<Integer> numList) |
static BaseInformationRecords.BaseInformation |
toProto(RandomAccessSequenceInterface genome,
String referenceID,
SampleCountInfo[] sampleCounts,
int referenceIndex,
int position,
DiscoverVariantPositionData list,
int contextLength)
Returns a serialized record of a given position in protobuf format.
|
static BaseInformationRecords.BaseInformation |
toProto(RandomAccessSequenceInterface genome,
String referenceID,
SampleCountInfo[] sampleCounts,
int referenceIndex,
int position,
DiscoverVariantPositionData list,
Integer[] sampleToReaderIdxs)
Convert to proto with a 21 bp genomic context length.
|
static BaseInformationRecords.BaseInformation |
toProto(RandomAccessSequenceInterface genome,
String referenceID,
SampleCountInfo[] sampleCounts,
int referenceIndex,
int position,
DiscoverVariantPositionData list,
Integer[] sampleIndicesToProcess,
int contextLength)
Returns a serialized record of a given position in protobuf format.
|
public static final int POSITIVE_STRAND
public static final int NEGATIVE_STRAND
public static BaseInformationRecords.BaseInformation toProto(RandomAccessSequenceInterface genome, String referenceID, SampleCountInfo[] sampleCounts, int referenceIndex, int position, DiscoverVariantPositionData list, Integer[] sampleToReaderIdxs)
genome - referenceID - sampleCounts - referenceIndex - position - list - sampleToReaderIdxs - public static BaseInformationRecords.BaseInformation toProto(RandomAccessSequenceInterface genome, String referenceID, SampleCountInfo[] sampleCounts, int referenceIndex, int position, DiscoverVariantPositionData list, Integer[] sampleIndicesToProcess, int contextLength)
genome - genome stored in a DiscoverVariantIterateSortedAlignments iteratorreferenceID - name of chromosome, also acquired from an iteratorsampleCounts - Array of count information objectsreferenceIndex - index corresponding to chromosomeposition - position value of the record in question to serializelist - Additional data about the readssampleIndicesToProcess - Array which points a required sample (trio:father,mother,somatic pair:germline,somatic) to its reader index
this index corresponds to the location of data collected by that reader in the SampleCountInfo arraypublic static BaseInformationRecords.BaseInformation toProto(RandomAccessSequenceInterface genome, String referenceID, SampleCountInfo[] sampleCounts, int referenceIndex, int position, DiscoverVariantPositionData list, int contextLength)
genome - genome stored in a DiscoverVariantIterateSortedAlignments iteratorreferenceID - name of chromosome, also acquired from an iteratorsampleCounts - Array of count information objectsreferenceIndex - index corresponding to chromosomeposition - position value of the record in question to serializelist - Additional data about the readspublic static List<BaseInformationRecords.NumberWithFrequency> compressFreq(List<Integer> numList)
Copyright © 2018 Campagne Laboratory. All rights reserved.