| author | date | title |
|---|---|---|
Tabea Kischka |
2018-06-26 |
BASH Cheatsheet |
# to list files that already exist on the server| #!/usr/bin/env python | |
| """ | |
| A script that converts a UCSC gene format into BED12 format | |
| Author: Tabea Kischka | |
| Example for UCSC gene format: | |
| 594 NM_058167 chr1 - 1253911 1273854 1255202 1267992 7 1253911,1256044,1256991,1257207,1263345,1267861,1273665, 1255487,1256125,1257130,1257310,1263386,1267992,1273854, 0UBE2J2 cmpl cmpl 0,0,2,1,2,0,-1, | |
| """ | |
| import sys |
| awk '{if ($5!=$7 && $6 != $8){print $0}}' data/hg38_refGene.txt | awk '{if ($4=="+"){print $3"\t"$5"\t"$7"\t"$2"\t"0"\t"$4} else if ($4=="-"){print $3"\t"$8"\t"$6"\t"$2"\t"0"\t"$4}}' |
| #!/usr/bin/env python | |
| # File created by Tabea Kischka at Mon Aug 1 2016 | |
| import sys | |
| import os | |
| import argparse | |
| import logging |
| #!/usr/bin/env bash | |
| # | |
| # Sorts a BED file karyotypically | |
| # File created by Tabea Kischka at Thu Jun 9 11:15:44 CEST 2016 | |
| INFILE="$1" | |
| OUTFILE="$2" |
| #!/usr/bin/env python | |
| """ | |
| Turns tab delimited data to macdown table format. | |
| Needs the csvtoolkit to be installed. | |
| """ | |
| import sys | |
| import os | |
| import tempfile | |
| import argparse |
| find . -type l ! -exec test -e {} \; -print |
| echo -e '\033k'"Super_title_includes_directory_${PWD}"'\033\\' |
| #!/usr/local/bin/python | |
| # File created by Tabea Kischka at Thu May 19 15:24:59 CEST 2016 | |
| # This script orders the sequence in a multi fasta file by the chromosome name in | |
| # karyotypic oder, and not lexicographically. | |
| # I.e., it creates this order: chr1, chr2, chr10, ... | |
| # instead of the order chr1, chr10, chr2 | |
| import sys |