|
| 1 | + |
| 2 | +BUCKET=XXXXXX |
| 3 | +PROJECT=XXXXXX |
| 4 | +BATCH=XXXXXX |
| 5 | + |
| 6 | +export S3_PATH="s3://${BUCKET}/projects/${PROJECT}/${BATCH}" |
| 7 | + |
| 8 | +# Inputs |
| 9 | + |
| 10 | +## SBS images |
| 11 | + |
| 12 | +parallel mkdir -p scratch/starrynight_example/Source1/Batch1/images/Plate1/20X_c{1}_SBS-{1}/ ::: 1 2 3 4 5 6 7 8 9 10 |
| 13 | + |
| 14 | +parallel --match '.*' --match '(.*) (.*) (.*)' \ |
| 15 | + aws s3 cp "${S3_PATH}/images/Plate1/20X_c{1}_SBS-{1}/Well{2.1}_Point{2.1}_{2.2}_ChannelC,A,T,G,DAPI_Seq{2.3}.ome.tiff" \ |
| 16 | + "scratch/starrynight_example/Source1/Batch1/images/Plate1/20X_c{1}_SBS-{1}/" ::: \ |
| 17 | + 1 2 3 ::: \ |
| 18 | + "A1 0000 0000" "A1 0001 0001" "A2 0000 1025" "A2 0001 1026" "B1 0000 3075" "B1 0001 3076" |
| 19 | + |
| 20 | +## Cell Painting images |
| 21 | + |
| 22 | +mkdir -p scratch/starrynight_example/Source1/Batch1/images/20X_CP_Plate1_20240319_122800_179 |
| 23 | + |
| 24 | +parallel --match '(.*) (.*) (.*)' \ |
| 25 | + aws s3 cp "${S3_PATH}/images/Plate1/20X_CP_Plate1_20240319_122800_179/Well{1.1}_Point{1.1}_{1.2}_ChannelPhalloAF750,ZO1-AF488,DAPI_Seq{1.3}.ome.tiff" \ |
| 26 | + "scratch/starrynight_example/Source1/Batch1/images/Plate1/20X_CP_Plate1_20240319_122800_179/" ::: \ |
| 27 | + "A1 0000 0000" "A1 0001 0001" "A2 0000 1025" "A2 0001 1026" "B1 0000 3075" "B1 0001 3076" |
| 28 | + |
| 29 | +# Outputs |
| 30 | + |
| 31 | +## Illumination correction images |
| 32 | + |
| 33 | +mkdir -p scratch/starrynight_example/Source1/Batch1/illum/Plate1 |
| 34 | +parallel \ |
| 35 | + aws s3 cp "${S3_PATH}/illum/Plate1/Plate1_Cycle{1}_Illum{2}.npy" "scratch/starrynight_example/Source1/Batch1/illum/Plate1/" ::: \ |
| 36 | + 1 2 3 ::: \ |
| 37 | + DNA A T G C |
| 38 | + |
| 39 | + |
| 40 | +## Cell Painting images: Illumination corrected |
| 41 | + |
| 42 | +parallel \ |
| 43 | + aws s3 cp "${S3_PATH}/images_corrected/painting/Plate1-Well{1}/Plate_Plate1_Well_Well{1}_Site_{2}_Corr{3}.tiff" \ |
| 44 | + "scratch/starrynight_example/Source1/Batch1/images_corrected/painting/Plate1-Well{1}/" ::: \ |
| 45 | + A1 A2 B1 ::: 0 1 ::: DNA Phalloidin ZO1 |
| 46 | + |
| 47 | + |
| 48 | +parallel \ |
| 49 | + aws s3 cp "${S3_PATH}/images_corrected/painting/Plate1-Well{1}/PaintingIllumApplication_{2}.csv" \ |
| 50 | + "scratch/starrynight_example/Source1/Batch1/images_corrected/painting/Plate1-Well{1}/" ::: \ |
| 51 | + A1 A2 B1 ::: Cells ConfluentRegions Experiment Image Nuclei |
| 52 | + |
| 53 | +# SBS images: Illumination aligned |
| 54 | + |
| 55 | +parallel \ |
| 56 | + aws s3 cp "${S3_PATH}/images_aligned/barcoding/Plate1-Well{1}-{2}/Plate_Plate1_Well_{1}_Site_{2}_Cycle0{3}_{4}.tiff" \ |
| 57 | + "scratch/starrynight_example/Source1/Batch1/images_aligned/barcoding/Plate1-Well{1}-{2}/" ::: \ |
| 58 | + A1 A2 B1 ::: 0 1 ::: 1 2 3 ::: A T G C DAPI |
| 59 | + |
| 60 | + |
| 61 | +parallel \ |
| 62 | + aws s3 cp "${S3_PATH}/images_aligned/barcoding/Plate1-Well{1}-{2}/BarcodingApplication_{3}.csv" \ |
| 63 | + "scratch/starrynight_example/Source1/Batch1/images_aligned/barcoding/Plate1-Well{1}-{2}/" ::: \ |
| 64 | + A1 A2 B1 ::: 0 1 ::: Experiment Image |
| 65 | + |
| 66 | +## SBS images: Illumination corrected |
| 67 | + |
| 68 | +parallel \ |
| 69 | + aws s3 cp "${S3_PATH}/images_corrected/barcoding/Plate1-Well{1}-{2}/Plate_Plate1_Well_{1}_Site_{2}_Cycle0{3}_{4}.tiff" \ |
| 70 | + "scratch/starrynight_example/Source1/Batch1/images_corrected/barcoding/Plate1-Well{1}-{2}/" ::: \ |
| 71 | + A1 A2 B1 ::: 0 1 ::: 1 2 3 ::: A T G C |
| 72 | + |
| 73 | +parallel \ |
| 74 | + aws s3 cp "${S3_PATH}/images_corrected/barcoding/Plate1-Well{1}-{2}/Plate_Plate1_Well_{1}_Site_{2}_Cycle0{3}_{4}.tiff" \ |
| 75 | + "scratch/starrynight_example/Source1/Batch1/images_corrected/barcoding/Plate1-Well{1}-{2}/" ::: \ |
| 76 | + A1 A2 B1 ::: 0 1 ::: 1 ::: DAPI |
| 77 | +# DAPI is only present in the first cycle |
| 78 | + |
| 79 | + |
| 80 | +parallel \ |
| 81 | + aws s3 cp "${S3_PATH}/images_corrected/barcoding/Plate1-Well{1}-{2}/BarcodePreprocessing_{3}.csv" \ |
| 82 | + "scratch/starrynight_example/Source1/Batch1/images_corrected/barcoding/Plate1-Well{1}-{2}/" ::: \ |
| 83 | + A1 A2 B1 ::: 0 1 ::: BarcodeFoci PreFoci Experiment Image Nuclei |
| 84 | + |
| 85 | +## Segmentation images |
| 86 | + |
| 87 | +parallel \ |
| 88 | + aws s3 cp "${S3_PATH}/images_segmentation/Plate1/Plate_Plate1_Well_Well{1}_Site_{2}_Corr{3}_SegmentCheck.png" \ |
| 89 | + "scratch/starrynight_example/Source1/Batch1/images_segmentation/Plate1/" ::: \ |
| 90 | + A1 A2 B1 ::: 0 ::: DNA |
| 91 | +# Notice the odd naming of Well |
| 92 | + |
| 93 | +parallel \ |
| 94 | + aws s3 cp "${S3_PATH}/images_segmentation/Plate1/Plate_Plate1_Well_Well{1}_Site_{2}_Corr{3}_SegmentCheck.png" \ |
| 95 | + "scratch/starrynight_example/Source1/Batch1/images_segmentation/Plate1/" ::: \ |
| 96 | + A1 A2 B1 ::: 0 ::: DNA |
| 97 | + |
| 98 | +parallel \ |
| 99 | + aws s3 cp "${S3_PATH}/images_segmentation/Plate1/SegmentationCheck_{1}.csv" \ |
| 100 | + "scratch/starrynight_example/Source1/Batch1/images_segmentation/Plate1/" ::: \ |
| 101 | + Experiment Image Nuclei Cells PreCells ConfluentRegions |
| 102 | + |
| 103 | + |
| 104 | +## Load Data CSVs |
| 105 | + |
| 106 | +export S3_PATH_WORKSPACE="s3://${BUCKET}/projects/${PROJECT}/workspace" |
| 107 | + |
| 108 | +aws s3 sync \ |
| 109 | + "${S3_PATH_WORKSPACE}/load_data_csv/${BATCH}/Plate1/" \ |
| 110 | + "scratch/starrynight_example/Source1/workspace_example/load_data_csv/Batch1/Plate1/" |
| 111 | + |
| 112 | + |
| 113 | +## Analysis CSVs |
| 114 | + |
| 115 | +parallel \ |
| 116 | + aws s3 sync \ |
| 117 | + "${S3_PATH_WORKSPACE}/analysis/${BATCH}/Plate1-Well{1}-{2}/" \ |
| 118 | + "scratch/starrynight_example/Source1/workspace_example/analysis/${BATCH}/Plate1-Well{1}-{2}/" \ |
| 119 | + --exclude \""*.csv\"" ::: \ |
| 120 | + A1 A2 B1 ::: 0 1 |
| 121 | + |
| 122 | + |
| 123 | +parallel \ |
| 124 | + aws s3 sync "${S3_PATH_WORKSPACE}/analysisfix/${BATCH}/Plate1-Well{1}-{2}/" \ |
| 125 | + "scratch/starrynight_example/Source1/workspace_example/analysis/${BATCH}/Plate1-Well{1}-{2}/" ::: \ |
| 126 | + A1 A2 B1 ::: 0 1 |
0 commit comments