Closed June3billion closed 2 years ago
Hello @June3billion – I have pushed a fix for this issue. I had erroneously left in a hard-corded path during testing. Please pull the latest version, test, and let me know if this resolves the issue.
Thank you for the kind response! But I just encountered another issue with the latest version...
sys:1: DtypeWarning: Columns (0) have mixed types.Specify dtype option on import or set low_memory=False.
Traceback (most recent call last):
File "indelible.py", line 210, in <module>
indelible.build_database(score_list_path, db_path, args.reference_path, config, args.priors, args.bwa_thread)
File "/NAS/data/etc/indelible/indelible/build_database.py", line 233, in build_database
priors_frame = build_priors(priors, final_frame)
File "/NAS/data/etc/indelible/indelible/build_database.py", line 43, in build_priors
priors_frame = priors_frame.drop(index=already_found)
File "/NAS/data/personal/june_dev/Tools/Python/anaconda3/lib/python3.8/site-packages/pandas/core/frame.py", line 4308, in drop
return super().drop(
File "/NAS/data/personal/june_dev/Tools/Python/anaconda3/lib/python3.8/site-packages/pandas/core/generic.py", line 4153, in drop
obj = obj._drop_axis(labels, axis, level=level, errors=errors)
File "/NAS/data/personal/june_dev/Tools/Python/anaconda3/lib/python3.8/site-packages/pandas/core/generic.py", line 4207, in _drop_axis
raise KeyError(f"{labels} not found in axis")
KeyError: "['X:153296083' 'X:153296122'] not found in axis"
I think this issue has to do with a difference in how index columns are handled in newer versions of the pandas module. I have slightly modified the function that reads priors to hopefully address this. Could you once again pull the latest version and test?
Thank you! The latest version worked well. but, I found the input MAF data (Indelible_db_10k.bed) was not reflected in the final output. The MAF column of the output file from the example data has 1. I assume that frequencies came from the input data itself... can I restrict the MAF information to the input database?
Yes, I can see why one could want the MAF information from the priors. I see two use-cases here:
Let me see about adding an option flag to retain the MAF of the prior database.
Thank you so much! I really appreciate it.
I have pushed a new build which includes a flag (--old-maf) for the database / complete commands. Could you let me know if it works for you?
Thanks!
It worked! Thank you!
Good to hear. I am going to close this issue. Please reopen if you encounter any other problems.
Dear indelible guys.
I encountered the following error
with the following command
How can I use /NAS/data/etc/indelible/data/Indelible_db_10k.bed for MAF annotation?