Skip to content

Commit dcb21ee

Browse files
author
Vyacheslav Brover
committed
PD-5318 --pgap can have a standard GFF format
1 parent ec2af5d commit dcb21ee

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

amrfinder.cpp

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* Dependencies: NCBI BLAST, HMMer, libcurl, gunzip (optional)
3434
*
3535
* Release changes:
36+
* 4.0.23 05/12/2025 PD-5318 --pgap: new GFF format (standard)
3637
* 4.0.22 04/14/2025 PD-5299 --protein_output works with protein gzipped files
3738
* 04/04/2025 colorize() for "include" messages
3839
* 03/25/2025 -help or -version with other parameters is an error
@@ -936,7 +937,7 @@ struct ThisApplication final : ShellApplication
936937
string amr_report_blastx;
937938
bool hmmChunks = false;
938939
bool tblastnChunks = false;
939-
const string annotS (" -gfftype " + Gff::names [(size_t) gffType] + ifS (lcl, " -lcl"));
940+
string annotS (" -gfftype " + Gff::names [(size_t) gffType] + ifS (lcl, " -lcl"));
940941
{
941942
// target ref
942943
#define BLAST_FMT "-outfmt '6 qseqid sseqid qstart qend qlen sstart send slen qseq sseq'"
@@ -1006,6 +1007,18 @@ struct ThisApplication final : ShellApplication
10061007
// gff_check
10071008
if (! emptyArg (gff) && ! contains (parm, "-bed"))
10081009
{
1010+
prog2dir ["gff_check"] = execDir;
1011+
string dnaPar;
1012+
if (! emptyArg (dna))
1013+
dnaPar = " -dna " + dna_flat;
1014+
if (gffType == Gff::pgap)
1015+
try
1016+
{
1017+
exec (fullProg ("gff_check") + gff_flat + " -gfftype " + Gff::names [(size_t) Gff::standard] + " -prot " + prot1 + dnaPar + qcS + " -log " + logFName, logFName);
1018+
gffType = Gff::standard;
1019+
annotS = " -gfftype " + Gff::names [(size_t) Gff::standard];
1020+
}
1021+
catch (...) {}
10091022
{
10101023
bool gffProtMatchP = false;
10111024
switch (gffType)
@@ -1030,14 +1043,8 @@ struct ThisApplication final : ShellApplication
10301043
if (gffProtMatchP)
10311044
gff_prot_match = " -gff_prot_match " + tmp + "/prot_match";
10321045
}
1033-
prog2dir ["gff_check"] = execDir;
1034-
string dnaPar;
1035-
if (! emptyArg (dna))
1036-
{
1037-
dnaPar = " -dna " + dna_flat;
1038-
if (gffType == Gff::pseudomonasdb)
1039-
gff_dna_match = " -gff_dna_match " + tmp + "/dna_match";
1040-
}
1046+
if (! emptyArg (dna) && gffType == Gff::pseudomonasdb)
1047+
gff_dna_match = " -gff_dna_match " + tmp + "/dna_match";
10411048
try
10421049
{
10431050
exec (fullProg ("gff_check") + gff_flat + annotS + " -prot " + prot1 + dnaPar + gff_prot_match + gff_dna_match + qcS + " -log " + logFName, logFName);

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.22
1+
4.0.23

0 commit comments

Comments
 (0)