-
Notifications
You must be signed in to change notification settings - Fork 4
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
Running pycistarget error #30
Comments
Can you show the command that you are running? I suspect that you did not format your region set correctly as it seems that the function is running for each chromosome instead of each region set. Your regions set dictionary should be a dictionary of dictionaries, see example below: for key in region_sets.keys():
print(f'{key}: {region_sets[key].keys()}')
topics_otsu: dict_keys(['Topic1', 'Topic2', 'Topic3', 'Topic4', 'Topic5', 'Topic6', 'Topic7', 'Topic8', 'Topic9', 'Topic10', 'Topic11', 'Topic12', 'Topic13', 'Topic14', 'Topic15', 'Topic16'])
topics_top_3: dict_keys(['Topic1', 'Topic2', 'Topic3', 'Topic4', 'Topic5', 'Topic6', 'Topic7', 'Topic8', 'Topic9', 'Topic10', 'Topic11', 'Topic12', 'Topic13', 'Topic14', 'Topic15', 'Topic16'])
DARs: dict_keys(['B_cells_1', 'B_cells_2', 'CD14+_Monocytes', 'CD4_T_cells', 'CD8_T_cells', 'Dendritic_cells', 'FCGR3A+_Monocytes', 'NK_cells']) Can you run the same code for you region set and provide the output? All the best, Seppe |
Hi! Thanks |
No that does not look allright. You can read your bed file like this: import pyranges as pr
regions = pr.read_bed(<PATH_TO_BED_FILE>) And produce a regions dictionary like this (in case you only have a single bed file): region_sets = {
"set1": {"bed_file1": regions}
} I hope this helps? All the best, Seppe |
When running pycistarget I get the error:
Python version: 3.8 also tried with 3.10.13
Pycistarget: 1.0.3.dev2+g81eb875
Pandas: 1.5.0
I am using the motifs from here: https://resources.aertslab.org/cistarget/motif_collections/v10nr_clust_public/snapshots/#:~:text=motifs%2Dv10%2Dnr.hgnc%2Dm0.00001%2Do0.0.tbl
https://resources.aertslab.org/cistarget/motif_collections/v10nr_clust_public/singletons/
The text was updated successfully, but these errors were encountered: