public class VCFMultiSampleReader extends GFFVariantsReader
Modifier and Type | Class and Description |
---|---|
protected static class |
VCFMultiSampleReader.vcf_version |
BaseDataModel.eDataType
Modifier and Type | Field and Description |
---|---|
protected VCFMultiSampleReader.vcf_version |
file_version |
protected static int |
NUM_RESULTS |
protected static java.lang.String |
VCF_AD_RSLT |
protected int |
VCF_ALT_COL |
protected int |
VCF_CHROM_COL |
protected static java.lang.String |
VCF_COVERAGE_TAG |
protected static java.lang.String |
VCF_DP_RSLT |
protected int |
VCF_FILTER_COL |
protected int |
VCF_FORMAT_COL |
protected static java.lang.String |
VCF_FORMATS_GENOTYPE_SEPARATOR |
protected static java.lang.String |
VCF_FORMATS_RSLT_SEPARATOR |
protected static java.lang.String |
VCF_FORMATS_SEPARATOR |
protected static java.lang.String |
VCF_GQ_RSLT |
protected static java.lang.String |
VCF_GT_RSLT |
protected int |
VCF_ID_COL |
protected int |
VCF_INFO_COL |
protected static java.lang.String |
VCF_NO_SAMPLE_DATA |
protected static java.lang.String |
VCF_PL_RSLT |
protected int |
VCF_POS_COL |
protected int |
VCF_QUAL_COL |
protected int |
VCF_REF_COL |
protected int |
VCF_START_SAMPLE_COL |
protected static java.lang.String |
VCF_VERSION_TAG |
genotype_tag, is_v13, VARIANT_DEF_TAG, VARIANT_DELETION_TYPE, VARIANT_INSERTION_TYPE, VARIANT_SUBST_TYPE, VARIANT_TYPES_LABELS, VARIANT_V12_GENOTYPE_TAG, VARIANT_V13_GENOTYPE_TAG, VARIANT_V13_TAG, VARIANT_V131_TAG, VARIANT_V133_FREQUENCY_TAG, VARIANT_V133_TAG, VARIANT_V140_TAG, VARIANT_V200_TAG, VARIANT_V210_TAG
data, fileName, min_max_values, valid
changeNotifier, data_type, mc
Constructor and Description |
---|
VCFMultiSampleReader() |
Modifier and Type | Method and Description |
---|---|
void |
loadFromReader(java.io.Reader reader,
java.lang.String file_name,
VioletApp app) |
protected void |
processPacBioVersion(java.lang.String[] ar,
VariableValuesDataRecord record)
parses records in pacbio format
|
protected VariableValuesDataRecord |
processVCFBaseRecord(java.lang.String[] ar,
int contig)
processes the base part of a vcf record, single sample
|
protected void |
processVCFHeaderInfo(java.lang.String line)
process fileheader, get version
|
protected void |
processVCFMultiSampleRecord(VariableValuesDataRecord record,
java.lang.String[] ar) |
protected java.util.ArrayList<java.lang.String> |
processVCFSampleInfo(java.lang.String line)
process sample info, eventually returns list of sample names
|
protected VCFMultiSampleReader.vcf_version |
processVFCVersionInfo(java.lang.String line)
get vcf version
|
int |
readElements(VioletApp app,
java.io.Reader reader)
Loads variants info
|
getDataPointForInterval, getVariantLabel
clear, get, getDataInfo, getFileHeader, getFilePath, getMinMaxValues, getResults, invalidate, isValid, size, toCollection, validate
copyAsMarkerCollectionArray, detach, getNumItems, getResult, iterator
addChangeListener, fireChangeEvent, getDataType, getDataTypeAsString, getMarkersForContig, getNumContigs, hasData, isMarkerType, isModificationsType, isReadsType, isSummaryType, isVariantsType, removeChangeListener, setTypeAndNumContigs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, removeChangeListener
protected static final int NUM_RESULTS
protected static final java.lang.String VCF_VERSION_TAG
protected final int VCF_CHROM_COL
protected final int VCF_POS_COL
protected final int VCF_ID_COL
protected final int VCF_REF_COL
protected final int VCF_ALT_COL
protected final int VCF_QUAL_COL
protected final int VCF_FILTER_COL
protected final int VCF_INFO_COL
protected final int VCF_FORMAT_COL
protected final int VCF_START_SAMPLE_COL
protected static final java.lang.String VCF_FORMATS_SEPARATOR
protected static final java.lang.String VCF_FORMATS_RSLT_SEPARATOR
protected static final java.lang.String VCF_FORMATS_GENOTYPE_SEPARATOR
protected static final java.lang.String VCF_NO_SAMPLE_DATA
protected static final java.lang.String VCF_COVERAGE_TAG
protected static final java.lang.String VCF_GT_RSLT
protected static final java.lang.String VCF_AD_RSLT
protected static final java.lang.String VCF_DP_RSLT
protected static final java.lang.String VCF_GQ_RSLT
protected static final java.lang.String VCF_PL_RSLT
protected VCFMultiSampleReader.vcf_version file_version
public void loadFromReader(java.io.Reader reader, java.lang.String file_name, VioletApp app) throws java.io.IOException, FileFormatException
loadFromReader
in class GFFVariantsReader
java.io.IOException
FileFormatException
public int readElements(VioletApp app, java.io.Reader reader) throws java.io.IOException, FileFormatException
GFFVariantsReader
readElements
in class GFFVariantsReader
java.io.IOException
FileFormatException
protected void processVCFHeaderInfo(java.lang.String line)
line
- protected java.util.ArrayList<java.lang.String> processVCFSampleInfo(java.lang.String line)
line
- protected VCFMultiSampleReader.vcf_version processVFCVersionInfo(java.lang.String line)
line
- protected VariableValuesDataRecord processVCFBaseRecord(java.lang.String[] ar, int contig)
ar
- contig
- protected void processPacBioVersion(java.lang.String[] ar, VariableValuesDataRecord record)
ar
- record
- protected void processVCFMultiSampleRecord(VariableValuesDataRecord record, java.lang.String[] ar)
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.