Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: No objects to concatenate during motif_enrichment_dem Execution #449

Open
OjongTabi opened this issue Aug 16, 2024 · 1 comment

Comments

@OjongTabi
Copy link

OjongTabi commented Aug 16, 2024

Issue: ValueError: No objects to concatenate during motif_enrichment_dem Execution

scenicplus grn_inference motif_enrichment_dem \
  --region_set_folder /n/sci/SCI-004375-NYUDATA/Ojong/code/scenicplus_train_M21_1 \
  --dem_db_fname /n/sci/SCI-004375-NYUDATA/Ojong/code/scenicplus_train_M21_2/create_cisTarget_databases/M21.regions_vs_motifs.scores.feather \
  --output_fname_dem_result dem_results.hdf5 \
  --temp_dir /n/sci/SCI-004375-NYUDATA/Ojong/code/scenicplus_2024_14_8/tmp/ \
  --species Drosophila_melanogaster \
  --fraction_overlap_w_dem_database 0.4 \
  --max_bg_regions 500 \
  --genome_annotation genome_annotation.tsv \
  --balance_number_of_promoters \
  --promoter_space 1000 \
  --adjpval_thr 0.05 \
  --log2fc_thr 1.0 \
  --mean_fg_thr 0.0 \
  --motif_hit_thr 3.0 \
  --path_to_motif_annotations /n/sci/SCI-004375-NYUDATA/Ojong/code/aertslab_motif_colleciton/v10nr_clust_public/snapshots/motifs-v10-nr.flybase-m0.00001-o0.0.tbl \
  --annotation_version v10nr_clust \
  --motif_similarity_fdr 0.001 \
  --orthologous_identity_threshold 0.0 \
  --annotations_to_use Direct_annot Orthology_annot \
  --write_html \
  --output_fname_dem_html dem_results.html \
  --seed 666 \
  --n_cpu 20


Error Traceback:

joblib.externals.loky.process_executor._RemoteTraceback:
...
ValueError: No objects to concatenate

Description:
While running the motif_enrichment_dem command, I encountered a ValueError: No objects to concatenate. The error suggests that there might be an issue with the input files or parameters, but all files appear to be correctly populated and formatted. The specific section of the code where the error occurs is within the get_foreground_and_background_regions function in pycistarget.

input files
@SeppeDeWinter
Copy link
Collaborator

HI @OjongTabi

Can you calculate the overlap of your regions and the promoter regions:

promoter_annotation = genome_annotation.copy()
promoter_annotation["End"]   = promoter_annotation["Start"] + promoter_space
promoter_annotation["Start"] = promoter_annotation["Start"] - promoter_space

Best,

Seppe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants