Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ wheels/
.installed.cfg
*.egg

# Data/Predictions
fovs*
model*
predictions*

# OS generated files
.DS_Store

Expand Down
8 changes: 3 additions & 5 deletions examples/download_and_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
n_images_to_download = args.n_imgs # more images the better
train_fraction = 0.75

image_save_dir = "{}/".format(os.getcwd())
image_save_dir = "{}".format(os.getcwd())
model_save_dir = "{}/model/".format(os.getcwd())
prefs_save_path = "{}/prefs.json".format(model_save_dir)

Expand Down Expand Up @@ -82,10 +82,8 @@
df = pd.DataFrame(columns=["path_tiff", "channel_signal", "channel_target"])

df["path_tiff"] = image_target_paths
df["channel_signal"] = data_manifest["ChannelNumberBrightfield"]
df["channel_target"] = data_manifest[
"ChannelNumber405"
] # this is the DNA channel for all FOVs
df["channel_signal"] = data_manifest["ChannelNumberBrightfield"].tolist()
df["channel_target"] = data_manifest["ChannelNumber405"].tolist() # this is the DNA channel for all FOVs

n_train_images = int(n_images_to_download * train_fraction)
df_train = df[:n_train_images]
Expand Down