public class GeneTranscriptRelationships extends Object
| Modifier and Type | Field and Description |
|---|---|
protected edu.cornell.med.icb.identifier.IndexedIdentifier |
geneId2Index |
| Constructor and Description |
|---|
GeneTranscriptRelationships() |
GeneTranscriptRelationships(edu.cornell.med.icb.identifier.IndexedIdentifier geneIndices) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRelationship(int geneIndex,
int transcriptIndex) |
void |
addRelationship(it.unimi.dsi.lang.MutableString geneId,
int transcriptIndex) |
it.unimi.dsi.fastutil.ints.IntSet |
gene2Transcripts(it.unimi.dsi.fastutil.ints.IntSet genes)
Converts a set of genes to a set of transcripts.
|
it.unimi.dsi.lang.MutableString |
getGeneId(int geneIndex)
Obtains the gene id from a gene index.
|
protected int |
getGeneIndex(it.unimi.dsi.lang.MutableString geneId)
Get the index of a gene.
|
int |
getNumberOfGenes()
Returns the number of genes associated with transcripts.
|
it.unimi.dsi.fastutil.ints.IntSet |
getTranscriptSet(int geneIndex)
Get the set of transcript indices for that that gene.
|
it.unimi.dsi.fastutil.ints.IntSet |
getTranscriptSet(it.unimi.dsi.lang.MutableString geneId)
Get the set of transcript indices for that that gene.
|
edu.cornell.med.icb.identifier.IndexedIdentifier |
load(String geneTranscriptRelFilename)
Loads the relationships from a tab delimited file.
|
int |
transcript2Gene(int transcriptIndex) |
it.unimi.dsi.fastutil.ints.IntSet |
transcript2Genes(int[] transcriptIndices) |
protected final edu.cornell.med.icb.identifier.IndexedIdentifier geneId2Index
public GeneTranscriptRelationships()
public GeneTranscriptRelationships(edu.cornell.med.icb.identifier.IndexedIdentifier geneIndices)
public int getNumberOfGenes()
public void addRelationship(it.unimi.dsi.lang.MutableString geneId,
int transcriptIndex)
public void addRelationship(int geneIndex,
int transcriptIndex)
protected int getGeneIndex(it.unimi.dsi.lang.MutableString geneId)
geneId - Identifier of the gene.public it.unimi.dsi.lang.MutableString getGeneId(int geneIndex)
geneIndex - Index of the gene.public it.unimi.dsi.fastutil.ints.IntSet getTranscriptSet(it.unimi.dsi.lang.MutableString geneId)
geneId - Gene idpublic it.unimi.dsi.fastutil.ints.IntSet getTranscriptSet(int geneIndex)
geneIndex - Index of the genepublic it.unimi.dsi.fastutil.ints.IntSet transcript2Genes(int[] transcriptIndices)
public int transcript2Gene(int transcriptIndex)
public it.unimi.dsi.fastutil.ints.IntSet gene2Transcripts(it.unimi.dsi.fastutil.ints.IntSet genes)
genes - Genes to convert.public edu.cornell.med.icb.identifier.IndexedIdentifier load(String geneTranscriptRelFilename) throws FileNotFoundException
geneTranscriptRelFilename - FileNotFoundException - If the relationship file is not found.Copyright © 2017 Campagne Laboratory. All rights reserved.