project:biolab:pcr
Differences
This shows you the differences between two versions of the page.
project:biolab:pcr [2025/06/15 07:53] – created sachy | project:biolab:pcr [2025/06/15 08:06] (current) – sachy | ||
---|---|---|---|
Line 5: | Line 5: | ||
Since 2025, we have restarted our legendary efforts to have reproducible PCR results. Running workflow includes flowbox, sterile equipment, new centrifuges and thermocyclers... and of course university-grade knowledge. | Since 2025, we have restarted our legendary efforts to have reproducible PCR results. Running workflow includes flowbox, sterile equipment, new centrifuges and thermocyclers... and of course university-grade knowledge. | ||
- | TODO Vic textu | + | ==== Bio-Rad iCycler image conventer ==== |
+ | |||
+ | The iCycler software is storing images of 96-wells fluorescence activities in their own binary blob .ISI without the possibility to export to any standard format like TIFF or DICOM. So one have to hexdump and write their own conventer... | ||
+ | |||
+ | <code c isi2tiff.c> | ||
+ | // Convert BIO-RAD ISI to TIFF | ||
+ | // 16bit grayscale little-endian | ||
+ | // CC-BY-NC sachy@brmlab | ||
+ | |||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | #define ISIWIDTH 342 | ||
+ | #define TIFFWIDTH 310 | ||
+ | #define TIFFHEIGHT 240 | ||
+ | #define TIFFHEAD {0x49, | ||
+ | |||
+ | unsigned char tt[]={0x11, | ||
+ | 0x00, | ||
+ | 0x00, | ||
+ | 0x03, | ||
+ | 0x00, | ||
+ | 0x04, | ||
+ | 0x03, | ||
+ | 0x00, | ||
+ | 0x04, | ||
+ | 0x05, | ||
+ | 0x00, | ||
+ | 0x00, | ||
+ | 0x03, | ||
+ | 0x00, | ||
+ | 0x00, | ||
+ | 0x02, | ||
+ | |||
+ | int main(int argc,char **argv) | ||
+ | { | ||
+ | FILE *in=NULL; | ||
+ | FILE *out=NULL; | ||
+ | switch(argc) | ||
+ | { | ||
+ | case 2: | ||
+ | { | ||
+ | in=fopen(argv[1]," | ||
+ | out=stdout; | ||
+ | break; | ||
+ | } | ||
+ | case 3: | ||
+ | { | ||
+ | in=fopen(argv[1]," | ||
+ | out=fopen(argv[2]," | ||
+ | break; | ||
+ | } | ||
+ | default: | ||
+ | case 0: | ||
+ | case 1: | ||
+ | { | ||
+ | printf(" | ||
+ | return -1; | ||
+ | break; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | unsigned char buff[ISIWIDTH*2]; | ||
+ | unsigned char buff2[ISIWIDTH*2*2]; | ||
+ | unsigned char th[]=TIFFHEAD; | ||
+ | unsigned short h=0; | ||
+ | memset(buff, | ||
+ | fread(buff, | ||
+ | |||
+ | fwrite(th, | ||
+ | while(fread(buff, | ||
+ | { | ||
+ | memset(buff2, | ||
+ | for(int i=0; | ||
+ | memcpy(buff2+i*4, | ||
+ | |||
+ | fwrite(buff2, | ||
+ | } | ||
+ | fwrite(tt, | ||
+ | |||
+ | fclose(in); | ||
+ | fclose(out); | ||
+ | return 0; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | FIXME TODO Vic textu | ||
project/biolab/pcr.txt · Last modified: 2025/06/15 08:06 by sachy