public int getChromosomeID(String chromosomeKey) { int chromosomeID = chromosomeIDTree.getChromosomeID(chromosomeKey); return chromosomeID; }
public int getChromosomeID(String chromosomeKey) { int chromosomeID = chromosomeIDTree.getChromosomeID(chromosomeKey); return chromosomeID; }
private RPChromosomeRegion getChromosomeBounds(String startChromosome, int startBase, String endChromosome, int endBase) { // If the chromosome name length is > the key size we can't distinguish it if (startChromosome.length() > chromosomeIDTree.getKeySize()) { return null; } // find the chromosome ID's using the name to get a valid name key, then associated ID String startChromKey = chromosomeIDTree.getChromosomeKey(startChromosome); int startChromID = chromosomeIDTree.getChromosomeID(startChromKey); if (startChromID < 0) // mChromosome not in data? return null; String endChromKey = chromosomeIDTree.getChromosomeKey(endChromosome); int endChromID = chromosomeIDTree.getChromosomeID(endChromKey); if (endChromID < 0) // mChromosome not in data? return null; // create the bounding mChromosome region RPChromosomeRegion chromBounds = new RPChromosomeRegion(startChromID, startBase, endChromID, endBase); return chromBounds; }
private RPChromosomeRegion getChromosomeBounds(String startChromosome, int startBase, String endChromosome, int endBase) { // If the chromosome name length is > the key size we can't distinguish it if (startChromosome.length() > chromosomeIDTree.getKeySize()) { return null; } // find the chromosome ID's using the name to get a valid name key, then associated ID String startChromKey = chromosomeIDTree.getChromosomeKey(startChromosome); int startChromID = chromosomeIDTree.getChromosomeID(startChromKey); if (startChromID < 0) // mChromosome not in data? return null; String endChromKey = chromosomeIDTree.getChromosomeKey(endChromosome); int endChromID = chromosomeIDTree.getChromosomeID(endChromKey); if (endChromID < 0) // mChromosome not in data? return null; // create the bounding mChromosome region RPChromosomeRegion chromBounds = new RPChromosomeRegion(startChromID, startBase, endChromID, endBase); return chromBounds; }
private RPChromosomeRegion getChromosomeBounds(String startChromosome, int startBase, String endChromosome, int endBase) { // If the chromosome name length is > the key size we can't distinguish it if (startChromosome.length() > chromosomeIDTree.getKeySize()) { return null; } // find the chromosome ID's using the name to get a valid name key, then associated ID String startChromKey = chromosomeIDTree.getChromosomeKey(startChromosome); int startChromID = chromosomeIDTree.getChromosomeID(startChromKey); if (startChromID < 0) // mChromosome not in data? return null; String endChromKey = chromosomeIDTree.getChromosomeKey(endChromosome); int endChromID = chromosomeIDTree.getChromosomeID(endChromKey); if (endChromID < 0) // mChromosome not in data? return null; // create the bounding mChromosome region RPChromosomeRegion chromBounds = new RPChromosomeRegion(startChromID, startBase, endChromID, endBase); return chromBounds; }