Coder Social home page Coder Social logo

qdata / fastsk Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 8.0 116.35 MB

Bioinformatics 2020: FastSK: Fast and Accurate Sequence Classification by making gkm-svm faster and scalable. https://fastsk.readthedocs.io/en/master/

Home Page: https://fastsk.readthedocs.io/en/master/

License: Apache License 2.0

C++ 27.95% Makefile 0.22% C 2.15% Python 69.58% Shell 0.02% CMake 0.08% Batchfile 0.01%
cpp gkm-svm python-library sequence-classification string-classification string-kernel

fastsk's People

Contributors

dblakely avatar ec3bd avatar jacklanchantin avatar k-ivey avatar kevinsunofficial avatar qiyanjun avatar rs3zz avatar yuy898 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fastsk's Issues

what is 0 or 1 mean in the training data?

Hi,

I am trying to use FastSK, but a little confused about how to prepare the training dataset.

For example, I want to train a model of ATAC-seq in K562 cells, should the positive data be real ATAC-seq data and negative data be randomized seqs?

Does 0 represent positive seqs and 1 represent randomized negative seqs ?

Thanks a lot.

Obtain k-mer sequences and weights

Is there a way to retrieve a list of the most contributing features (i.e., k-mer sequences) and their associated weights? I have attempted to pull them by using the sklearn.feature_extraction module to no avail. However, I did notice (with my incredibly limited familiarity with c++) that there appears to be the tokenized feature array objects being passed to fastsk_kernel.cpp. Is this a potential source of extraction? Any help would be greatly appreciated!

Regression mode?

Hi, if we have continuous data rather than a binary classification task, is there any easy way to run this as a support vector regression (SVR) problem rather than typical SVM? Or is this package intended purely as a classifier? Thanks!

iGaKCo core dumps in some cases

I ran iGaKCo as below and it core dumped:

$ ./iGakco -g 10 -m 8 -k kernel.txt -h 1 temp.fasta temp.fasta dict.txt labels.txt 
Input file : temp.fasta
Dictionary size = 5 (+1 for uknown character)
Reading temp.fasta
Read 2 strings of length = 12
numF=6, sumLen=24
(10,2): 6 features
Weights (hm):45 36 28 21 15 10 6 3 1 
Computing mismatch profiles using 8 threads...
*** Error in `./iGakco': free(): invalid size: 0x00007f40e4000c70 ***
*** Error in `./iGakco': free(): invalid size: 0x00007f40ec000c70 ***
*** Error in `./iGakco': free(): invalid size: 0x00007f40e0000c70 ***
*** Error in `./iGakco': free(): invalid size: 0x00007f40d4000c70 ***
*** Error in `./iGakco': free(): invalid size: 0x00007f40d8000c70 ***
======= Backtrace: =========
======= Backtrace: =========
======= Backtrace: =========
======= Backtrace: =========
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f40f373737a]
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f40f372e7e5]
*** Error in `./iGakco': free(): invalid size: 0x00007f40c8000c70 ***
Aborted (core dumped)

Input file looks like this:

>1
ACGACGTGACGA
>0
AGTCCCAAATCC

dict.txt is:

A
C
G
T


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.