Closed dirkjanvw closed 9 months ago
Hi,
Thank you for using AGAT and reporting this issue. This is indeed a bug I think Introduced quite recently. It push a fix soon.
Best regards, /Jacques
Thanks a lot for the fast fix! When do you plan on making a new release so I can easily install it via bioconda? For testing it I can create a custom singularity image but I think a new release would be easier :)
I tried creating the custom singularity image by following the manual installation instructions in the README, but I failed:
Bootstrap: docker
From: r-base:4.3.2
%post
apt-get update
apt-get install -y git
apt-get install -y libbio-perl-perl libclone-perl libgraph-perl liblwp-useragent-determined-perl libstatistics-r-perl libcarp-clan-perl libsort-naturally-perl libfile-share-perl libfile-sharedir-install-perl libyaml-perl liblwp-protocol-https-perl libstatistics-r-perl
%post
apt-get install -y perl-modules cpanminus
cpanm Bio::DB::Fasta Bio::DB::Taxonomy Bio::OntologyIO::obo Bio::Ontology::OntologyEngineI Bio::Seq Bio::SeqIO Bio::Tools::CodonTable Bio::Tools::GFF Carp Clone Cwd Exporter File::Basename File::Copy File::Share Getopt::Long IO::File IPC::Open2 YAML LWP::UserAgent LWP::Protocol::https List::MoreUtils Moose POSIX Pod::Usage Scalar::Util Sort::Naturally Term::ProgressBar Time::Piece Time::Seconds Try::Tiny URI::Escape
%post
cd /opt
git clone https://github.com/NBISweden/AGAT.git
cd AGAT
git checkout 180374e
perl Makefile.PL
make
make test
make install
%environment
export PERL5LIB="/opt/AGAT/blib/lib/:$PERL5LIB"
It fails at make test
, but when I leave out make test
it also fails because:
Undefined subroutine &main::prepare_gffout called at /usr/local/bin/agat_sp_complement_annotations.pl line 55.
I do not know if I will have time to make release soon. Why do you use a r-base image in your container? Maybe you will have better chance with an simple ubuntu OS. Otherwise what you can do is to install the last version via conda, activate the env then run
git clone https://github.com/NBISweden/AGAT.git cd AGAT perl Makefile.PL make make test make install
I thought the r-base would be the best choice since R is needed for some plots, but I also tested a perl base and it doesn't work either.
Anyway, with the conda install it works! I'll use that for now.
Describe the bug I would like to complement one GFF file with those non-overlapping genes from another GFF file. From the documentation it seems
agat_sp_complement_annotations.pl
is meant for this. However, when I run it, it concatenates instead of complementing.General (please complete the following information):
To Reproduce ref.gff:
add.gff:
Running AGAT as:
Expected behavior I expected the resulting gff file to only contain the reference record instead of both.
Screenshots This is what the output of AGAT looks like instead:
Additional context NA