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

epic2-bw KeyError: 'required_flag' , doesn't appear in arg parser #68

Open
a-lahat opened this issue Jan 9, 2023 · 2 comments
Open

Comments

@a-lahat
Copy link

a-lahat commented Jan 9, 2023

Hi, I'm trying to run the following epic2-bw command and am getting a KeyError: 'required_flag'.
`epic2-bw --treatment TREATMENT --control CONTROL --genome GENOME --bin-size 100 --guess-bampe --log2fc-bigwig LOG2FC-BIGWIG-FILE

Traceback (most recent call last):
File ".../bin/epic2-bw", line 192, in
main(args)
File ".../lib/python3.7/site-packages/epic2/bigwig.py", line 113, in main
treatment_ranges = files_to_coverage(args["treatment"], args)
File ".../lib/python3.7/site-packages/epic2/bigwig.py", line 75, in files_to_coverage
ranges = file_to_ranges(f, args, "ChIP")
File ".../lib/python3.7/site-packages/epic2/bigwig.py", line 44, in file_to_binned_ranges
bin_counts, _ = files_to_bin_counts([f], args, datatype)
File "epic2/src/reads_to_bins.pyx", line 218, in epic2.src.reads_to_bins.files_to_bin_counts
File "epic2/src/reads_to_bins.pyx", line 250, in epic2.src.reads_to_bins.files_to_bin_counts
KeyError: 'required_flag'`

I noticed that:

  1. the --required-flag flag doesn't exist in the epic2-bw usage:
    usage: epic2-bw [-h] --treatment TREATMENT [TREATMENT ...] [--control CONTROL [CONTROL ...]] [--raw] [--bigwig BIGWIG] [--individual-log2fc-bigwigs INDIVIDUAL_LOG2FC_BIGWIGS] [--chip-bigwig CHIP_BIGWIG] [--input-bigwig INPUT_BIGWIG] [--log2fc-bigwig LOG2FC_BIGWIG] [--genome GENOME] [--keep-duplicates] [--bin-size BIN_SIZE] [--fragment-size FRAGMENT_SIZE] [--chromsizes CHROMSIZES] [--guess-bampe] [--mapq MAPQ] [--example] [--version]

  2. In ".../bin/epic2-bw" there is no "--required-flag" arg in the arg parser.

I'd be very grateful to hear from you on how to run the above command so that it passes this indexing:
cpp_tags = read_bampe(f, drop_duplicates, args["mapq"], args["required_flag"], args["filter_flag"])

Many thanks!

@endrebak
Copy link
Member

endrebak commented Jan 9, 2023 via email

@a-lahat
Copy link
Author

a-lahat commented Jan 17, 2023

Happy to.
Im getting - remote: Permission to biocore-ntnu/epic2.git denied to a-lahat.
Could you help with the permission and I'll push the PR?
Thanks

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