public static int getCDSPosForChromosomeCoordinate(int coordinate, GeneChromosomePosition chromosomePosition) {

		if ( chromosomePosition.getOrientation() == '+')
			return getCDSPosForward(coordinate,
					chromosomePosition.getExonStarts(),
					chromosomePosition.getExonEnds(),
					chromosomePosition.getCdsStart(),
					chromosomePosition.getCdsEnd());

		return getCDSPosReverse(coordinate,
				chromosomePosition.getExonStarts(),
				chromosomePosition.getExonEnds(),
				chromosomePosition.getCdsStart(),
				chromosomePosition.getCdsEnd());
	}
public static int getCDSPosForChromosomeCoordinate ( int coordinate , GeneChromosomePosition chromosomePosition ) { if ( chromosomePosition . getOrientation ( ) == '+' ) return getCDSPosForward ( coordinate , chromosomePosition . getExonStarts ( ) , chromosomePosition . getExonEnds ( ) , chromosomePosition . getCdsStart ( ) , chromosomePosition . getCdsEnd ( ) ) ; return getCDSPosReverse ( coordinate , chromosomePosition . getExonStarts ( ) , chromosomePosition . getExonEnds ( ) , chromosomePosition . getCdsStart ( ) , chromosomePosition . getCdsEnd ( ) ) ; }
I have a genomic coordinate, where is it on the mRNA

@param coordinate
@param chromosomePosition
@return