A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
| # see below for UPDATES that include more shorter ways of conversions | |
| # How to convert GTF format into BED12 format (Human-hg19)? | |
| # How to convert GTF or BED format into BIGBED format? | |
| # Why BIGBED (If GTF or BED file is very large to upload in UCSC, you can use trackHubs. However trackHubs do not accept either of the formats. Therefore you would need bigBed format) | |
| # First, download UCSC scripts | |
| wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/gtfToGenePred | |
| wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/genePredToBed | |
| wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/bedToBigBed |
A node-link diagram running a javascript implementation of the Dijkstra algorithm. Every time the visualization is refreshed two nodes are selected as start (in red) and end point (in blue). Then the shortest path is computed and shown on the diagram by highlighting the edges.
| var lastFlushed = undefined; | |
| function floodScheduler(n) { | |
| for (var i = 0; i < 10; i++) { | |
| for (var j = 0; j < n; j++) { | |
| var fn = function logPos(i, j) { | |
| var thisFlush = (i * n) + j; | |
| if (lastFlushed || lastFlushed === 0) { | |
| if (lastFlushed + 1 !== thisFlush) { | |
| console.error('Order MisMatch', lastFlushed, thisFlush, i, j); |
| fmtDetailValue_Dbxref : function(dbxref) { | |
| if (typeof dbxref != 'string') { | |
| return dbxref; | |
| } | |
| var dbid = dbxref.split(':'); | |
| var prefix = ''; | |
| switch (dbid[0]) { | |
| case 'InterPro': | |
| prefix = 'http://www.ebi.ac.uk/interpro/entry/'; | |
| break; |
| export NEO4J_HOME=${NEO4J_HOME-~/Downloads/neo4j-community-3.0.1} | |
| if [ ! -f data-csv.zip ]; then | |
| curl -OL https://cloudfront-files-1.publicintegrity.org/offshoreleaks/data-csv.zip | |
| fi | |
| export DATA=${PWD}/import | |
| rm -rf $DATA |
| Source | Dst. file type | Protocol | Time (s) | Command Line |
|---|---|---|---|---|
| NCBI | .sra | ftp | 296 | wget |
| NCBI | .fastq.gz | sra toolkit | ~23000 | fastq-dump -Z --gzip --split-spot |
| local file | sra=>fastq.gz | sra toolkit | ~15000 | fastq-dump --gzip --split-spot --split-3 |
| EBI | .fastq.gz | aspera | 513+492 | aspera -QT -l 300m |
| EBI | .fastq.gz | ftp | 1876+1946 | wget |
Notes: