Package org.snpeff.snpEffect.factory
Class SnpEffPredictorFactoryGff
java.lang.Object
org.snpeff.snpEffect.factory.SnpEffPredictorFactory
org.snpeff.snpEffect.factory.SnpEffPredictorFactoryGff
- Direct Known Subclasses:
SnpEffPredictorFactoryGff2,SnpEffPredictorFactoryGff3,SnpEffPredictorFactoryGtf22,SnpEffPredictorFactoryRand
This class creates a SnpEffectPredictor from a GFF file.
This includes derived formats as GTF.
References: http://gmod.org/wiki/GFF3
- Author:
- pcingola
-
Field Summary
FieldsFields inherited from class org.snpeff.snpEffect.factory.SnpEffPredictorFactory
MARK, MIN_TOTAL_FRAME_COUNT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExonaddExon(Transcript tr, GffMarker gffMarker, String exonId) Create a new exonCreate and add a new exonprotected Geneprotected GeneCreate and add a gene based on GffMarkerprotected IntergenicConservedaddIntergenicConserved(GffMarker gffMarker) Add an intergenic conserved regionprotected booleanaddInterval(GffMarker gffMarker) Add interval based on GffMarker dataprotected IntronConservedaddIntronConserved(GffMarker gffMarker) Add an intron conserved regionCreate new UTR3primesCreate UTR5primescreate()protected ExonfindOrCreateExon(String parentId, GffMarker gffMarker) Find an exon for a given parentIdprotected GenefindOrCreateGene(GffMarker gffMarker) Find or create a gene based on GffMarkerprotected TranscriptfindOrCreateTranscript(GffMarker gffMarker) Create and add a transcript based on GffMarkerprotected booleanParse a lineprotected voidRead exon sequences from a FASTA fileprotected voidreadExonSequencesGff(String gffFileName) Read chromosome sequence from GFF3 file and extract exons' sequencesprotected voidreadGff()Read GFF file from the beginning looking for 'typeToRead' elementsMethods inherited from class org.snpeff.snpEffect.factory.SnpEffPredictorFactory
add, add, add, add, add, add, addMarker, addSequences, adjustChromosomes, adjustTranscripts, beforeExonSequences, codingFromCds, collapseZeroLenIntrons, createRandSequences, deleteRedundant, exonsFromCds, exonsFromCds, findGene, findGene, findMarker, findTranscript, findTranscript, getOrCreateChromosome, getProteinByTrId, parsePosition, replaceTranscript, setCircularCorrectLargeGap, setCreateRandSequences, setDebug, setFastaFile, setFileName, setRandom, setReadSequences, setStoreSequences, setVerbose, showChromoNamesDifferences
-
Field Details
-
FASTA_DELIMITER
- See Also:
-
-
Constructor Details
-
SnpEffPredictorFactoryGff
-
-
Method Details
-
addExon
Create a new exon -
addExons
Create and add a new exon -
addGene
-
addGene
Create and add a gene based on GffMarker -
addIntergenicConserved
Add an intergenic conserved region -
addInterval
Add interval based on GffMarker data- Returns:
- true if on success
-
addIntronConserved
Add an intron conserved region -
addUtr3
Create new UTR3primes -
addUtr5
Create UTR5primes -
create
- Specified by:
createin classSnpEffPredictorFactory
-
findOrCreateExon
Find an exon for a given parentId -
findOrCreateGene
Find or create a gene based on GffMarker -
findOrCreateTranscript
Create and add a transcript based on GffMarker -
parse
Parse a line- Returns:
- true if a line was parsed
-
readExonSequences
protected void readExonSequences()Description copied from class:SnpEffPredictorFactoryRead exon sequences from a FASTA file- Overrides:
readExonSequencesin classSnpEffPredictorFactory
-
readExonSequencesGff
Read chromosome sequence from GFF3 file and extract exons' sequences -
readGff
Read GFF file from the beginning looking for 'typeToRead' elements- Throws:
Exception
-