generated from broadinstitute/image-profiling-workflow-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from broadinstitute/updates
Analysis updates
- Loading branch information
Showing
60 changed files
with
3,100 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import shutil | ||
from pathlib import Path | ||
import logging | ||
|
||
logging.basicConfig(level=logging.INFO) | ||
|
||
# Define file mappings | ||
files = [ | ||
( | ||
Path("~/Documents/GitHub/jump-profiling-recipe/outputs/stem_public/profiles_var_mad_int_featselect.parquet").expanduser(), | ||
Path("output/processed/var_mad_int_featselect/combined.parquet").expanduser(), | ||
), | ||
( | ||
Path("~/Documents/GitHub/jump-profiling-recipe/outputs/stem_public/profiles_var_mad_int.parquet").expanduser(), | ||
Path("output/processed/var_mad_int/combined.parquet").expanduser(), | ||
), | ||
( | ||
Path("~/Documents/GitHub/jump-profiling-recipe/outputs/stem/metrics/profiles_var_mad_int_featselect_ap_nonrep.parquet").expanduser(), | ||
Path("output/analysis_results/var_mad_int_featselect/metrics/ap_nonrep.parquet").expanduser(), | ||
), | ||
( | ||
Path("~/Documents/GitHub/jump-profiling-recipe/outputs/stem/metrics/profiles_var_mad_int_featselect_map_nonrep.parquet").expanduser(), | ||
Path("output/analysis_results/var_mad_int_featselect/metrics/map_nonrep.parquet").expanduser(), | ||
) | ||
] | ||
|
||
# Copy and rename files | ||
for source, target in files: | ||
if not source.exists(): | ||
logging.warning(f"Source file {source} does not exist. Skipping.") | ||
continue | ||
|
||
if target.exists(): | ||
logging.warning(f"Target file {target} already exists. Skipping.") | ||
continue | ||
|
||
target_dir = target.parent | ||
if not target_dir.exists(): | ||
try: | ||
target_dir.mkdir(parents=True, exist_ok=True) | ||
except OSError as e: | ||
logging.error(f"Error creating directory {target_dir}: {e}") | ||
continue | ||
|
||
try: | ||
shutil.copy(source, target) | ||
logging.info(f"Copied {source} to {target}") | ||
except IOError as e: | ||
logging.error(f"Error copying file {source} to {target}: {e}") |
Binary file added
BIN
+32.7 KB
...ect/cell_type_a_vs_b/neuron_vs_astro/classification_vs_significant_features.png
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
BIN
+42.2 KB
...nt_featselect/cell_type_a_vs_b/neuron_vs_astro/significant_features_control.png
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
BIN
+42.9 KB
...t_featselect/cell_type_a_vs_b/neuron_vs_astro/significant_features_deletion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...s_results/var_mad_int_featselect/cell_type_a_vs_b/neuron_vs_astro/summary_results.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...ults/var_mad_int_featselect/cell_type_a_vs_b/neuron_vs_astro/test_results_control.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...lts/var_mad_int_featselect/cell_type_a_vs_b/neuron_vs_astro/test_results_deletion.parquet
Git LFS file not shown
Binary file added
BIN
+30.4 KB
...ct/cell_type_a_vs_b/neuron_vs_progen/classification_vs_significant_features.png
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
BIN
+42.6 KB
...t_featselect/cell_type_a_vs_b/neuron_vs_progen/significant_features_control.png
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
BIN
+42.1 KB
..._featselect/cell_type_a_vs_b/neuron_vs_progen/significant_features_deletion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
..._results/var_mad_int_featselect/cell_type_a_vs_b/neuron_vs_progen/summary_results.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...lts/var_mad_int_featselect/cell_type_a_vs_b/neuron_vs_progen/test_results_control.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...ts/var_mad_int_featselect/cell_type_a_vs_b/neuron_vs_progen/test_results_deletion.parquet
Git LFS file not shown
Binary file added
BIN
+31.4 KB
...ect/cell_type_a_vs_b/progen_vs_astro/classification_vs_significant_features.png
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
BIN
+41.6 KB
...nt_featselect/cell_type_a_vs_b/progen_vs_astro/significant_features_control.png
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
BIN
+42.2 KB
...t_featselect/cell_type_a_vs_b/progen_vs_astro/significant_features_deletion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...s_results/var_mad_int_featselect/cell_type_a_vs_b/progen_vs_astro/summary_results.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...ults/var_mad_int_featselect/cell_type_a_vs_b/progen_vs_astro/test_results_control.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...lts/var_mad_int_featselect/cell_type_a_vs_b/progen_vs_astro/test_results_deletion.parquet
Git LFS file not shown
Binary file added
BIN
+32 KB
...elect/cell_type_a_vs_b/stem_vs_astro/classification_vs_significant_features.png
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
BIN
+42.2 KB
..._int_featselect/cell_type_a_vs_b/stem_vs_astro/significant_features_control.png
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
BIN
+41.6 KB
...int_featselect/cell_type_a_vs_b/stem_vs_astro/significant_features_deletion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...sis_results/var_mad_int_featselect/cell_type_a_vs_b/stem_vs_astro/summary_results.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...esults/var_mad_int_featselect/cell_type_a_vs_b/stem_vs_astro/test_results_control.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...sults/var_mad_int_featselect/cell_type_a_vs_b/stem_vs_astro/test_results_deletion.parquet
Git LFS file not shown
Binary file added
BIN
+31.6 KB
...lect/cell_type_a_vs_b/stem_vs_neuron/classification_vs_significant_features.png
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
BIN
+42.1 KB
...int_featselect/cell_type_a_vs_b/stem_vs_neuron/significant_features_control.png
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
BIN
+42.2 KB
...nt_featselect/cell_type_a_vs_b/stem_vs_neuron/significant_features_deletion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...is_results/var_mad_int_featselect/cell_type_a_vs_b/stem_vs_neuron/summary_results.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...sults/var_mad_int_featselect/cell_type_a_vs_b/stem_vs_neuron/test_results_control.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...ults/var_mad_int_featselect/cell_type_a_vs_b/stem_vs_neuron/test_results_deletion.parquet
Git LFS file not shown
Binary file added
BIN
+32.4 KB
...lect/cell_type_a_vs_b/stem_vs_progen/classification_vs_significant_features.png
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
BIN
+42.3 KB
...int_featselect/cell_type_a_vs_b/stem_vs_progen/significant_features_control.png
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
BIN
+42.9 KB
...nt_featselect/cell_type_a_vs_b/stem_vs_progen/significant_features_deletion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...is_results/var_mad_int_featselect/cell_type_a_vs_b/stem_vs_progen/summary_results.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...sults/var_mad_int_featselect/cell_type_a_vs_b/stem_vs_progen/test_results_control.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...ults/var_mad_int_featselect/cell_type_a_vs_b/stem_vs_progen/test_results_deletion.parquet
Git LFS file not shown
Binary file added
BIN
+34.7 KB
...d_int_featselect/control_vs_deletion/classification_vs_significant_features.png
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
BIN
+42.1 KB
...sults/var_mad_int_featselect/control_vs_deletion/significant_features_astro.png
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
BIN
+42.6 KB
...ults/var_mad_int_featselect/control_vs_deletion/significant_features_neuron.png
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
BIN
+43 KB
...ults/var_mad_int_featselect/control_vs_deletion/significant_features_progen.png
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
BIN
+42.2 KB
...esults/var_mad_int_featselect/control_vs_deletion/significant_features_stem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...utput/analysis_results/var_mad_int_featselect/control_vs_deletion/summary_results.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...ut/analysis_results/var_mad_int_featselect/control_vs_deletion/test_results_astro.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...t/analysis_results/var_mad_int_featselect/control_vs_deletion/test_results_neuron.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...t/analysis_results/var_mad_int_featselect/control_vs_deletion/test_results_progen.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...put/analysis_results/var_mad_int_featselect/control_vs_deletion/test_results_stem.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
5.reanalysis/output/analysis_results/var_mad_int_featselect/metrics/ap_nonrep.parquet
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
5.reanalysis/output/analysis_results/var_mad_int_featselect/metrics/map_nonrep.parquet
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
5.reanalysis/output/processed/var_mad_int_featselect/combined.parquet
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.