org.utgenome.format.fasta
Class Kmer
java.lang.Object
org.utgenome.format.fasta.Kmer
- All Implemented Interfaces:
- GenomeSequence
public class Kmer
- extends Object
- implements GenomeSequence
K-mer integer representation of ACGT.
The difference with CompactACGT
is this K-mer representation is modifiable to facilitate genome sequence
editing.
- Author:
- leo
Kmer
public Kmer(Kmer other)
Kmer
public Kmer(CompactACGT acgt)
Kmer
public Kmer(String acgt)
toInt
public int toInt()
toInt
public int toInt(int firstKmer)
length
public int length()
- Specified by:
length
in interface GenomeSequence
charAt
public char charAt(int index)
- Specified by:
charAt
in interface GenomeSequence
- Parameters:
index
- index on the genome sequence (0-origin)
- Returns:
set
public void set(int index,
char acgt)
set
public void set(int index,
String acgt)
delete
public Kmer delete(int deletePos,
int deleteLen)
append
public Kmer append(String acgt)
insert
public Kmer insert(int insertPos,
String acgt)
reverseComplement
public Kmer reverseComplement()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2007-2012 utgenome.org. All Rights Reserved.