public class ChromosomeMappingTools extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CDS |
static String |
CHROMOSOME |
Constructor and Description |
---|
ChromosomeMappingTools() |
Modifier and Type | Method and Description |
---|---|
static String |
formatExonStructure(GeneChromosomePosition chromosomePosition)
Pretty print the details of a GeneChromosomePosition to a String
|
static List<com.google.common.collect.Range<Integer>> |
getCDSExonRanges(GeneChromosomePosition chromPos)
Extracts the exon boundaries in CDS coordinates.
|
static int |
getCDSLength(GeneChromosomePosition chromPos)
Get the length of the CDS in nucleotides.
|
static int |
getCDSLengthForward(List<Integer> exonStarts,
List<Integer> exonEnds,
int cdsStart,
int cdsEnd)
Get the length of the coding sequence
|
static int |
getCDSLengthReverse(List<Integer> exonStarts,
List<Integer> exonEnds,
int cdsStart,
int cdsEnd)
Get the length of the coding sequence
|
static int |
getCDSPosForChromosomeCoordinate(int coordinate,
GeneChromosomePosition chromosomePosition)
I have a genomic coordinate, where is it on the mRNA
|
static int |
getCDSPosForward(int chromPos,
List<Integer> exonStarts,
List<Integer> exonEnds,
int cdsStart,
int cdsEnd)
Converts the genetic coordinate to the position of the nucleotide on the mRNA sequence for a gene
living on the forward DNA strand.
|
static int |
getCDSPosReverse(int chromPos,
List<Integer> exonStarts,
List<Integer> exonEnds,
int cdsStart,
int cdsEnd)
Converts the genetic coordinate to the position of the nucleotide on the mRNA sequence for a gene
living on the reverse DNA strand.
|
static List<com.google.common.collect.Range<Integer>> |
getCDSRegions(List<Integer> origExonStarts,
List<Integer> origExonEnds,
int cdsStart,
int cdsEnd)
Extracts the exons boundaries in CDS coordinates corresponding to the forward DNA strand.
|
static List<com.google.common.collect.Range<Integer>> |
getChromosomalRangesForCDS(GeneChromosomePosition chromPos)
Extracts the boundaries of the coding regions in chromosomal coordinates
|
static ChromPos |
getChromosomePosForCDScoordinate(int cdsNucleotidePosition,
GeneChromosomePosition chromPos)
Maps the position of a CDS nucleotide back to the genome
|
static ChromPos |
getChromPosForward(int cdsPos,
List<Integer> exonStarts,
List<Integer> exonEnds,
int cdsStart,
int cdsEnd)
Get the CDS position mapped onto the chromosome position
|
static ChromPos |
getChromPosReverse(int cdsPos,
List<Integer> exonStarts,
List<Integer> exonEnds,
int cdsStart,
int cdsEnd)
Get the CDS position mapped on the chromosome position
|
static DNASequence |
getTranscriptDNASequence(TwoBitFacade twoBitFacade,
GeneChromosomePosition gcp)
Extracts the DNA sequence transcribed from the input genetic coordinates.
|
static DNASequence |
getTranscriptDNASequence(TwoBitFacade twoBitFacade,
String chromosome,
List<Integer> exonStarts,
List<Integer> exonEnds,
int cdsStart,
int cdsEnd,
Character orientation)
Extracts the DNA sequence transcribed from the input genetic coordinates.
|
static void |
setCoordinateSystem(int baseInt) |
public static final String CHROMOSOME
public static final String CDS
public ChromosomeMappingTools()
public static void setCoordinateSystem(int baseInt)
public static String formatExonStructure(GeneChromosomePosition chromosomePosition)
chromosomePosition
- public static int getCDSLength(GeneChromosomePosition chromPos)
chromPos
- public static ChromPos getChromosomePosForCDScoordinate(int cdsNucleotidePosition, GeneChromosomePosition chromPos)
cdsNucleotidePosition
- public static ChromPos getChromPosReverse(int cdsPos, List<Integer> exonStarts, List<Integer> exonEnds, int cdsStart, int cdsEnd)
exonStarts
- exonEnds
- cdsStart
- cdsEnd
- public static ChromPos getChromPosForward(int cdsPos, List<Integer> exonStarts, List<Integer> exonEnds, int cdsStart, int cdsEnd)
exonStarts
- exonEnds
- cdsStart
- cdsEnd
- public static int getCDSLengthReverse(List<Integer> exonStarts, List<Integer> exonEnds, int cdsStart, int cdsEnd)
exonStarts
- exonEnds
- cdsStart
- cdsEnd
- public static int getCDSLengthForward(List<Integer> exonStarts, List<Integer> exonEnds, int cdsStart, int cdsEnd)
exonStarts
- exonEnds
- cdsStart
- cdsEnd
- public static List<com.google.common.collect.Range<Integer>> getCDSExonRanges(GeneChromosomePosition chromPos)
chromPos
- public static List<com.google.common.collect.Range<Integer>> getChromosomalRangesForCDS(GeneChromosomePosition chromPos)
chromPos
- public static int getCDSPosForChromosomeCoordinate(int coordinate, GeneChromosomePosition chromosomePosition)
coordinate
- chromosomePosition
- public static int getCDSPosForward(int chromPos, List<Integer> exonStarts, List<Integer> exonEnds, int cdsStart, int cdsEnd)
chromPos
- The genetic coordinate on a chromosomeexonStarts
- The list holding the genetic coordinates pointing to the start positions of the exons (including UTR regions)exonEnds
- The list holding the genetic coordinates pointing to the end positions of the exons (including UTR regions)cdsStart
- The start position of a coding regioncdsEnd
- The end position of a coding regionpublic static int getCDSPosReverse(int chromPos, List<Integer> exonStarts, List<Integer> exonEnds, int cdsStart, int cdsEnd)
chromPos
- The genetic coordinate on a chromosomeexonStarts
- The list holding the genetic coordinates pointing to the start positions of the exons (including UTR regions)exonEnds
- The list holding the genetic coordinates pointing to the end positions of the exons (including UTR regions)cdsStart
- The start position of a coding regioncdsEnd
- The end position of a coding regionpublic static List<com.google.common.collect.Range<Integer>> getCDSRegions(List<Integer> origExonStarts, List<Integer> origExonEnds, int cdsStart, int cdsEnd)
origExonStarts
- The list holding the genetic coordinates pointing to the start positions of the exons (including UTR regions)origExonEnds
- The list holding the genetic coordinates pointing to the end positions of the exons (including UTR regions)cdsStart
- The start position of a coding regioncdsEnd
- The end position of a coding regionpublic static DNASequence getTranscriptDNASequence(TwoBitFacade twoBitFacade, GeneChromosomePosition gcp) throws Exception
twoBitFacade
- the facade that provide an access to a 2bit filegcp
- The container with chromosomal positionsException
public static DNASequence getTranscriptDNASequence(TwoBitFacade twoBitFacade, String chromosome, List<Integer> exonStarts, List<Integer> exonEnds, int cdsStart, int cdsEnd, Character orientation) throws Exception
chromosome
- the name of the chromosomeexonStarts
- The list holding the genetic coordinates pointing to the start positions of the exons (including UTR regions)exonEnds
- The list holding the genetic coordinates pointing to the end positions of the exons (including UTR regions)cdsStart
- The start position of a coding regioncdsEnd
- The end position of a coding regionorientation
- The orientation of the strand where the gene is livingException
Copyright © 2000–2019 BioJava. All rights reserved.