function parseDilutionTransfers(str) {
    var rowArray = parseCsv(str, ",");
    var diluentTransferArray = new Array();
    var sampleTransferArray = new Array();
    for(var i = 0, len = rowArray.length; i < len; i++) {
        var row = rowArray[i];
        try {
            var sampleSource = convertCoords(row[0]);
            var sampleVolume = readNumeral(row[1]);
            var sampleDestination = convertCoords(row[2]);
            var diluentSource = convertCoords("A1");
            var diluentVolume = readNumeral(row[3]) - sampleVolume;
        } catch(e) {
            throw "UnableToParseTransferTableException:" + e;
        }
        var newTip = (i != 0);
        sampleTransferArray[i] = new Transfer(sampleSource, sampleVolume,
                                              sampleDestination, newTip);
        newTip = (i == 0);
        diluentTransferArray[i] = new Transfer(diluentSource, diluentVolume,
                                               sampleDestination, newTip);
    }
    return diluentTransferArray.concat(sampleTransferArray);
}
/*
 Creates an array of Transfer objects from a csv file with format:
    sampleSource,sampleVolume,sampleDestination,finalVolume
 where sampleSource and sampleDestination are given in well coordinates, e.g. 'D4'
*/
Creates an array of Transfer objects from a csv file with format:
sampleSource,sampleVolume,sampleDestination,finalVolume
where sampleSource and sampleDestination are given in well coordinates, e.g. 'D4'
Creates an array of Transfer objects from a csv file with format : sampleSource sampleVolume sampleDestination finalVolume where sampleSource and sampleDestination are given in well coordinates e . g . ' D4 '
function parseDilutionTransfers(str) {
    var rowArray = parseCsv(str, ",");
    var diluentTransferArray = new Array();
    var sampleTransferArray = new Array();
    for(var i = 0, len = rowArray.length; i < len; i++) {
        var row = rowArray[i];
        try {
            var sampleSource = convertCoords(row[0]);
            var sampleVolume = readNumeral(row[1]);
            var sampleDestination = convertCoords(row[2]);
            var diluentSource = convertCoords("A1");
            var diluentVolume = readNumeral(row[3]) - sampleVolume;
        } catch(e) {
            throw "UnableToParseTransferTableException:" + e;
        }
        var newTip = (i != 0);
        sampleTransferArray[i] = new Transfer(sampleSource, sampleVolume,
                                              sampleDestination, newTip);
        newTip = (i == 0);
        diluentTransferArray[i] = new Transfer(diluentSource, diluentVolume,
                                               sampleDestination, newTip);
    }
    return diluentTransferArray.concat(sampleTransferArray);
}
function parseDilutionTransfers ( str ) { var rowArray = parseCsv ( str , "," ) ; var diluentTransferArray = new Array ( ) ; var sampleTransferArray = new Array ( ) ; for ( var i = 0 , len = rowArray . length ; i < len ; i ++ ) { var row = rowArray [ i ] ; try { var sampleSource = convertCoords ( row [ 0 ] ) ; var sampleVolume = readNumeral ( row [ 1 ] ) ; var sampleDestination = convertCoords ( row [ 2 ] ) ; var diluentSource = convertCoords ( "A1" ) ; var diluentVolume = readNumeral ( row [ 3 ] ) - sampleVolume ; } catch ( e ) { throw "UnableToParseTransferTableException:" + e ; } var newTip = ( i != 0 ) ; sampleTransferArray [ i ] = new Transfer ( sampleSource , sampleVolume , sampleDestination , newTip ) ; newTip = ( i == 0 ) ; diluentTransferArray [ i ] = new Transfer ( diluentSource , diluentVolume , sampleDestination , newTip ) ; } return diluentTransferArray . concat ( sampleTransferArray ) ; }
Creates an array of Transfer objects from a csv file with format:
sampleSource,sampleVolume,sampleDestination,finalVolume
where sampleSource and sampleDestination are given in well coordinates, e.g.
Creates an array of Transfer objects from a csv file with format : sampleSource sampleVolume sampleDestination finalVolume where sampleSource and sampleDestination are given in well coordinates e . g .