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

mergeBed ERROR: Requested column 10, but database file - only has fields 1 - 9. #356

Closed
JiahuaQu opened this issue Jul 15, 2023 · 18 comments
Labels
bug Something isn't working

Comments

@JiahuaQu
Copy link

Description of the bug

I ran the chipseq pipeline in HPC and used bowtie2 as the aligner.
After MACS2, the mergeBed step had error:
mergeBed ERROR: Requested column 10, but database file - only has fields 1 - 9.

Hope get your help. Thank you.
my.log
test.sh.o9822496.txt

Command used and terminal output

No response

Relevant files

No response

System information

nextflow # version: 22.10.6
HPC
SGE: Sun Grid Engine
Singularity
CentOS
nf-core-chipseq-2.0.0

@JiahuaQu JiahuaQu added the bug Something isn't working label Jul 15, 2023
@JoseEspinosa
Copy link
Member

Are you updating the narrow_peak parameter using a custom.config with the -c flag. It is advisable not to do so and use the-params-file flag instead as explained here.

@JiahuaQu
Copy link
Author

JiahuaQu commented Jul 17, 2023

Are you updating the narrow_peak parameter using a custom.config with the -c flag. It is advisable not to do so and use the-params-file flag instead as explained here.

Thank you for the good suggestion.
I ran the program with the -params-file flag again, but failed with new errors.
Hope get your further help. Thank you.
fail_again.txt

@JoseEspinosa
Copy link
Member

See this thread in the nf-core Slack for a possible fix. In short, the problem could be when using Singularity, that you probably need to add a custom bind path for Singularity to mount the directory.

@JiahuaQu

This comment was marked as resolved.

@JoseEspinosa

This comment was marked as resolved.

@JiahuaQu

This comment was marked as resolved.

@JoseEspinosa

This comment was marked as resolved.

@JiahuaQu

This comment was marked as resolved.

@JoseEspinosa

This comment was marked as resolved.

@ewels

This comment was marked as resolved.

@JiahuaQu
Copy link
Author

Thank you very much, Jose and Phil. I got into slack.
I will try the binding suggestion in slack and give you any feedback afterwards.

@JoseEspinosa
Copy link
Member

OK, thanks a lot for reporting 😄

@JiahuaQu
Copy link
Author

JiahuaQu commented Jul 21, 2023

A good news: the program ran with bowtie2 succeeded.
Then, I switched to try BWA, but this method still failed. I used exactly the same codes and config files except for changing bowtie2 and Bowtie2Index to bwa and BWAIndex.
Details in the below three log files.

1-error_sent_to_email.txt
2-my.log.txt
3-nohup_test.sh.o371946.txt

@JoseEspinosa
Copy link
Member

JoseEspinosa commented Jul 25, 2023

I can reproduce the error by providing a directory with no index files, so could you do the following checks to try to see which could be the reason causing the issue. If you could paste here the output of the 3 it would be awesome.

  1. Could you try to see if the index is correctly staged in the working dir by doing:
ls /wynton/group/rajkovic/jiahua/test/09-test_NextFlow-nf-core-chipseq/test/BWA/work/a2/47aba59b81052ee234b8e73e115091/
  1. Could you try to see whether the command used to retrieve the index is not working correctly working in your system:
cd /wynton/group/rajkovic/jiahua/test/09-test_NextFlow-nf-core-chipseq/test/BWA/work/a2/47aba59b81052ee234b8e73e115091
find -L ./ -name "*.amb" | sed 's/.amb//'
  1. Finally, could you check that you are really providing the necessary files in the folder you set to contain the bwa index:
ls /wynton/group/rajkovic/jiahua/software/NextFlow/genome/NCBI/GRCm38/references/Mus_musculus/NCBI/GRCm38/Sequence/BWAIndex

@JiahuaQu
Copy link
Author

Thank you for the suggestion. The below are my output:

  1. Could you try to see if the index is correctly staged in the working dir by doing:
ls /wynton/group/rajkovic/jiahua/test/09-test_NextFlow-nf-core-chipseq/test/BWA/work/a2/47aba59b81052ee234b8e73e115091/

image

  1. Could you try to see whether the command used to retrieve the index is not working correctly working in your system:
cd /wynton/group/rajkovic/jiahua/test/09-test_NextFlow-nf-core-chipseq/test/BWA/work/a2/47aba59b81052ee234b8e73e115091
find -L ./ -name "*.amb" | sed 's/.amb//'

image

  1. Finally, could you check that you are really providing the necessary files in the folder you set to contain the bwa index:
ls /wynton/group/rajkovic/jiahua/software/NextFlow/genome/NCBI/GRCm38/references/Mus_musculus/NCBI/GRCm38/Sequence/BWAIndex

image

I found there are additional two versions of BWAIndex inside the first level of BWAIndex folder, version0.5.x and version0.6.0, so I checked both of them too.
image

@JoseEspinosa
Copy link
Member

OK, I think actually the problem is these/version* folders inside --bwa-index path. We will try to fix it. But in the meanwhile you could provide the indexes files in a different folder and removing the version005.x and the version0.6.0 of it. Please, let us know if this fixes the issue.

@JiahuaQu
Copy link
Author

JiahuaQu commented Jul 25, 2023

I did as you suggested and ran the pipeline successfully finally.
Thank you very much.

@JoseEspinosa
Copy link
Member

JoseEspinosa commented Jul 26, 2023

OK, nice to hear that. I will close this issue and the other one then. Please, do not hesitate in asking us if you find any other issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants