for del_size in 10 30 50 70 90 150 300 600
do
chr=17
start_pos=4126000
read_length=100
ens_url="http://grch37.rest.ensembl.org/sequence/region/human/"
qual=$(python -c "print 'A'*${read_length}")
(
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Deduplicates all .txt files in sudirs | |
# creates file with .dedup postfix | |
# keeps one header line if file does not contains comments | |
# keeps two header lines if file contains comments | |
find . -name '*.txt' | parallel -k "f=$(mktemp -t mskimpact) &&" sort {} '|' uniq -d '>' '$f' '&&' test -s '$f' '&&' '('grep -q '^#' {} '&&' '('head -2 {} '>' {}.dedup '&&' tail -n +3 {} '|' sort '|' uniq '>>' {}.dedup')' '||' '('head -1 {} '>' {}.dedup '&&' tail -n +2 {} '|' sort '|' uniq '>>' {}.dedup'))' | |
# to replace all files run: | |
#find . -name '*.dedup' | parallel -k 'f='{} '&&' mv {} '${f/.dedup/}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
export PORTAL_HOME=$DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
grep = `git grep -n #{ARGV[0]} #{ARGV[1]}` | |
puts "\n-----------------------------------------------------------" | |
puts "GREP RESULT" | |
puts '-----------------------------------------------------------' | |
puts grep | |
files = grep.scan /.*\:\d+/ |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Bokeh Plot</title> | |
<style> | |
/* BEGIN /Users/debruiji/anaconda/lib/python2.7/site-packages/bokeh/server/static/css/bokeh.min.css */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Python-like string format function | |
* @param {String} str - Template string. | |
* @param {Object} data - Data to insert strings from. | |
* @returns {String} | |
*/ | |
var format = function(str, data) { | |
var re = /{([^{}]+)}/g; | |
return str.replace(/{([^{}]+)}/g, function(match, val) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
color_grep_file() { | |
COLOR_CMD="cat $1" | |
echo $COLOR_CMD | |
local i=31; | |
while read line; do | |
echo $line | |
COLOR_CMD="$COLOR_CMD | GREP_COLOR='01;$i' grep --color=always -E '$line|$'" | |
i=$(( $i + 1 )) | |
done < $2 | |
COLOR_CMD="$COLOR_CMD | less -RS" |
Check out the README at https://github.com/cBioPortal/cbioportal-frontend/ for up to date info
- Install with npm
- Try to view new patient view at this link (make sure to change routing to patient): http://localhost:3000/?cancer_study_id=lgg_ucsf_2014&case_id=P04
Make a new component that show the Patient Information on a single line, instead of in a table. We would like that line to be in the PatientHeader
component. You could name it PatientInline
similar to SampleInline
.