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

modification configs for running rnammer #20

Closed
aistBMRG opened this issue Nov 28, 2019 · 12 comments
Closed

modification configs for running rnammer #20

aistBMRG opened this issue Nov 28, 2019 · 12 comments
Labels

Comments

@aistBMRG
Copy link

Hi,

Thanks for developing dfast -- it is a great tool!

Just a small question. I wanted to use rnammer for calling of rRNA genes. It seems that can be achieved by setting a custom configuration file. However, I was not able to understand which files should be updated for that. Would it be possible to clarify? Could we also enable it as part of the command for dfast, same as in Prokka (--rnammer option)?

Thank you very much in advance.

Dieter

@nigyta
Copy link
Owner

nigyta commented Nov 28, 2019

@aistBMRG Thank you for using DFAST.

Yes, you can use rnammer by creating a custom config file.
Please follow the instruction below.

  1. Add the path to rnammer executable to $PATH environmental variable.
    (or create a symbolic link of rnammer in $DFAST_APP_ROOT/bin/Darwin/ or $DFAST_APP_ROOT/bin/Linux/)
  2. Copy $DFAST_APP_ROOT/dfc/default_config.py to rnammer_config.py
  3. Modify it as following:
        {
            # Barrnap for rRNA prediction
            "tool_name": "Barrnap",
            "target": "rRNA",
            "enabled": False,   # <--- Set this to False
             "options": {
                 # Currently, Barrnap will run with default settings.
                 # You can set parameters such as --reject and --lencutoff to cmd_options.
                 # "cmd_options": "--reject 0.4 --lencutoff 0.6"
             },
        },
        {
            # RNAmmer for rRNA prediction. By default, this is disabled.
            # Please insall RNAmmer and put it in your PATH to enable this.
            "tool_name": "RNAmmer",
            "target": "rRNA",
            "enabled": True,   # <--- Set this to True
            "options": {
                "model": "bac",  # arc/bac/euk
                "cmd_options": ""
            },
        },
  1. Invoke DFAST with --config option
dfast --genome path/to/genome.fna --config path/to/conf_rnammer.py

Alternatively, you can directly modify default_config.py. In that case, --config option is not required.

Please note that rnammer is not well tested.
Hope this helps.

@aistBMRG
Copy link
Author

Thank you very much for the prompt reply. I will try it; but may need to specify some cmd_options for rnammer.

@nigyta
Copy link
Owner

nigyta commented Nov 28, 2019

By default, rnammer is invoked with the following command,

rnammer -S bac -m tsu,lsu,ssu  -gff OUT/structural/RNAmmer.txt OUT/input/genome.fna

meaning that all kind of rRNA genes will be predicted using the parameter for bacteria.
(You can see the command by running DFAST with --debug option)

If you want to provide other options, please specify it in cmd_options, but I think leaving it blank is okay.

@aistBMRG
Copy link
Author

Ok, thanks.

nigyta added a commit that referenced this issue Feb 9, 2020
As per the pull request #25 and the issue #20, command-line options to enable GeneMarkS2, Diamond, RNAmmer have been added.
See [FAQ](docs/FAQ.md) for more details.

```
  --aligner STR         Aligner to use [ghostx(=default)|blastp|diamond]
  --use_genemarks2 STR  Use GeneMarkS2 to predict CDS instead of MGA. [auto|bact|arch]
  --use_rnammer STR     Use RNAmmer to predict rRNA instead of Barrnap. [bact|arch]
```
Note that GeneMarkS2, Diamond, RNAmmer are not bundled in the software package. If you want to use them, please install them by yourself.

Thank @AaronRuben for the PR for GeneMarkS2!
@mirajaonison
Copy link

Hi,
When I use the --use_rnammer option, I get the OUT/structural/RNAmmer.txt not found. It seams dfast does not produce the RNAmmer.txt.

Is there a way to fix that ?

Thank you already

@nigyta
Copy link
Owner

nigyta commented Jun 30, 2020

RNAmmer is not bundled in the DFAST software package. Did you install it?
Please check by typing rnammer -v
If installed properly, you got the message like This rnammer 1.2, running from '/Users/tanizawa/projects/newpipe/tooltest/rnammer'

@mirajaonison
Copy link

mirajaonison commented Jun 30, 2020

RNAmmer is installed properly, I run the tests to be sure

@nigyta
Copy link
Owner

nigyta commented Jun 30, 2020

Is it possible to send your genome file to dfast@nig.ac.jp?
I will look into it.

@mirajaonison
Copy link

Do you think it's genome related ?

@nigyta
Copy link
Owner

nigyta commented Jun 30, 2020

Did you get the result successfully without "--use_rnammer" option?
What does the log file say?

@mirajaonison
Copy link

Everything is fine without "--use_rnammer". I am sending you the genome so you can have a look at it

@nigyta
Copy link
Owner

nigyta commented Jun 30, 2020

TIPS for trouble shoot:

Check RNAmmer configuration.

# the path of the program
my $INSTALL_PATH = "/home/User/tools/rnammer";

$HMMSEARCH_BINARY = "/Users/User/tools/hmmer2/hmmer-2.3.2/src/hmmsearch";

@nigyta nigyta closed this as completed Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants