1807 lines
36 KiB
HTML
1807 lines
36 KiB
HTML
|
|
<!DOCTYPE html>
|
|||
|
|
<html lang="en-us" dir="ltr">
|
|||
|
|
<head>
|
|||
|
|
<meta charset="UTF-8">
|
|||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|||
|
|
<meta name="description" content="
|
|||
|
|
obicount: counting sequence records
|
|||
|
|
#
|
|||
|
|
|
|||
|
|
|
|||
|
|
Description
|
|||
|
|
#
|
|||
|
|
|
|||
|
|
Count the sequence records in a sequence file. It returns three pieces of information. The first is the number of sequence records. Each sequence record is associated with a count attribute (equal to 1 if absent), this number corresponds to the number of times that sequence has been observed in the non-dereplicated data set. In the following example, the first sequence record has no count attribute and therefore counts for 1, when the second sequence record has a count attribute equal to 2.">
|
|||
|
|
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
|
|||
|
|
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#343a40">
|
|||
|
|
<meta name="color-scheme" content="light dark"><meta property="og:url" content="http://metabar:8888/obidoc/obitools/obicount/">
|
|||
|
|
<meta property="og:site_name" content="OBITools4 documentation">
|
|||
|
|
<meta property="og:title" content="obicount">
|
|||
|
|
<meta property="og:description" content="obicount: counting sequence records # Description # Count the sequence records in a sequence file. It returns three pieces of information. The first is the number of sequence records. Each sequence record is associated with a count attribute (equal to 1 if absent), this number corresponds to the number of times that sequence has been observed in the non-dereplicated data set. In the following example, the first sequence record has no count attribute and therefore counts for 1, when the second sequence record has a count attribute equal to 2.">
|
|||
|
|
<meta property="og:locale" content="en_us">
|
|||
|
|
<meta property="og:type" content="website">
|
|||
|
|
<title>obicount | OBITools4 documentation</title>
|
|||
|
|
<link rel="icon" href="/obidoc/favicon.png" >
|
|||
|
|
<link rel="manifest" href="/obidoc/manifest.json">
|
|||
|
|
<link rel="canonical" href="http://metabar:8888/obidoc/obitools/obicount/">
|
|||
|
|
<link rel="stylesheet" href="/obidoc/book.min.5fd7b8e2d1c0ae15da279c52ff32731130386f71b58f011468f20d0056fe6b78.css" integrity="sha256-X9e44tHArhXaJ5xS/zJzETA4b3G1jwEUaPINAFb+a3g=" crossorigin="anonymous">
|
|||
|
|
<script defer src="/obidoc/fuse.min.js"></script>
|
|||
|
|
<script defer src="/obidoc/en.search.min.4da51bdd2d833922fdbc0e19df517221387fc625ffb68ee140d605b3c5b68058.js" integrity="sha256-TaUb3S2DOSL9vA4Z31FyITh/xiX/to7hQNYFs8W2gFg=" crossorigin="anonymous"></script>
|
|||
|
|
|
|||
|
|
<script defer src="/obidoc/sw.min.32af8eafce4180aa1c5dea66d99fb26ba9043ea7c7a4c706138c91d9051b285e.js" integrity="sha256-Mq+Or85BgKocXepm2Z+ya6kEPqfHpMcGE4yR2QUbKF4=" crossorigin="anonymous"></script>
|
|||
|
|
<link rel="alternate" type="application/rss+xml" href="http://metabar:8888/obidoc/obitools/obicount/index.xml" title="OBITools4 documentation" />
|
|||
|
|
<!--
|
|||
|
|
Made with Book Theme
|
|||
|
|
https://github.com/alex-shpak/hugo-book
|
|||
|
|
-->
|
|||
|
|
<link rel="stylesheet" type="text/css" href="http://metabar:8888/obidoc/hugo-cite.css" />
|
|||
|
|
</head>
|
|||
|
|
<body dir="ltr">
|
|||
|
|
<input type="checkbox" class="hidden toggle" id="menu-control" />
|
|||
|
|
<input type="checkbox" class="hidden toggle" id="toc-control" />
|
|||
|
|
<main class="container flex">
|
|||
|
|
<aside class="book-menu">
|
|||
|
|
<div class="book-menu-content">
|
|||
|
|
|
|||
|
|
<nav>
|
|||
|
|
<h2 class="book-brand">
|
|||
|
|
<a class="flex align-center" href="/obidoc/"><img src="/obidoc/obitools_logo.jpg" alt="Logo" class="book-icon" /><span>OBITools4 documentation</span>
|
|||
|
|
</a>
|
|||
|
|
</h2>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<div class="book-search hidden">
|
|||
|
|
<input type="text" id="book-search-input" placeholder="Search" aria-label="Search" maxlength="64" data-hotkeys="s/" />
|
|||
|
|
<div class="book-search-spinner hidden"></div>
|
|||
|
|
<ul id="book-search-results"></ul>
|
|||
|
|
</div>
|
|||
|
|
<script>document.querySelector(".book-search").classList.remove("hidden")</script>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<span>Docs</span>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/about/" class="">About</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/installation/" class="">Installation</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/principles/" class="">General operating principles</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-08756b4c1f14be6ee584ece005b9f621" class="toggle" />
|
|||
|
|
<label for="section-08756b4c1f14be6ee584ece005b9f621" class="flex justify-between">
|
|||
|
|
<a role="button" class="">File formats</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-933c2e64b905b84e22aa5273cea2d0bd" class="toggle" />
|
|||
|
|
<label for="section-933c2e64b905b84e22aa5273cea2d0bd" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Sequence file formats</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/formats/fasta/" class="">FASTA file format</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/formats/fastq/" class="">FASTQ file format</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/formats/genbank/" class="">GenBank Flat File format</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/formats/embl/" class="">EMBL Flat File format</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/file_format/sequence_files/csv/" class="">CSV format</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/formats/json/" class="">JSON format</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/file_format/sequence_files/annotations/" class="">Annotation of sequences</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-0258ae1c222f9a38cc1b75254c93b0f4" class="toggle" />
|
|||
|
|
<label for="section-0258ae1c222f9a38cc1b75254c93b0f4" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Taxonomy file formats</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/file_format/taxonomy_file/csv_taxdump/" class="">CSV formatted taxdump</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/file_format/taxonomy_file/ncbi_taxdump/" class="">NCBI taxdump</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/formats/csv/" class="">The CSV format</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-70b1e6e5ec7f3ccab643155fa50659b6" class="toggle" />
|
|||
|
|
<label for="section-70b1e6e5ec7f3ccab643155fa50659b6" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Patterns</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/patterns/regular/" class="">Regular Expressions</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/patterns/dnagrep/" class="">DNA Patterns</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-8223f464911a1fe6c655972143684e93" class="toggle" checked />
|
|||
|
|
<label for="section-8223f464911a1fe6c655972143684e93" class="flex justify-between">
|
|||
|
|
<a role="button" class="">The OBITools4 commands</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/commands/options/" class="">Shared command options</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-8921ea65523c266b128dd4263232b0fc" class="toggle" checked />
|
|||
|
|
<label for="section-8921ea65523c266b128dd4263232b0fc" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Basics</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obiannotate/" class="">obiannotate</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obicomplement/" class="">obicomplement</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obiconvert/" class="">obiconvert</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obicount/" class="active">obicount</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obicsv/" class="">obicsv</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obidemerge/" class="">obidemerge</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obidistribute/" class="">obidistribute</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obigrep/" class="">obigrep</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obijoin/" class="">obijoin</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obimatrix/" class="">obimatrix</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obisplit/" class="">obisplit</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obisummary/" class="">obisummary</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obiuniq/" class="">obiuniq</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-dbdf1bb5377572439394e60e08c30f50" class="toggle" />
|
|||
|
|
<label for="section-dbdf1bb5377572439394e60e08c30f50" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Demultiplexing samples</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obimultiplex/" class="">obimultiplex</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obitagpcr/" class="">obitagpcr</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-aa98fedd067b51150db59691a8ea8edd" class="toggle" />
|
|||
|
|
<label for="section-aa98fedd067b51150db59691a8ea8edd" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Sequence alignments</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obiclean/" class="">obiclean</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-7433746525d8c2b29b033f765c869acd" class="toggle" />
|
|||
|
|
<label for="section-7433746525d8c2b29b033f765c869acd" class="flex justify-between">
|
|||
|
|
<a href="/obidoc/obitools/obipairing/" class="">obipairing</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/commands/alignments/obipairing/fasta-like/" class="">The FASTA-like alignment</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/commands/alignments/obipairing/exact-alignment/" class="">Exact alignment</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obipcr/" class="">obipcr</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obirefidx/" class="">obirefidx</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obitag/" class="">obitag</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-5746f699d10490780dec8e30ab2dd3ce" class="toggle" />
|
|||
|
|
<label for="section-5746f699d10490780dec8e30ab2dd3ce" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Taxonomy</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obitaxonomy/" class="">obitaxonomy</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-3f50c4fe7ab436a56ae92897d5444956" class="toggle" />
|
|||
|
|
<label for="section-3f50c4fe7ab436a56ae92897d5444956" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Advanced tools</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obiscript/" class="">obiscript</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-549be3934679fcb82a232f6bd5435563" class="toggle" />
|
|||
|
|
<label for="section-549be3934679fcb82a232f6bd5435563" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Others</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obimicrosat/" class="">obimicrosat</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-ceca4455173761e30cbc0a6dc2327167" class="toggle" />
|
|||
|
|
<label for="section-ceca4455173761e30cbc0a6dc2327167" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Experimentals</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obicleandb/" class="">obicleandb</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obiconsensus/" class="">obiconsensus</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/obitools/obilandmark/" class="">obilandmark</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/commands/tags/" class="">Glossary of tags</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-9b1bcd52530c59dc4819b1f61c128f54" class="toggle" />
|
|||
|
|
<label for="section-9b1bcd52530c59dc4819b1f61c128f54" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Cookbook</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/cookbook/illumina/" class="">Analysing an Illumina data set</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/cookbook/ecoprimers/" class="">Designing new barcodes</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/cookbook/local_genbank/" class="">Prepare a local copy of Genbank</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/cookbook/reference_db/" class="">Build a reference database</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/cookbook/minion/" class="">Oxford Nanopore data analysis</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<span>Programming OBITools</span>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/programming/expression/" class="">Expression language</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-6d580829a667b5cca790b286d99a10fe" class="toggle" />
|
|||
|
|
<label for="section-6d580829a667b5cca790b286d99a10fe" class="flex justify-between">
|
|||
|
|
<a href="/obidoc/docs/programming/lua/" class="">Lua: for scripting OBITools</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<input type="checkbox" id="section-2fb081dac812d624eea5f4268fca9e26" class="toggle" />
|
|||
|
|
<label for="section-2fb081dac812d624eea5f4268fca9e26" class="flex justify-between">
|
|||
|
|
<a role="button" class="">Obitools Classes</a>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/programming/lua/obitools_classes/biosequence/" class="">BioSequence</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/programming/lua/obitools_classes/biosequenceslice/" class="">BioSequenceSlice</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/programming/lua/obitools_classes/taxonomy/" class="">Taxonomy</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/programming/lua/obitools_classes/taxon/" class="">Taxon</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<a href="/obidoc/docs/programming/lua/obitools_classes/mutex/" class="">Mutex</a>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</nav>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<script>(function(){var e=document.querySelector("aside .book-menu-content");addEventListener("beforeunload",function(){localStorage.setItem("menu.scrollTop",e.scrollTop)}),e.scrollTop=localStorage.getItem("menu.scrollTop")})()</script>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</aside>
|
|||
|
|
|
|||
|
|
<div class="book-page">
|
|||
|
|
<header class="book-header">
|
|||
|
|
|
|||
|
|
<div class="flex align-center justify-between">
|
|||
|
|
<label for="menu-control">
|
|||
|
|
<img src="/obidoc/svg/menu.svg" class="book-icon" alt="Menu" />
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
<h3>obicount</h3>
|
|||
|
|
|
|||
|
|
<label for="toc-control">
|
|||
|
|
|
|||
|
|
<img src="/obidoc/svg/toc.svg" class="book-icon" alt="Table of Contents" />
|
|||
|
|
|
|||
|
|
</label>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<aside class="hidden clearfix">
|
|||
|
|
|
|||
|
|
|
|||
|
|
<nav id="TableOfContents">
|
|||
|
|
<ul>
|
|||
|
|
<li><a href="#obicount-counting-sequence-records"><code>obicount</code>: counting sequence records</a>
|
|||
|
|
<ul>
|
|||
|
|
<li><a href="#description">Description</a></li>
|
|||
|
|
<li><a href="#synopsis">Synopsis</a></li>
|
|||
|
|
<li><a href="#options">Options</a>
|
|||
|
|
<ul>
|
|||
|
|
<li></li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
<li><a href="#examples">Examples</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</nav>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</aside>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</header>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<article class="markdown book-article"><h1 id="obicount-counting-sequence-records">
|
|||
|
|
<code>obicount</code>: counting sequence records
|
|||
|
|
<a class="anchor" href="#obicount-counting-sequence-records">#</a>
|
|||
|
|
</h1>
|
|||
|
|
<h2 id="description">
|
|||
|
|
Description
|
|||
|
|
<a class="anchor" href="#description">#</a>
|
|||
|
|
</h2>
|
|||
|
|
<p>Count the sequence records in a sequence file. It returns three pieces of information. The first is the number of sequence records. Each sequence record is associated with a <code>count</code> attribute (equal to 1 if absent), this number corresponds to the number of times that sequence has been observed in the non-dereplicated data set. In the following example, the first sequence record has no <code>count</code> attribute and therefore counts for 1, when the second sequence record has a <code>count</code> attribute equal to 2.</p>
|
|||
|
|
|
|||
|
|
<pre tabindex="0"><code class="language-fasta" data-lang="fasta">>AB061527 {"definition":"Sorex unguiculatus mitochondrial NA, complete genome.","family_name":"Soricidae","family_taxid":9376,"genus_name":"Sorex","genus_taxid":9379,"obicleandb_level":"family","obicleandb_trusted":2.2137847111025621e-13,"species_name":"Sorex unguiculatus","species_taxid":62275,"taxid":62275}
|
|||
|
|
ttagccctaaacttaggtatttaatctaacaaaaatacccgtcagagaactactagcaat
|
|||
|
|
agcttaaaactcaaaggacttggcggtgctttatatccct
|
|||
|
|
>AL355887 {"count":2,"definition":"Human chromosome 14 NA sequence BAC R-179O11 of library RPCI-11 from chromosome 14 of Homo sapiens (Human)XXKW HTG.; HTGS_ACTIVFIN.","family_name":"Hominidae","family_taxid":9604,"genus_name":"Homo","genus_taxid":9605,"obicleandb_level":"genus","obicleandb_trusted":0,"species_name":"Homo sapiens","species_taxid":9606,"taxid":9606}
|
|||
|
|
ttagccctaaactctagtagttacattaacaaaaccattcgtcagaatactacgagcaac
|
|||
|
|
agcttaaaactcaaaggacctggcagttctttatatccct
|
|||
|
|
</code></pre></td>
|
|||
|
|
|
|||
|
|
<p>Thus, the second value returned is the sum of the count values for all sequences, 3 for the presented example file. The last value is the number of nucleotides stored in the file, the sum of the sequence lengths, without accounting for the <code>count</code> tag.</p>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<script src="/obidoc/mermaid.min.js"></script>
|
|||
|
|
|
|||
|
|
<script>mermaid.initialize({
|
|||
|
|
"flowchart": {
|
|||
|
|
"useMaxWidth":true
|
|||
|
|
},
|
|||
|
|
"theme": "default"
|
|||
|
|
}
|
|||
|
|
)</script>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<pre class="mermaid workflow">
|
|||
|
|
graph TD
|
|||
|
|
A@{ shape: doc, label: "my_sequences.fastq" }
|
|||
|
|
C[obicount]
|
|||
|
|
D@{ shape: doc, label: "counts.csv" }
|
|||
|
|
A --> C:::obitools
|
|||
|
|
C --> D
|
|||
|
|
classDef obitools fill:#99d57c
|
|||
|
|
</pre>
|
|||
|
|
|
|||
|
|
<h2 id="synopsis">
|
|||
|
|
Synopsis
|
|||
|
|
<a class="anchor" href="#synopsis">#</a>
|
|||
|
|
</h2>
|
|||
|
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>obicount <span style="color:#f92672">[</span>--batch-size <int><span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--csv<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--debug<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--ecopcr<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--embl<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--fasta<span style="color:#f92672">]</span>
|
|||
|
|
</span></span><span style="display:flex;"><span> <span style="color:#f92672">[</span>--fastq<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--force-one-cpu<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--genbank<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--help|-h|-?<span style="color:#f92672">]</span>
|
|||
|
|
</span></span><span style="display:flex;"><span> <span style="color:#f92672">[</span>--input-OBI-header<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--input-json-header<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--max-cpu <int><span style="color:#f92672">]</span>
|
|||
|
|
</span></span><span style="display:flex;"><span> <span style="color:#f92672">[</span>--no-order<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--pprof<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--pprof-goroutine <int><span style="color:#f92672">]</span>
|
|||
|
|
</span></span><span style="display:flex;"><span> <span style="color:#f92672">[</span>--pprof-mutex <int><span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--reads|-r<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--silent-warning<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--solexa<span style="color:#f92672">]</span>
|
|||
|
|
</span></span><span style="display:flex;"><span> <span style="color:#f92672">[</span>--symbols|-s<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--u-to-t<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--variants|-v<span style="color:#f92672">]</span> <span style="color:#f92672">[</span>--version<span style="color:#f92672">]</span> <span style="color:#f92672">[</span><args><span style="color:#f92672">]</span>
|
|||
|
|
</span></span></code></pre></div><h2 id="options">
|
|||
|
|
Options
|
|||
|
|
<a class="anchor" href="#options">#</a>
|
|||
|
|
</h2>
|
|||
|
|
<h4 id="hahahugoshortcode20s2hbhb-specific-options">
|
|||
|
|
<a href="http://metabar:8888/obidoc/obitools/obicount/">
|
|||
|
|
<abbr title="obicount: counting sequence records"><code>obicount</code></abbr>
|
|||
|
|
</a> specific options
|
|||
|
|
<a class="anchor" href="#hahahugoshortcode20s2hbhb-specific-options">#</a>
|
|||
|
|
</h4>
|
|||
|
|
<ul>
|
|||
|
|
<li>
|
|||
|
|
<b><code class="language-bash">--variants</code></b>
|
|||
|
|
| <b><code class="language-bash">-v</code></b>
|
|||
|
|
: when present, output the only the number of sequence records in the file.
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<b><code class="language-bash">--reads</code></b>
|
|||
|
|
| <b><code class="language-bash">-r</code></b>
|
|||
|
|
: when present, output only the sum of sequence counts in the file.
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
<li>
|
|||
|
|
<b><code class="language-bash">--symbols</code></b>
|
|||
|
|
| <b><code class="language-bash">-s</code></b>
|
|||
|
|
: when present, output only the number of nucleotides in the file.
|
|||
|
|
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<p>It is possible to combine two of the above options.</p>
|
|||
|
|
<h4 id="controlling-the-input-data">
|
|||
|
|
Controlling the input data
|
|||
|
|
<a class="anchor" href="#controlling-the-input-data">#</a>
|
|||
|
|
</h4>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<I>OBITools4</I> generally recognizes the input file format. It also recognizes
|
|||
|
|
whether the input file is compressed using GZIP. But some rare files can be
|
|||
|
|
misidentified, so the following options allow the user to force the format, thus
|
|||
|
|
bypassing the format identification step.
|
|||
|
|
|
|||
|
|
<h5 id="the-file-format-options">
|
|||
|
|
The file format options
|
|||
|
|
<a class="anchor" href="#the-file-format-options">#</a>
|
|||
|
|
</h5>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
<li>
|
|||
|
|
<b><code class="language-bash">--fasta</code></b>: indicates that sequence data is in <a href="http://metabar:8888/obidoc/formats/fasta/">fasta</a> format.</li>
|
|||
|
|
<li>
|
|||
|
|
<b><code class="language-bash">--fastq</code></b>: indicates that sequence data is in <a href="http://metabar:8888/obidoc/formats/fastq/">fastq</a> format.</li>
|
|||
|
|
<li>
|
|||
|
|
<b><code class="language-bash">--embl</code></b>: indicates that sequence data is in <a href="http://metabar:8888/obidoc/formats/embl/">EMBL-ENA flatfile</a> format.</li>
|
|||
|
|
<li>
|
|||
|
|
<b><code class="language-bash">--csv</code></b>: indicates that sequence data is in <a href="http://metabar:8888/obidoc/docs/file_format/sequence_files/csv/">CSV</a> format.</li>
|
|||
|
|
<li>
|
|||
|
|
<b><code class="language-bash">--genbank</code></b>: indicates that sequence data is in <a href="http://metabar:8888/obidoc/formats/genbank/">GenBank flatfile</a> format.</li>
|
|||
|
|
<li><b><code class="language-bash">--ecopcr</code></b>: indicates that sequence data is in the old ecoPCR tabulated format.</li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
<h5 id="controlling-the-way-obitools4-are-formatting-annotations">
|
|||
|
|
Controlling the way <em>OBITools4</em> are formatting annotations
|
|||
|
|
<a class="anchor" href="#controlling-the-way-obitools4-are-formatting-annotations">#</a>
|
|||
|
|
</h5>
|
|||
|
|
|
|||
|
|
|
|||
|
|
These options only apply to the <a href="http://metabar:8888/obidoc/formats/fasta/">FASTA</a> and <a href="http://metabar:8888/obidoc/formats/fastq/">FASTQ</a> formats
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
<li><b><code class="language-bash">--input-OBI-header</code></b>: FASTA/FASTQ title line annotations follow the old OBI format.</li>
|
|||
|
|
<li><b><code class="language-bash">--input-json-header</code></b>: FASTA/FASTQ title line annotations follow the JSON format.</li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
<h5 id="controlling-quality-score-decoding">
|
|||
|
|
Controlling quality score decoding
|
|||
|
|
<a class="anchor" href="#controlling-quality-score-decoding">#</a>
|
|||
|
|
</h5>
|
|||
|
|
|
|||
|
|
|
|||
|
|
This option only applies to the <a href="http://metabar:8888/obidoc/formats/fastq/">FASTQ</a> formats
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
<li><b><code class="language-bash">--solexa</code></b>: decodes quality string according to the old Solexa specification. (default: the standard Sanger encoding is used, env: <strong>OBISSOLEXA</strong>)</li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
<h4 id="general-options">
|
|||
|
|
General options
|
|||
|
|
<a class="anchor" href="#general-options">#</a>
|
|||
|
|
</h4>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
<li><b><code class="language-bash">--help</code></b>
|
|||
|
|
| <b><code class="language-bash">-h|-?</code></b>
|
|||
|
|
: shows this help.</li>
|
|||
|
|
<li><b><code class="language-bash">--version</code></b>: prints the version and exits.</li>
|
|||
|
|
<li><b><code class="language-bash">--silent-warning</code></b>: This option tells obitools to stop displaying warnings.
|
|||
|
|
This behaviour can be controlled by setting the <strong>OBIWARNINGS</strong> environment variable.</li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<h4 id="computation-related-options">
|
|||
|
|
Computation related options
|
|||
|
|
<a class="anchor" href="#computation-related-options">#</a>
|
|||
|
|
</h4>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
<li><b><code class="language-bash">--max-cpu</code></b> <INTEGER>: <em>OBITools</em> can take advantage of your computer’s multi-core
|
|||
|
|
architecture by parallelizing the computation across all available CPUs.
|
|||
|
|
Computing on more CPUs usually requires more memory to perform the
|
|||
|
|
computation. Reducing the number of CPUs used to perform a calculation
|
|||
|
|
is also a way to indirectly control the amount of memory used by the
|
|||
|
|
process. The number of CPUs used by <em>OBITools</em> can also be controlled
|
|||
|
|
by setting the <strong>OBIMAXCPU</strong> environment variable.</li>
|
|||
|
|
<li><b><code class="language-bash">--force-one-cpu</code></b>: forces the use of a single CPU core for parallel processing (default: false).</li>
|
|||
|
|
<li><b><code class="language-bash">--batch-size</code></b> <INTEGER>: number of sequence per batch for parallel processing (default: 1000, env: <strong>OBIBATCHSIZE</strong>)</li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
<h4 id="debug-related-options">
|
|||
|
|
Debug related options
|
|||
|
|
<a class="anchor" href="#debug-related-options">#</a>
|
|||
|
|
</h4>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<ul>
|
|||
|
|
<li><b><code class="language-bash">--debug</code></b>: enables debug mode, by setting log level to debug (default: false, env: <strong>OBIDEBUG</strong>)</li>
|
|||
|
|
<li><b><code class="language-bash">--pprof</code></b>: enables pprof server. Look at the log for details. (default: false).</li>
|
|||
|
|
<li><b><code class="language-bash">--pprof-mutex</code></b> <INTEGER>: enables profiling of mutex lock. (default: 10, env: <strong>OBIPPROFMUTEX</strong>)</li>
|
|||
|
|
<li><b><code class="language-bash">--pprof-goroutine</code></b> <INTEGER>: enables profiling of goroutine blocking profile. (default: 6060, env: <strong>OBIPPROFGOROUTINE</strong>)</li>
|
|||
|
|
</ul>
|
|||
|
|
<h2 id="examples">
|
|||
|
|
Examples
|
|||
|
|
<a class="anchor" href="#examples">#</a>
|
|||
|
|
</h2>
|
|||
|
|
<p>By default, the <a href="http://metabar:8888/obidoc/obitools/obicount/">
|
|||
|
|
<abbr title="obicount: counting sequence records"><code>obicount</code></abbr>
|
|||
|
|
</a> command will output the number of sequence records (variants), sum of counts (reads), and number of nucleotides (symbols) in the sequence file.</p>
|
|||
|
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>obicount my_sequence_file.fasta
|
|||
|
|
</span></span></code></pre></div><pre tabindex="0"><code>INFO[0000] Number of workers set 16
|
|||
|
|
INFO[0000] Found 1 files to process
|
|||
|
|
INFO[0000] xxx.fastq.gz mime type: text/fastq
|
|||
|
|
|
|||
|
|
entities,n
|
|||
|
|
variants,43221
|
|||
|
|
reads,43221
|
|||
|
|
symbols,4391530
|
|||
|
|
</code></pre><p>The output is in CSV format and can be transformed into Markdown for a prettier output using the
|
|||
|
|
<a href="https://github.com/brentp/csvtomd"><code>csvtomd</code></a> command.</p>
|
|||
|
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>obicount my_sequence_file.fasta | csvtomd
|
|||
|
|
</span></span></code></pre></div><pre tabindex="0"><code>entities | n
|
|||
|
|
----------|---------
|
|||
|
|
variants | 43221
|
|||
|
|
reads | 43221
|
|||
|
|
symbols | 4391530
|
|||
|
|
</code></pre><p>The conversion can also be done with the <code>csvlook</code> command from the
|
|||
|
|
<a href="https://csvkit.readthedocs.io/">csvkit</a> package.</p>
|
|||
|
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>obicount my_sequence_file.fasta | csvlook
|
|||
|
|
</span></span></code></pre></div><pre tabindex="0"><code>| entities | n |
|
|||
|
|
| -------- | --------- |
|
|||
|
|
| variants | 43 221 |
|
|||
|
|
| reads | 43 221 |
|
|||
|
|
| symbols | 4 391 530 |
|
|||
|
|
</code></pre><p>When using the <code>--variants</code>, <code>--reads</code> or <code>--symbols</code> option, the output only contains the number(s) corresponding to the specified option(s).</p>
|
|||
|
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>obicount -v --reads my_sequence_file.fasta | csvlook
|
|||
|
|
</span></span></code></pre></div><pre tabindex="0"><code>| entities | n |
|
|||
|
|
| -------- | ------ |
|
|||
|
|
| variants | 43 221 |
|
|||
|
|
| reads | 43 221 |
|
|||
|
|
</code></pre><p>As for all the OBITools commands, a GZIP compressed input file can be used.</p>
|
|||
|
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>obicount my_sequence_file.fasta.gz | csvlook
|
|||
|
|
</span></span></code></pre></div><pre tabindex="0"><code>| entities | n |
|
|||
|
|
| -------- | --------- |
|
|||
|
|
| variants | 43 221 |
|
|||
|
|
| reads | 43 221 |
|
|||
|
|
| symbols | 4 391 530 |
|
|||
|
|
</code></pre></article>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<footer class="book-footer">
|
|||
|
|
|
|||
|
|
<div class="flex flex-wrap justify-between">
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<script>(function(){function e(e){const t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}document.querySelectorAll("pre code").forEach(t=>{t.addEventListener("click",function(){if(window.getSelection().toString())return;e(t.parentElement),navigator.clipboard&&navigator.clipboard.writeText(t.parentElement.textContent)})})})()</script>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</footer>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<div class="book-comments">
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<label for="menu-control" class="hidden book-menu-overlay"></label>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<aside class="book-toc">
|
|||
|
|
<div class="book-toc-content">
|
|||
|
|
|
|||
|
|
|
|||
|
|
<nav id="TableOfContents">
|
|||
|
|
<ul>
|
|||
|
|
<li><a href="#obicount-counting-sequence-records"><code>obicount</code>: counting sequence records</a>
|
|||
|
|
<ul>
|
|||
|
|
<li><a href="#description">Description</a></li>
|
|||
|
|
<li><a href="#synopsis">Synopsis</a></li>
|
|||
|
|
<li><a href="#options">Options</a>
|
|||
|
|
<ul>
|
|||
|
|
<li></li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
<li><a href="#examples">Examples</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
</nav>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</aside>
|
|||
|
|
|
|||
|
|
</main>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</body>
|
|||
|
|
</html>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|