cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
JoffJones
Level II

JSL / Add-in: Assign Microtiter Plate Info to a Design

I am working on a script that adds the rows and columns of microtiter plate to a  JMP design.

 

The ideal scenario would be that this becomes a add-in, so that once an individual has generated a design they can then assign the correct Plate number, Row name, and Column number corresponding to a plate of their choosing (96, 384, 1536 wells) and omitting as many edge columns or rows as they like. This last step is important because often individuals leave the edge rows/columns empty because they are vulnerable to edge effects.

 

The script currently takes the example data (384 well plate design without the edge wells), collects user inputs on number of plates, rows, & columns, and then loops over them to assign the correct values to the rows in the design file. Then it saves the new file with this data added.

 

There are few things that I would really appreciate support with:

  • Get Default Directory is not getting the working directory where the JSL is located
  • Select the data file from a browser like pop up
  • Implement as an Add-in

 

Many thanks!
Joff

2 REPLIES 2
jthi
Super User

Re: JSL / Add-in: Assign Microtiter Plate Info to a Design

You can use Pick File() to let user select a file (it will return "" if user cancels, so check for that). I think Get Default Directory() should work if the script file is saved. The location might be a bit weird if you turn it into an add-in so I would maybe consider using something else (for example use path variable $DOCUMENTS and create new directory there when user runs the script). For add-in implementation I would suggest using Add-In Manager 

-Jarmo
JoffJones
Level II

Re: JSL / Add-in: Assign Microtiter Plate Info to a Design

Thanks @jthi! The Pick File function works perfectly. I also moved Get Default Directory() to the beginning of the script and now it returns the script path. Previously it was returning the same path as $DOCUMENTS, when I used in within the New Window()