Giter Site home page Giter Site logo

uniquekmer's People

Contributors

qins avatar sfchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

uniquekmer's Issues

[Question] Clarification of uniqueness

Thank you so much for providing this wonderful tool!

If I search a region of ie. the human genome (chr1:1:50000) against the entire human reference genome, will UniqueKMER return the list of k-mers that map once and only once in the reference genome (between chr1:1:50000?)

or

does UniqueKMER keep only k-mers that map zero times against the reference genome?

I raise this issue to highlight the setting where the input FASTA and the reference genome are derived from the same species. I think this type of tool would be useful; Bloom-filters that count k-mers lack sensitivity to count unique k-mers, as far as I know.

Threading

Hello,

Really useful tool. Is this multi-threaded or single threaded?

Thanks,

Andrew

[Feature request] give a header to each fasta

I found myself using your tool to obtain more hindsight into kmer presence and absence in genomes, specifically for kmers unique to certain genomes. Because the output of UniqueKmer is in the following form:

>sequence1
kmer1
kmer2
kmer3

tools will count them as one continuous sequence kmer1kmer2kmer3 which is unintended and will even create kmers that do not exist in the original genome.

Could you add an option to give a header to each kmer ? it would then look like this :

>sequence1:kmer:1
kmer1
>sequence1:kmer:2
kmer2
>sequence1:kmer:3
kmer3

I wrote a command line with awk for that but it would be convenient to have it as an option:

awk -i inplace '{if (/>/) {line=$0; sum=0} else {sum+=1; KMER=$0; print line ":kmer:" sum "\n" KMER} }' unique_kmers.fasta

terminate called after throwing an instance of 'std::out_of_range

I am trying to create a kmerscollection of different viruses using fasta files but I get the error below for some fasta files.

Output 40/500: HW826641.1 JP 2014023536-A/12: Non-Diffusible Plant Virus Vector. unique: 5
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr: __pos (which is 22) > this->size() (which is 21)
/usr/bin/bash: line 1: 25212 Aborted

I am using standart fasta file downloaded from NCBI. I attached one of the problematic file in this issue (I have put it in txt but it his a .fa file normally).

I tried splitting the file in 1000 line but this seemed to not be the problem

Thank you for your time,
TheBiotech

Virus_12305.txt

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.