taborlab / Iris

The Light Program Interface
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

Add to randomizationMatrix.csv a column that clarifies Well Position (A1, A2, A3, ...) #254

Closed SynbioLucas closed 8 years ago

SynbioLucas commented 8 years ago

Leave the numbered column though for easy sorting in Excel.

SynbioLucas commented 8 years ago

@BrianLandry :

Add this column as the second column in the CSV. I used a function to figure out the coordinate, but you may not want it, I'm not sure. (I won't be committing my code since you didn't want me to.)

// Converts a well number to plate coordinates (e.g. A1, A2, etc.)
    this.getPlateCoordinates = function (wellNum) {
        var r = Math.floor(wellNum / this.cols);
        var c = wellNum % this.cols;
        var alphabet = "abcdefghijklmnopqrstuvwxyz".toUpperCase().split("");
        return alphabet[r] + (c+1)
    }

Also

Currently, the indices in the CSV are 0-indexed. We should change these (the randomization matrix column and the well number column) to 1-indexed values, which is more intuitive and consistent with the Iris interface.