Package org.snpeff.sam
Class SamEntry
java.lang.Object
org.snpeff.sam.SamEntry
An entry in a SAM file
References: http://samtools.sourceforge.net/SAM-1.3.pdf
- Author:
- pcingola
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDoes this entry have a tag?getCigar()intgetFlag()getId()getLine()intgetMapq()intgetPnext()intgetPos()getQname()getQual()getRname()getRnext()getSeq()intgetTlen()booleanhasMapq()Some aligners just use '255' in the mapping quality field (bowtie)booleanPCR or optical duplicatebooleanThe first fragment in the templatebooleanThe last fragment in the templatebooleanisMapped()Is this entry mapped to the genome?booleanTemplate having multiple fragments in sequencingbooleanIs this read mapped to multiple genomic locations?booleanSEQ of the next fragment in the template being reversedbooleanNext fragment in the template unmappedbooleanNot passing quality controlsbooleanEach fragment properly aligned according to the alignerbooleanSEQ being reverse complementedbooleanSecondary alignmentbooleanIs this read mapped to only one genomic locations?booleanFragment unmappedvoidreplaceSeq(String newSeq) Replace a sequence WARNING: Doing this might invalidate the CIGAR fieldstatic StringsamLine2Id(String line) Get an ID from a SAM linetoString()
-
Constructor Details
-
SamEntry
Create an entry give a line from a file
-
-
Method Details
-
samLine2Id
Get an ID from a SAM line -
findTag
Does this entry have a tag? -
getCigar
-
getFlag
public int getFlag() -
getId
-
getLine
-
getMapq
public int getMapq() -
getPnext
public int getPnext() -
getPos
public int getPos() -
getQname
-
getQual
-
getRname
-
getRnext
-
getSeq
-
getTlen
public int getTlen() -
hasMapq
public boolean hasMapq()Some aligners just use '255' in the mapping quality field (bowtie) -
isDuplicate
public boolean isDuplicate()PCR or optical duplicate -
isFirstFragment
public boolean isFirstFragment()The first fragment in the template -
isLastFragment
public boolean isLastFragment()The last fragment in the template -
isMapped
public boolean isMapped()Is this entry mapped to the genome? -
isMultipleFragments
public boolean isMultipleFragments()Template having multiple fragments in sequencing -
isMultipleHits
public boolean isMultipleHits()Is this read mapped to multiple genomic locations? -
isNextReverseWc
public boolean isNextReverseWc()SEQ of the next fragment in the template being reversed -
isNextUnmapped
public boolean isNextUnmapped()Next fragment in the template unmapped -
isNotQualityControl
public boolean isNotQualityControl()Not passing quality controls -
isProperlyAligned
public boolean isProperlyAligned()Each fragment properly aligned according to the aligner -
isReverseWc
public boolean isReverseWc()SEQ being reverse complemented -
isSecondaryAlignment
public boolean isSecondaryAlignment()Secondary alignment -
isUniqueHit
public boolean isUniqueHit()Is this read mapped to only one genomic locations?- Returns:
-
isUnmapped
public boolean isUnmapped()Fragment unmapped -
replaceSeq
Replace a sequence WARNING: Doing this might invalidate the CIGAR field- Parameters:
newSeq-
-
toString
-