Cargando…

3GOLD: optimized Levenshtein distance for clustering third-generation sequencing data

BACKGROUND: Third-generation sequencing offers some advantages over next-generation sequencing predecessors, but with the caveat of harboring a much higher error rate. Clustering-related sequences is an essential task in modern biology. To accurately cluster sequences rich in errors, error type and...

Descripción completa

Detalles Bibliográficos
Autores principales: Logan, Robert, Fleischmann, Zoe, Annis, Sofia, Wehe, Amy Wangsness, Tilly, Jonathan L., Woods, Dori C., Khrapko, Konstantin
Formato: Online Artículo Texto
Lenguaje:English
Publicado: BioMed Central 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8934446/
https://www.ncbi.nlm.nih.gov/pubmed/35307007
http://dx.doi.org/10.1186/s12859-022-04637-7
_version_ 1784671850594304000
author Logan, Robert
Fleischmann, Zoe
Annis, Sofia
Wehe, Amy Wangsness
Tilly, Jonathan L.
Woods, Dori C.
Khrapko, Konstantin
author_facet Logan, Robert
Fleischmann, Zoe
Annis, Sofia
Wehe, Amy Wangsness
Tilly, Jonathan L.
Woods, Dori C.
Khrapko, Konstantin
author_sort Logan, Robert
collection PubMed
description BACKGROUND: Third-generation sequencing offers some advantages over next-generation sequencing predecessors, but with the caveat of harboring a much higher error rate. Clustering-related sequences is an essential task in modern biology. To accurately cluster sequences rich in errors, error type and frequency need to be accounted for. Levenshtein distance is a well-established mathematical algorithm for measuring the edit distance between words and can specifically weight insertions, deletions and substitutions. However, there are drawbacks to using Levenshtein distance in a biological context and hence has rarely been used for this purpose. We present novel modifications to the Levenshtein distance algorithm to optimize it for clustering error-rich biological sequencing data. RESULTS: We successfully introduced a bidirectional frameshift allowance with end-user determined accommodation caps combined with weighted error discrimination. Furthermore, our modifications dramatically improved the computational speed of Levenstein distance. For simulated ONT MinION and PacBio Sequel datasets, the average clustering sensitivity for 3GOLD was 41.45% (S.D. 10.39) higher than Sequence-Levenstein distance, 52.14% (S.D. 9.43) higher than Levenshtein distance, 55.93% (S.D. 8.67) higher than Starcode, 42.68% (S.D. 8.09) higher than CD-HIT-EST and 61.49% (S.D. 7.81) higher than DNACLUST. For biological ONT MinION data, 3GOLD clustering sensitivity was 27.99% higher than Sequence-Levenstein distance, 52.76% higher than Levenshtein distance, 56.39% higher than Starcode, 48% higher than CD-HIT-EST and 70.4% higher than DNACLUST. CONCLUSION: Our modifications to Levenshtein distance have improved its speed and accuracy compared to the classic Levenshtein distance, Sequence-Levenshtein distance and other commonly used clustering approaches on simulated and biological third-generation sequenced datasets. Our clustering approach is appropriate for datasets of unknown cluster centroids, such as those generated with unique molecular identifiers as well as known centroids such as barcoded datasets. A strength of our approach is high accuracy in resolving small clusters and mitigating the number of singletons. SUPPLEMENTARY INFORMATION: The online version contains supplementary material available at 10.1186/s12859-022-04637-7.
format Online
Article
Text
id pubmed-8934446
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher BioMed Central
record_format MEDLINE/PubMed
spelling pubmed-89344462022-03-23 3GOLD: optimized Levenshtein distance for clustering third-generation sequencing data Logan, Robert Fleischmann, Zoe Annis, Sofia Wehe, Amy Wangsness Tilly, Jonathan L. Woods, Dori C. Khrapko, Konstantin BMC Bioinformatics Research BACKGROUND: Third-generation sequencing offers some advantages over next-generation sequencing predecessors, but with the caveat of harboring a much higher error rate. Clustering-related sequences is an essential task in modern biology. To accurately cluster sequences rich in errors, error type and frequency need to be accounted for. Levenshtein distance is a well-established mathematical algorithm for measuring the edit distance between words and can specifically weight insertions, deletions and substitutions. However, there are drawbacks to using Levenshtein distance in a biological context and hence has rarely been used for this purpose. We present novel modifications to the Levenshtein distance algorithm to optimize it for clustering error-rich biological sequencing data. RESULTS: We successfully introduced a bidirectional frameshift allowance with end-user determined accommodation caps combined with weighted error discrimination. Furthermore, our modifications dramatically improved the computational speed of Levenstein distance. For simulated ONT MinION and PacBio Sequel datasets, the average clustering sensitivity for 3GOLD was 41.45% (S.D. 10.39) higher than Sequence-Levenstein distance, 52.14% (S.D. 9.43) higher than Levenshtein distance, 55.93% (S.D. 8.67) higher than Starcode, 42.68% (S.D. 8.09) higher than CD-HIT-EST and 61.49% (S.D. 7.81) higher than DNACLUST. For biological ONT MinION data, 3GOLD clustering sensitivity was 27.99% higher than Sequence-Levenstein distance, 52.76% higher than Levenshtein distance, 56.39% higher than Starcode, 48% higher than CD-HIT-EST and 70.4% higher than DNACLUST. CONCLUSION: Our modifications to Levenshtein distance have improved its speed and accuracy compared to the classic Levenshtein distance, Sequence-Levenshtein distance and other commonly used clustering approaches on simulated and biological third-generation sequenced datasets. Our clustering approach is appropriate for datasets of unknown cluster centroids, such as those generated with unique molecular identifiers as well as known centroids such as barcoded datasets. A strength of our approach is high accuracy in resolving small clusters and mitigating the number of singletons. SUPPLEMENTARY INFORMATION: The online version contains supplementary material available at 10.1186/s12859-022-04637-7. BioMed Central 2022-03-20 /pmc/articles/PMC8934446/ /pubmed/35307007 http://dx.doi.org/10.1186/s12859-022-04637-7 Text en © The Author(s) 2022 https://creativecommons.org/licenses/by/4.0/Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) . The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/ (https://creativecommons.org/publicdomain/zero/1.0/) ) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
spellingShingle Research
Logan, Robert
Fleischmann, Zoe
Annis, Sofia
Wehe, Amy Wangsness
Tilly, Jonathan L.
Woods, Dori C.
Khrapko, Konstantin
3GOLD: optimized Levenshtein distance for clustering third-generation sequencing data
title 3GOLD: optimized Levenshtein distance for clustering third-generation sequencing data
title_full 3GOLD: optimized Levenshtein distance for clustering third-generation sequencing data
title_fullStr 3GOLD: optimized Levenshtein distance for clustering third-generation sequencing data
title_full_unstemmed 3GOLD: optimized Levenshtein distance for clustering third-generation sequencing data
title_short 3GOLD: optimized Levenshtein distance for clustering third-generation sequencing data
title_sort 3gold: optimized levenshtein distance for clustering third-generation sequencing data
topic Research
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8934446/
https://www.ncbi.nlm.nih.gov/pubmed/35307007
http://dx.doi.org/10.1186/s12859-022-04637-7
work_keys_str_mv AT loganrobert 3goldoptimizedlevenshteindistanceforclusteringthirdgenerationsequencingdata
AT fleischmannzoe 3goldoptimizedlevenshteindistanceforclusteringthirdgenerationsequencingdata
AT annissofia 3goldoptimizedlevenshteindistanceforclusteringthirdgenerationsequencingdata
AT weheamywangsness 3goldoptimizedlevenshteindistanceforclusteringthirdgenerationsequencingdata
AT tillyjonathanl 3goldoptimizedlevenshteindistanceforclusteringthirdgenerationsequencingdata
AT woodsdoric 3goldoptimizedlevenshteindistanceforclusteringthirdgenerationsequencingdata
AT khrapkokonstantin 3goldoptimizedlevenshteindistanceforclusteringthirdgenerationsequencingdata