Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 298

Benchmarking problems relate to problems where efficiency is key, beyond just solving a problem itself. What's the fastest or most efficient way to solve a problem?

1 vote
Accepted

efficient counting of dinucleotides/trinucleotides on fastq reads?

Well, I'm sure you can find a more efficient approach, but here's a simplistic solution using standard UNIX tools: zcat file.fastq.gz | grep CGC | awk -F'CGC' 'NR%4==2{a[NF-1]++}END{for(i in a){ …
terdon's user avatar
  • 10.6k
3 votes

Remove/delete sequences by ID from multifasta

Using the FastaToTbl and TblToFasta scripts I have posted before, you can do: FastaToTbl file.fa | grep -vwf ids.txt | TblToFasta > file.2.fa
terdon's user avatar
  • 10.6k
2 votes
Accepted

Introducing a fixed number of random substitutions in a sequence

Here's a slightly different approach that should be more efficient. The core of the idea is to have two functions, one which changes a given nucleotide to something other than what it was, and another …
terdon's user avatar
  • 10.6k