function convertCoords(wellPos) {
	// parseNumber function is used here to work both when wellPos
	// has format 'A5' as well as 'A05'
	try {
		var row = parseNumber(wellPos.toUpperCase().charCodeAt(0) - 64);
		var column = parseNumber(wellPos.substr(1));
	} catch(e) {
		throw "InvalidCoordinatesException: \"" + wellPos + "\": " + e;
	}
	if(column < 1 || column > 24 || row < 1 || row > 16) {
		throw "InvalidCoordinatesException: \"" + wellPos + "\"";
	}
	return [row, column];
}
/*
 Converts a set of plate coordinates to a row and column number,
 e.g. 'C4' returns [3, 4]
*/
Converts a set of plate coordinates to a row and column number,
e.g.
Converts a set of plate coordinates to a row and column number e . g .
function convertCoords(wellPos) {
	try {
		var row = parseNumber(wellPos.toUpperCase().charCodeAt(0) - 64);
		var column = parseNumber(wellPos.substr(1));
	} catch(e) {
		throw "InvalidCoordinatesException: \"" + wellPos + "\": " + e;
	}
	if(column < 1 || column > 24 || row < 1 || row > 16) {
		throw "InvalidCoordinatesException: \"" + wellPos + "\"";
	}
	return [row, column];
}
function convertCoords ( wellPos ) { try { var row = parseNumber ( wellPos . toUpperCase ( ) . charCodeAt ( 0 ) - 64 ) ; var column = parseNumber ( wellPos . substr ( 1 ) ) ; } catch ( e ) { throw "InvalidCoordinatesException: \"" + wellPos + "\": " + e ; } if ( column < 1 || column > 24 || row < 1 || row > 16 ) { throw "InvalidCoordinatesException: \"" + wellPos + "\"" ; } return [ row , column ] ; }
Converts a set of plate coordinates to a row and column number,
e.g.
Converts a set of plate coordinates to a row and column number e . g .
// parseNumber function is used here to work both when wellPos // has format 'A5' as well as 'A05'