Giter VIP home page Giter VIP logo

Comments (6)

gagolews avatar gagolews commented on June 6, 2024

BTW, playing with that using positive look-aheads:

stri_locate_all_regex("ACAGAGACTTTAGATAGAGAAGA", "(?=AGA)")

from stringi.

bartektartanus avatar bartektartanus commented on June 6, 2024

When done, reply in this SO question :)
http://stackoverflow.com/questions/26600735/matching-and-counting-strings-k-mer-of-dna-in-r

from stringi.

bartektartanus avatar bartektartanus commented on June 6, 2024

Work ongoing:

> stri_count_fixed("AAAAA",c("A","AA","AAA"),rep(0:1,each=3))
[1] 5 2 1 5 4 3
> stri_count_fixed("AAA","AA",overlap=c(T,F))
[1] 2 1

from stringi.

gagolews avatar gagolews commented on June 6, 2024

BTW, for *_coll this'll be very easy (I'll take care of it when stringi 0.3 will be on CRAN): we have USEARCH_OVERLAP with options USEARCH_OFF and USEARCH_ON; UStringSearch has a usearch_setAttribute function

from stringi.

gagolews avatar gagolews commented on June 6, 2024

A list of functions that need the overlap arg:

  • count
  • locate_all
  • extract_all

Don't need:

  • detect
  • startswith, endswith
  • subset
  • extract_first, extract_last
  • locate_first, locate_last
  • split
  • replace
  • split

from stringi.

gagolews avatar gagolews commented on June 6, 2024

if stri_opts_fixed will be introduced, put this option here ===> depends on #110

from stringi.

Related Issues (20)

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.