public class AbstractPETags implements PETags
Basic methods for working with PE Tags, including sorting and search.
protected int tagLengthInLong
Tag length in Long primitive data type
protected kotlin.Array[] tagsF
Forward tags in Long array Columns are sequence, rows are index of sequence. This is faster than the other way
protected kotlin.Array[] tagsB
Backward tags in Long array Columns are sequence, rows are index of sequence. This is faster than the other way
protected kotlin.Array[] tagFLength
Length of forward tags
protected kotlin.Array[] tagBLength
Length of backward tags
protected kotlin.Array[] contigLengthInLong
Length of contigs in Long primitive data type, 0 means contig doesn't exist
protected kotlin.Array[] contig
Contigs in Long array
protected kotlin.Array[] contigLength
Length of contigs, 0 means contig doesn't exist
public kotlin.Array[] getTagF(int index)
public kotlin.Array[] getTagB(int index)
public int getTagCount()
public int getTagIndex(kotlin.Array[] tagF,
kotlin.Array[] tagB)
public kotlin.Array[] getContig(int index)
public int getContigCount()
public short getContigLength(int index)
public byte getContigLengthInLong(int index)
public void mkFastaFile(java.lang.String fFastaFileS,
java.lang.String bFastaFileS)
Write forword and backword fasta files of PE tag for Bowtie2 alignment, the sequence is in format of index_f/b_c/n, where f means forward, b means backword, c means contig, n means no contig When contig exist, the forward and backword tags are the contig and reverse complement of the contig, respectively.
fFastaFileS - bFastaFileS - public void mkFastaFile(java.lang.String tagsFFastaFileS,
java.lang.String tagsBFastaFileS,
java.lang.String contigFastaFileS)
Write fasta files of PE tag for alignment
tagsFFastaFileS - tagsBFastaFileS - contigFastaFileS - public void orderTagsFTagsB()
Order forward and backward tags
public void contigPETags()
Make contigs from forward and backward tags
public short getTagFLength(int index)
public short getTagBLength(int index)
public int getTagSizeInLong()
protected void iniMatrix(int tagLengthInLong,
int tagNum)
Initialize the matrix of data structure extending AbstractPETags
tagLengthInLong - tagNum - public void swap(int index1,
int index2)
Swap two PE tags
index1 - index2 - public int compare(int index1,
int index2)
Compare two PE tags
index1 - index of the first PE tagindex2 - index of the second PE tagpublic void sort()
sort PE tags by Long primitive data type value