Build hybrid sequence 2mL/15mL using seqAdd

Hi everyone,

Small bug here that blocks me:

Using an excel, I want to efficiently build a sequence on the fly that encompass 2 tubes racks: 1 rack 2mL, 1 rack 15mL. I did it in a very complex way and I am trying to get that done smoothly in a few lines. Basically:

The user uploads his CSV using a prompt. The CSV contains a column that specifies the tube type with which we are dealing:

I iterate over the file, read and load all the info into arrays. Everything works fine.

On my deck, I have 2 tube racks:
-tubes_2mL_to_aliquot
-tubes_15mL_to_aliquot

It is on those racks that I want to create the hybrid sequence. To do so, I create 2 variables that correspond to those tube racks, along with 2 variables for the positions on those respective racks:

While reading my file line by line, if the sample_content type is a tube 2mL, add it to the rack 2mL at the position 1, otherwise, add it to the rack 15mL at the position 1: Then, add +1 to the position to generate the next position:

The sequence is visible in my variables panel:
image

After checking, everything looks fine:

Still, I get this error:

Any idea?
Regards,

1 Like

I think I got it: Converting my positions into a str as SeqAdd takes Str for positions:

Will leave it here in case someone needs it one day.

2 Likes