Repository navigation
SEGUID v2 C# Implementation: Checksums for Linear, Circular, Single- and Double-Stranded Biological Sequences
This C# program, seguid, implements SEGUID v2 together with the original SEGUID algorithm.
Installation
Option 1: Using pre-built binaries
- Download the latest release from the Releases page
- Extract the zip file
- Add the directory containing
seguid.exeto your system PATH, or run it directly from the extracted location
Option 2: Building from source
Requirements:
- .NET 8.0 SDK or later
Steps:
- Clone the repository:
git clone https://github.com/yourusername/seguid-csharp.git
cd seguid-csharp- Build the solution:
dotnet build -c ReleaseThe executable will be located at:
src/SEGUID.Console/bin/Release/net8.0/seguid.exeUsage
From command line:
# Calculate SEGUID for a DNA sequence
echo "ACGT" | .\seguid.exe
# Calculate LSSEGUID with RNA alphabet
echo "ACGU" | .\seguid.exe --type=lsseguid --alphabet={RNA}
# Calculate LDSEGUID for double-stranded sequence
echo "ACGT;TGCA" | .\seguid.exe --type=ldseguidFor help and available options:
.\seguid.exe --helpIn code:
Function Types
| Topology | Strandedness | Function |
|---|---|---|
| linear | single | lsseguid |
| circular | single | csseguid |
| linear | double | ldseguid |
| circular | double | cdseguid |
License
MIT License
Copyright (c) 2024 Gyorgy Babnigg and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Author
Gyorgy Babnigg gbabnigg@gmail.com