The lines start with a letter for the well id.


On Wed, Feb 12, 2014 at 7:51 PM, adamrp <notifications@github.com> wrote:

> In user_scripts/insertplatemap.py:
>
> > +        #print line
> > +        line = line.split(',')
> > +        if 'Plate' in line[0] and line[1] != '1':
> > +            #new plate we only care about the first line
> > +            platename=line[0]
> > +            sqlstmt = "insert into plate (plate_id, plate) values (seq_plate_id.nextval, '%s');\n" % platename
> > +            sqloutfile.write(sqlstmt)
> > +        elif line[0] != '':
> > +            #this line contains barcodes
> > +            if len(line[0]) == 1:
> > +                for barcode in line[1:]:
> > +                    if barcode != '':
> > +                        try:
> > +                            barcode = int(barcode)
> > +                        except:
> > +                            continue
>
> In that case, explicitly test whether or not barcode == "BLANK" and, if
> so, continue silently. But if it something that is not "BLANK" (i.e., it
> *should* be a barcode), we do not want that to fail silently.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/qiime/qiime_web_app/pull/617/files#r9696211>
> .
>