Running GOMAP¶
How to run GOMAP?¶
GOMAP is run in two steps using pipeline1.py and pipleine2.py. First part of the pipeline runs the Sequence-similarity methods and domain-based methods, and FANN-GO and PANNZER. It also runs the pre-processing steps for Argot2.5. Second part of the pipeline processes results from different methods and compiles the final GO annotation dataset from all differnt approaches. The main steps are given below.
- Add the protein fasta file to
input/raw/ - Make necessary changes to the config.json file
- Update the
work_dirin the pipeline section - Update the
inputsection- Give the correct input FASTA file name
- If the fasta contains multiple transcripts per gene then put the
fasta in the
input/rawdirectory and set theraw_fastaparameter - If the fasta file contains only on transcript per gene put it in
the
input/filtdirectory, and set thefastaparameter - Update the species, inbred and version parameters for your species
- [Optional] Update the
seq-simsection- (All the files should be already processed in this section)
- [Optional] Update the
mix-methsection- (All the files and fields should be already set, except changes to database section for PANNZER )
- [Optional] Update
blastandhmmersections- This is to enable the correct number cpu threads for these software
- All other sections should only be updated if things have been drastically changed.
- execute
python pipeline1.py config.json
- The pipeline will generate a number of intermidiate output files
- Especially the mixed-method tools will require the input fasta to be split into smaller chunks. the chunks will be numbered serially. (e.g. test.1.fa, test.2.fa)
- Argot 2.5 tool will NOT be executed within the pipeline
- Submit the files in
mixed-meth/argot2.5/blastandmixed-meth/argot2.5/hmmerusing correct pairing - Extract the Argot2.5 result files for each job, in the
mixed-meth/argot2.5/resultsdirectory and rename with correct prefix
- Argot2.5 names all results as
argot_results_ts0.tsvso the file should be renamed correctly (e.g. test.1.tsv, test.2.tsv) - Please do not leave any other file in the argot2.5 results directory, otherwise it will influence certain metrics.
- execute
python pipeline2.py config.json
What are the steps needed to setup the pipeline?¶
- Install dependencies
- Install required packages for R and Python
- A shell script is provided to make the installation of the packages easy.
- Run
bash install/install_packages.shfrom GOMAP directory - Users with a python2 virtual environment please activate before running the script
- Setup MySQL database for Pannzer
- Create a database named pannzer
- Create a user names pannzer and grant all privileges on the database pannzer
- The password should be
pannzer - If you decide to change any of this, please update the config.json [mix-meth.PANNZER.database] file accordingly.
How to run the GOMAP?¶
GOMAP is run in two steps using pipeline1.py and pipleine2.py. First part of the pipeline runs the Sequence-similarity methods and domain-based methods, and FANN-GO and PANNZER. It also runs the pre-processing steps for Argot2.5. Second part of the pipeline processes results from different methods and compiles the final GO annotation dataset from all differnt approaches. The main steps are given below.
- Add the protein fasta file to
input/raw/ - Make necessary changes to the config.json file
- Update the
work_dirin the pipeline section - Update the
inputsection- Give the correct input FASTA file name
- If the fasta contains multiple transcripts per gene then put the
fasta in the
input/rawdirectory and set theraw_fastaparameter - If the fasta file contains only on transcript per gene put it in
the
input/filtdirectory, and set thefastaparameter - Update the species, inbred and version parameters for your species
- [Optional] Update the
seq-simsection- (All the files should be already processed in this section)
- [Optional] Update the
mix-methsection- (All the files and fields should be already set, except changes to database section for PANNZER )
- [Optional] Update
blastandhmmersections- This is to enable the correct number cpu threads for these software
- All other sections should only be updated if things have been drastically changed.
- execute
python pipeline1.py config.json
- The pipeline will generate a number of intermidiate output files
- Especially the mixed-method tools will require the input fasta to be split into smaller chunks. the chunks will be numbered serially. (e.g. test.1.fa, test.2.fa)
- Argot 2.5 tool will NOT be executed within the pipeline
- Submit the files in
mixed-meth/argot2.5/blastandmixed-meth/argot2.5/hmmerusing correct pairing - Extract the Argot2.5 result files for each job, in the
mixed-meth/argot2.5/resultsdirectory and rename with correct prefix
- Argot2.5 names all results as
argot_results_ts0.tsvso the file should be renamed correctly (e.g. test.1.tsv, test.2.tsv) - Please do not leave any other file in the argot2.5 results directory, otherwise it will influence certain metrics.
- execute
python pipeline2.py config.json