Skip to content

Commit

Permalink
Fix and new readme (#6)
Browse files Browse the repository at this point in the history
* Fix error with wells not in uppercase

* New readme
  • Loading branch information
tlp19 committed Aug 25, 2022
1 parent fd98752 commit 5be27f5
Show file tree
Hide file tree
Showing 10 changed files with 183 additions and 146 deletions.
Binary file added docs/readme-cp-zoom.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/readme-cp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/readme-qc-channel-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/readme-qc-channel-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/readme-qc-channel-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/readme-qc-channel-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/readme-qc-channel-5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 16 additions & 9 deletions lumos/picasso.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,15 504,22 @@ def picasso_generate_plate_image(
well_list = sorted(data_df["well"].unique())

# Handle the single-well request
if single_well and single_well not in well_list:
logger.error("Single-well parameter not a valid well")
logger.err_print(f"ERROR: {single_well} is not a valid well.",
color='bright_red')
sys.exit(1)
elif single_well:
# Override the list of wells to be rendered
# with the single well
well_list = [single_well]
if single_well:
if single_well in well_list:
# Override the list of wells to be rendered
# with the single well
well_list = [single_well]
elif single_well.upper() in well_list:
# Also accept if the well was not written in uppercase
well_list = [single_well.upper()]
elif single_well.lower() in well_list:
# Also accept if the well was not written in lowercase
well_list = [single_well.lower()]
else:
logger.error("Single-well parameter not a valid well")
logger.err_print(f"ERROR: {single_well} is not a valid well.",
color='bright_red')
sys.exit(1)

# Generate the Cell-painted well images
generate_multiplexed_well_images(
Expand Down
1 change: 0 additions & 1 deletion lumoscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 499,6 @@ def cell_painting(scope, single_well, source_path, output_path, temp_path, plate
'classic' else list(config['channel_info'].keys())[:5])
)
elif scope != 'plate':
single_well = single_well.upper()
click.echo(
"Process well "
single_well
Expand Down
303 changes: 167 additions & 136 deletions readme.md

Large diffs are not rendered by default.

0 comments on commit 5be27f5

Please sign in to comment.