-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Hi Max,
I'm getting an error I can't pinpoint, when running the process_experiments.py script.
I have modified my config file according to my needs, I can see the count files and i can start creating the plots. When running the scripts though, it starts correctly:
$ python $process_experiments P654_Human_experiment_config_file.txt library_tables/
No growth values--all phenotypes will be reported as log2enrichments
Accessing library information
Loading counts data
Merging experiment counts split across lanes/indexes
-generating sgRNA read count histograms
/fs/pool/pool-cox-projects-bioinformatics/AG_Murray/Monika/P654/P654_screenProcessing/Human_ScreenProcessing/P654_Human_plots/000_fig_counts_hist.png
/fs/pool/pool-cox-projects-bioinformatics/AG_Murray/Monika/P654/P654_screenProcessing/Human_ScreenProcessing/P654_Human_plots/001_fig_counts_hist.png
/fs/pool/pool-cox-projects-bioinformatics/AG_Murray/Monika/P654/P654_screenProcessing/Human_ScreenProcessing/P654_Human_plots/002_fig_counts_hist.png
/fs/pool/pool-cox-projects-bioinformatics/AG_Murray/Monika/P654/P654_screenProcessing/Human_ScreenProcessing/P654_Human_plots/003_fig_counts_hist.png
/fs/pool/pool-cox-projects-bioinformatics/AG_Murray/Monika/P654/P654_screenProcessing/Human_ScreenProcessing/P654_Human_plots/004_fig_counts_hist.png
/fs/pool/pool-cox-projects-bioinformatics/AG_Murray/Monika/P654/P654_screenProcessing/Human_ScreenProcessing/P654_Human_plots/005_fig_counts_hist.png
Computing sgRNA phenotype scores
-generating phenotype histograms and scatter plots
but then I get the following error:
Traceback (most recent call last):
File "/fs/pool/pool-cox-projects-bioinformatics/AG_Murray/Monika/ScreenProcessing-master/process_experiments.py", line 638, in <module>
processExperimentsFromConfig(
File "/fs/pool/pool-cox-projects-bioinformatics/AG_Murray/Monika/ScreenProcessing-master/process_experiments.py", line 163, in processExperimentsFromConfig
screen_analysis.countsScatter(tempDataDict, condition1, replicate, condition2, replicate,
File "/fs/gpfs41/lv02/fileset01/pool/pool-cox-projects-bioinformatics/AG_Murray/Monika/ScreenProcessing-master/screen_analysis.py", line 144, in countsScatter
result = axis.scatter(np.log2(data['counts'].loc[:, (condition_x, replicate_x)] + 1),
File "/fs/home/yeroslaviz/miniconda3/envs/screenProcessing/lib/python3.10/site-packages/matplotlib/__init__.py", line 1423, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "/fs/home/yeroslaviz/miniconda3/envs/screenProcessing/lib/python3.10/site-packages/matplotlib/axes/_axes.py", line 4538, in scatter
self._parse_scatter_color_args(
File "/fs/home/yeroslaviz/miniconda3/envs/screenProcessing/lib/python3.10/site-packages/matplotlib/axes/_axes.py", line 4336, in _parse_scatter_color_args
and isinstance(cbook._safe_first_finite(c), str)))
File "/fs/home/yeroslaviz/miniconda3/envs/screenProcessing/lib/python3.10/site-packages/matplotlib/cbook/__init__.py", line 1749, in _safe_first_finite
return next(val for val in obj if safe_isfinite(val))
StopIteration
It creates the first six plots (00 - 05) but not more.
I don't know if this has something to do with the fact, that in the config file i have this entry for the sgRNA Analysis:
###################################
## sgRNA Analysis ##
###################################
[sgrna_analysis]
condition_string =
# gamma:MH:VH
rho:MH:VH
# tau:MH:VH
This is because I don't truly have samples with and without the vector, but in a way to different T0 groups I would like to compare the fractions between them.
But this is not the main issue, the question is, can the script run with only one of the three parameters given, or do i have a different problem with my data I can't identify?
thanks for the information
Assa