GithubHelp home page GithubHelp logo

jacobjmarks / biosig Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 92 KB

Genomic Sequence Indexing/Signature Generation and Searching

C++ 99.64% Makefile 0.36%
bioinformatics sequences signatures indexing genomics

biosig's Introduction

BioSig

Genomic Sequence Indexing/Signature Generation and Searching.

A partial revive and simplification of Dr. Timothy Chappell's TopSig, focusing on genomic documents.

Getting Started

Utilising the Makefile, running make will build an executable file biosig that can be used as follows.

Indexing (index)

Generate a signature file from the given sequence file/s.

./biosig index [OPTIONS] sequenceFile [sequenceFile2 [...]] -o outfile.bsig

Available OPTIONS:

Option Default Description
-kmerlen 5 Kmer length to hash.
-sigwidth 1024 Signature size in bits.
-sigdensity 0.047619048 Signature density 0-1.
-match (disabled) Match and store sequence IDs with the given regular expression.
Will prioritise first group () if present.
-q (disbaled) Quiet operation; Suppress output.

Indexing will result in the output of both a signature file outfile.bsig, as well as a header file outfile.bsig.head, with the following formats:

Signature File .bsig (continuous binary)

This file contains the signatures that were generated from the sequences.

[signature A][signature B][...]

Header File .head (newline-delimited plaintext)

This file contains the IDs of the sequences that were indexed. The first line contains metadata regarding the indexing parameters.

[kmer length],[signature width],[signature density],[sequence count]
[sequence id A]
[sequence id B]
[...]

Searching (search)

Search/Compare the signatures in a given signature file with one or more query signature files.

./biosig search [OPTIONS] targetSig.bsig querySig.bsig [querySig2.bsig [...]] -o resultfile

Available OPTIONS:

Option Default Description
-threshold 0.0 Filter results lower than the given similarity threshold 0-1.
-top 0 (disabled) Retain only the top k results.
-format tsv Result output format. (tsv | csv | trec)
-unique (disabled) Do not compare signatures with identical IDs.
-match (disabled) Match and store sequence IDs with the given regular expression.
Will prioritise first group () if present.
-q (disbaled) Quiet operation; Suppress output.

Results will be output as follows, depending on the format:

tsv (tab-separated values)

[query]    [target]    [similarity]

csv (comma-separated values)

[query],[target],[similarity]

trec (Text REtrieval Conference)

[query] Q0 [target] [rank] [similarity] biosig

biosig's People

Contributors

jacobjmarks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.