Regular expression matching:
a=foobar
[[ "$a" =~ "^foo" ]] && echo "matches ^foo"Array from a glob:
| @SQ SN:chrM LN:16571 | |
| @SQ SN:chr1 LN:249250621 | |
| @SQ SN:chr2 LN:243199373 | |
| @SQ SN:chr3 LN:198022430 | |
| @SQ SN:chr4 LN:191154276 | |
| @SQ SN:chr5 LN:180915260 | |
| @SQ SN:chr6 LN:171115067 | |
| @SQ SN:chr7 LN:159138663 | |
| @SQ SN:chr8 LN:146364022 | |
| @SQ SN:chr9 LN:141213431 |
Regular expression matching:
a=foobar
[[ "$a" =~ "^foo" ]] && echo "matches ^foo"Array from a glob:
| #!/usr/bin/env python | |
| """ | |
| Kamil Slowikowski | |
| fix_alleles.py | |
| ============== | |
| Change the alleles in a dosage file to match the alleles specified in | |
| a separate reference file. If a variant is not present in the reference file, | |
| then it will not be changed. |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
| <script type="text/javascript" src="js/typeahead.bundle.min.js"></script> |
P is the probability of a base-call error.
| Q | P | Symbol | ASCII |
|---|---|---|---|
| 1 | 0.79433 | " | 34 |
| 2 | 0.63096 | # | 35 |
| 3 | 0.50119 | $ | 36 |
| 4 | 0.39811 | % | 37 |
| 5 | 0.31623 | & | 38 |
| 6 | 0.25119 | ' | 39 |
This document summarizes some of the distinguishing features of tools used to analyze RNA-Seq data.
Aligners:
| Name | Type | Algorithm | Links |
| on ButtonClick(theObjectID) | |
| tell application "System Events" | |
| repeat until exists theObjectID | |
| delay 0.5 | |
| end repeat | |
| click theObjectID | |
| end tell | |
| end ButtonClick | |
| set targetApp to "Cisco AnyConnect Secure Mobility Client" |
| #!/usr/bin/env bash | |
| # notify-toggle.sh | |
| # Kamil Slowikowski | |
| # May 31, 2014 | |
| # | |
| # Toggle libnotify notification bubbles that appear in the top-right corner | |
| # of your screen. | |
| # You can uncomment some lines to mute and unmute sound, too. | |
| # | |
| # Works on: |
| function cd_dir_history() | |
| { | |
| OLDPWD="$PWD" | |
| echo "# $(date) $USER -> $@" >> "$HISTFILE" | |
| command cd "$@" | |
| # If this directory is writable then write to directory-based history file | |
| # otherwise write history in the usual home-based history file. | |
| touch "$PWD/.dir_bash_history" 2>/dev/null \ |