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

"sqm_annot.pl" doesn't use optional parameters #540

Closed
PuspenduSardar opened this issue Sep 13, 2022 · 6 comments
Closed

"sqm_annot.pl" doesn't use optional parameters #540

PuspenduSardar opened this issue Sep 13, 2022 · 6 comments

Comments

@PuspenduSardar
Copy link

Hello!

I have used the sqm_annot.pl script for functional annotation of an assembly file. The script runs fine, but the problem is it uses the default parameters ONLY. For example, I wanted to use 86 threads with no COG annotation. According to the sqm_annot.pl help message, I used -t 86 --nocog flags. SqueezeMeta still uses the default 12 threads and produces COG annotation. Could you please let me know if there is a way to make use of these non-default parameters? It would be great if there is a way to declare the percentage of identity for the diamond and evalue.

I am using SqueezeMeta v1.5.2

Many thanks!
Regards,
Puspendu

@jtamames
Copy link
Owner

jtamames commented Sep 14, 2022

Hello Puspendu
You are right, there is not a straightforward way to specify these parameters in sqm_annot.pl. I am taking this into account to fix in in upcoming versions. What sqm_annot.pl does is calling SqueezeMeta and some SqueezeMeta scripts. SqueezeMeta uses the file parameters.txt to define its settings. You can find there the ones controlling the behavior of the Diamond homology search:

$minidentax4=40;	  #-- STEP4: Minimum identity for Diamond, for tax only (also for STEP8)
$evaluefun4=1e-03;	  #-- STEP4: evalue for Diamond, for functions only (also for STEP8)
$minidenfun4=30;	  #-- STEP4: Minimum identity for Diamond, for functions only (also for STEP8)

Change these accordingly.
The -t option is not implemented in sqm_annot.pl (it takes the default of 12 threads. For changing it, please edit line 111:
my $command="perl $scriptdir/SqueezeMeta.pl -s $tempsample -f $aadir -m sequential $blockoption --nopfam -c 0 --empty";
to:
my $command="perl $scriptdir/SqueezeMeta.pl -s $tempsample -f $aadir -m sequential $blockoption -t 86 --nocog --nopfam -c 0 --empty";
This will include also the --nocog option

Best,
J

@PuspenduSardar
Copy link
Author

Hello @jtamames,

Thank you very much for your reply and the suggestion.
I have already started an analysis, and it's running for 3 days now. Would you recommend stopping it and using restart.pl script after editing the SqueezeMeta_conf.pl that has been generated during the run? (I am not sure though if restart would work in this case).
Many thanks,

Regards,
Puspendu

@jtamames
Copy link
Owner

No, restart will not work for sqm_annot. Which step it is now in, 04?

@PuspenduSardar
Copy link
Author

Yes. blastx is running with nr db.

@jtamames
Copy link
Owner

Unfortunately there is no good way to know the progress of the blastx step. That is the most demanding step (blastx/nr), the rest of the pipeline will take less time. Consider if you want to wait a bit or rerun it setting higher number of threads.

@PuspenduSardar
Copy link
Author

Thank you very much, @jtamames.
I'll close the issue now.

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