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

hicup2homer error in converting HiCPro bam file #98

Open
Lei-Guo opened this issue Dec 27, 2023 · 10 comments
Open

hicup2homer error in converting HiCPro bam file #98

Lei-Guo opened this issue Dec 27, 2023 · 10 comments

Comments

@Lei-Guo
Copy link

Lei-Guo commented Dec 27, 2023

Dear Developer,

I'm having trouble running hicup2homer to convert HiCPro bam files to Homer files. The command and errors are as below. Can you please help me? Thanks a lot.

hicup2homer BT12_hg19.bwt2pairs.bam

Processing BT12_hg19.bwt2pairs.bam

Undefined subroutine &main::get_csome_position called at hicup2homer line 104, <IN> line 2.
@Lei-Guo Lei-Guo closed this as completed Dec 27, 2023
@re2srm
Copy link

re2srm commented Jan 16, 2024

I am having the same issue. Were you able to resolve it?

Thanks

@StevenWingett
Copy link
Owner

Hi,

Just wondering, where you using the hicup2homer script in its original location (i.e. in the HiCUP folder with the script hicup_module.pm)?

If I am remembering correctly, hicup2homer uses the subroutine get_csome_position, which is found in hicup_module.pm.

Does that resolve the issue?

STeven

@re2srm
Copy link

re2srm commented Jan 16, 2024

Thanks for replying.

I was using conda installation of hicup where everything was working fine except the hicup2homer. I wasn't specifying the script location but using conda path location automatically.

I downloaded latest version of hicup manually and used the script from the folder but still got the same error. I have now downloaded hicup version 0.8.2 manually and running the script from there is working. Not sure if it is an issue with the conda environment or something in the latest version.

@lldelisle
Copy link
Contributor

Hi,
The difference between the conda version and the version from download is that in conda we are using symlink to have them in the bin directory.
Adding a line similarly to:

use hicup_module qw(get_csome_position);

in hicup2homer will solve the issue. @StevenWingett do you need a PR?

@StevenWingett
Copy link
Owner

Hi @lldelisle,

A PR would be great!

Thanks,
Steven

@StevenWingett StevenWingett reopened this Jan 23, 2024
@lldelisle
Copy link
Contributor

For me the current version of hicup2homer does not work:

Summary of my perl5 (revision 5 version 34 subversion 0) configuration:
   
  Platform:
    osname=linux
    osvers=4.19.0
    archname=x86_64-linux-gnu-thread-multi
    uname='linux localhost 4.19.0 #1 smp debian 4.19.0 x86_64 gnulinux '

I have the same error as with the conda environment...

There are 2 fixes, @StevenWingett , I let you choose:
https://github.com/lldelisle/HiCUP/tree/solve98_v1
https://github.com/lldelisle/HiCUP/tree/solve98_v2

@StevenWingett
Copy link
Owner

Hi,

Thanks for that! Actually, the second link appeared not work. Just to double-check, the second link should be:

https://github.com/lldelisle/HiCUP/tree/solve98v2

Is that correct?

Thanks,

Steven

@lldelisle
Copy link
Contributor

Yes, sorry

@hu0002lu
Copy link

hu0002lu commented Feb 1, 2024

Hi, The difference between the conda version and the version from download is that in conda we are using symlink to have them in the bin directory. Adding a line similarly to:

use hicup_module qw(get_csome_position);

in hicup2homer will solve the issue. @StevenWingett do you need a PR?

Hi I added the line to the hicup2homer script, but now it has more issues like:
Use of uninitialized value $positionR in concatenation (.) or string at /home/zh381/rds/rds-acf1004-afs-lab-rds/programs/HiCUP-0.9.2/Conversion/hicup2homer line 108, line 24578.
Argument "4<M-]M-vM-+e\n" isn't numeric in bitwise and (&) at project/programs/HiCUP-0.9.2/Conversion//hicup_module.pm line 1107, line 24580.
(got hundreds of lines of error like this, use of unintialized error), may i know how to solve the problem? Thanks!

@StevenWingett
Copy link
Owner

Hi again,

Sorry for not responding sooner, but I've been working on other projects.

lldelisle I like fix v1 the best:

https://github.com/lldelisle/HiCUP/tree/solve98_v1

Thanks very much for helping with the HiCUP project!

Best,
Steven

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

5 participants