Metagenomic Read Mapping¶
The Metagenomic Read Mapping Service uses KMA (k-mer alignment), to align reads against antibiotic resistance genes or virulence factors. KMA maps raw reads directly against these databases and uses k-mer seeding to speed up mapping and the Needleman-Wunsch algorithm to accurately align extensions from k-mer seeds. Software for KMA was downloaded at the following location: https://bitbucket.org/genomicepidemiology/kma.
Locating the Metagenomic Read Mapping App¶
Click on the Services tab at the top of the page, and then click on Metagenomic Read Mapping.
This will open the landing page for the service.
Uploading paired end reads Please refer to the Genome Assembly Service tutorial for instructions on uploading paired-end reads.
Uploading single reads Please refer to the Genome Assembly Service tutorial for instructions on uploading single reads.
Submitting reads that are present at the Sequence Read Archive (SRA) Please refer to the Genome Assembly Service tutorial for instructions on submitting reads from the Sequence Read Archive.
Once read files have been uploaded or located, the files must be transferred prior to the job beginning. Click on the icon of an arrow within a circle. This will move your file into the Selected libraries box.
Click on the down arrow at the end of the text box under Predefined Gene Set Name to see the possible selections. The Metagenomic Mapping Read service has two gene sets to choose from. The Comprehensive Antibiotic Resistance Database (CARD) is the current gold standard for antimicrobial resistance genes. It is a manually curated resource containing high quality reference data on the molecular basis of antimicrobial resistance (AMR) that emphasizes genes, proteins and mutations that are involved in AMR. The Virulence Factor Database (VFDB) is the current gold standard reference source for virulence factors, providing up-to-date knowledge of virulence factors from various bacterial pathogens. Select either CARD or VFDB as the gene set.
A folder must be selected for the Metagenomic Read Mapping job. Begin typing a name in the text box underneath Output Folder will show all folders that match that text, or click on the down arrow to show recent folders, or clicking on the folder icon at the end of the text box will open a pop-up window where all folders can be viewed. Clicking on the desired folder will populate the text box with its name.
A name for the job must be entered in the text box under Output Name.
Submitting the Metagenomic Read Mapping job¶
After the reads and parameters have been selected, the Submit button turns blue and the job will be submitted once clicked.
A successful submission will generate a message indicating that the job has been queued.
Monitoring progress on the Jobs page¶
Click on the Jobs box at the bottom right of any BV-BRC page.
This will open the Jobs Landing page where the status of submitted jobs is displayed.
Viewing the Metagenomic Read Mapping job results¶
On the jobs page, click on the row that has the job of interest. This will populate the vertical green bar on the right with possible downstream steps, which include viewing the results of the job, or reporting an issue that was experienced (like a job failure). Click on the View icon.
This will rewrite the page to show the information about the metagenomic read mapping job, and all of the files that are produced when the pipeline runs. The information about the job submission can be seen in the table at the top of the results page. To see all the parameters that were selected when the job was submitted, click on the Parameters row.
This will show the information on what was selected when the job was originally submitted.
To examine the MetagenomicReadMappingReport.html, click on the View icon.
This page shows KMA’s standard sample report format. The fields of the output, from left-to-right, are as follows:
Template: Identifier of the template (reference gene) sequence that match the query reads
Function: Template gene function
Genome: Genome that contains template gene
Score: Global alignment score of the template
Expected: Expected alignment score if all mapping reads where smeared over all templates in the database
Template_length: Template gene length in nucleotides
Template_Identity: Percent identity between the query and template sequence, over the length of the matching query sequence
Template_Coverage: Percent of the template that is covered by the query
Query_Identity: Percent identity between the query and template sequence, over the length of the matching query sequence
Query_Coverage: Length of the matching query sequence divided by the template length
Depth: Number of times the template has been covered by the query.
q_value: Quantile from McNemars test, to test whether the current template is a significant hit.
p_value: p-value corresponding to the obtained q_value
Clicking on any of the template identifiers in the first column, called #Template, will open a Specialty Gene List View that shows all the genes in the BV-BRC that have BLAT hits to the same template gene.
Clicking on the name in the Genome column will open a new tab that shows the Genome List view, which shows all the genomes in the BV-BRC that fall under the same taxonomy of the selected name.
To see an alignment details, click on the kma.aln row and then on the View icon. This will open a text file that shows the alignment between the template and the submitted query sequence.
The kma.frag.gz file should be downloaded. It has mapping information on each mapped read, and the columns found in the download are as follows: read, number of equally well mapping templates, mapping score, start position, end position (w.r.t. template), the chosen template.
The kma.fsa can be viewed in the workspace. Select the row and click on the View icon. It shows the consensus sequence drawn from the alignment.
The kma.res file can be downloaded or viewed in the workspace. Click on the row and click on the View icon. This is the text file that matches the MetagenomicReadMapping.html file.
Clausen, P.T., F.M. Aarestrup, and O. Lund, Rapid and precise alignment of raw reads against redundant databases with KMA. BMC bioinformatics, 2018. 19(1): p. 307.
Alcock, B.P., et al., CARD 2020: antibiotic resistome surveillance with the comprehensive antibiotic resistance database. Nucleic acids research, 2020. 48(D1): p. D517-D525.
Liu, B., et al., VFDB 2019: a comparative pathogenomic platform with an interactive web interface. Nucleic acids research, 2019. 47(D1): p. D687-D692.
Kent, W.J., BLAT—the BLAST-like alignment tool. Genome research, 2002. 12(4): p. 656-664.