Giter Site home page Giter Site logo

cellpainting_scripts's Introduction

Helper scripts for processing images using CellProfiler

Note: The README on this page has now been moved into a handbook created using this repo.

The archived version of this repo lives here (private)

cellpainting_scripts's People

Contributors

shntnu avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

stevievb yviscool

cellpainting_scripts's Issues

Support alternate image directories when building CSVs

For example, if images need to be projected before being passed into the illum etc pipelines, we ideally like to upload them into an images_unprojected folder.

We right now can solve this in one of two ways- either initially uploading to images, then doing a whole bunch of file movement after the projection pipeline finishes to get the original images into images_unprojected and the newly projected ones into images; OR by uploading to images_unprojected, softlinking that to the bucket instead, hacking the create_csv_from_xml.sh and get_plate_dir_from_id.sh files as follows, then reverting after you finish the projection.

Neither is the end of the world, but being able to pass the subdir as an optional flag (with default images to avoid breaking behavior) would be a neat addon.

git diff
diff --git a/create_csv_from_xml.sh b/create_csv_from_xml.sh
index 4713768..6f54f14 100755
--- a/create_csv_from_xml.sh
+++ b/create_csv_from_xml.sh
@@ -71,7 +71,7 @@ pe2loaddata_dir=`readlink -m ${base_dir}/software/pe2loaddata`
 
 check_path exists ${pe2loaddata_dir}
 
-image_dir=`readlink -m ${base_dir}/images/$batch_id/"${plate_dir}"/Images/`
+image_dir=`readlink -m ${base_dir}/images_unprojected/$batch_id/"${plate_dir}"/Images/`
 
 check_path exists "${image_dir}"
 
diff --git a/get_plate_dir_from_id.sh b/get_plate_dir_from_id.sh
index 5f1badb..35bc080 100755
--- a/get_plate_dir_from_id.sh
+++ b/get_plate_dir_from_id.sh
@@ -22,7 +22,7 @@ plate_id=$2
 
 topdir=../..
 
-image_dir=`readlink -e ${topdir}/images/${batch_id}/`
+image_dir=`readlink -e ${topdir}/images_unprojected/${batch_id}/`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.