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

agat_sp_split_by_level2_feature Bus error #36

Closed
ViriatoII opened this issue Apr 22, 2020 · 6 comments
Closed

agat_sp_split_by_level2_feature Bus error #36

ViriatoII opened this issue Apr 22, 2020 · 6 comments

Comments

@ViriatoII
Copy link

ViriatoII commented Apr 22, 2020

Hi!

I keep having this Bus error. Is it related to memory? I'm using 20 Gbs memory in a PBSpro cluster.

This happened sometimes when using agat installed with conda and also when running your nextflow pipeline.

agat_sp_split_by_level2_feature.pl -g MPI_run.all.gff -o maker_results_noAbinitio_clean
Command error:
  .command.sh: line 2: 86004 Bus error   

error exit status (135)

@ViriatoII
Copy link
Author

I think it has to do with the output directory already existing (often when the command ran unsuccessfuly before and created an empty folder).

The function doesn't know how to deal with this and crashes in a bus error.

@Juke34
Copy link
Collaborator

Juke34 commented Apr 22, 2020

I don't think the problem is related to AGAT. You can try to run the command standalone (outside the nextflow pipeline) to check if it is really related to AGAT. (you must activate the AGAT Conda env which is somewhere is the work dir, or install your own AGAT conda env)

@ViriatoII
Copy link
Author

Hi!
Standalone now it worked. Generated 2 files:
1181933698 22. Apr 13:34 match_part.gff
72231711 22. Apr 13:34 mrna.gff

So is this a nextflow problem? That pipeline comes with it's own version of agat and automatically activates that environment, as I can see:

source $(conda info --json | awk '/conda_prefix/ { gsub(/"|,/, "", $2); print $2 }')/bin/activate home/annotation_project/scratch/nxf_work/conda/agat-6b6131ed4ecf41887a64062ec60a9397  

But I remember having this bus error a couple of months ago, and then I was only using agat standalone.

@Juke34
Copy link
Collaborator

Juke34 commented Apr 22, 2020

Ok probably memory issue. All AGAT scripts with _sp_ in the name load the file into memory, that could end to take ~6 time the size of the file in memory. So for 1Gb file it can take ~6 Gb in memory. It sounds you set up 2gb in your pbs profile, and your file is big. So there is not enough memory apparently. Either increase the memory size, or clean your GFF file first. Indeed it sounds to contain lot of unnecessary data (what end up in the match file). To clean it use a awk command and keep only what is maker in the 3rd column.

@Juke34
Copy link
Collaborator

Juke34 commented Apr 22, 2020

Sorry I meant 2nd column!

@NBISweden NBISweden deleted a comment from ViriatoII Apr 23, 2020
@Juke34
Copy link
Collaborator

Juke34 commented Apr 23, 2020

I moved your last comment in a new issue (#37).
I consider this one resolved.

@Juke34 Juke34 closed this as completed Apr 23, 2020
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