This file contains hidden or 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
| ## Tasks are upper camel-cased | |
| task CheckSex{ | |
| File sampleBAM | |
| File sampleIndex | |
| ## Optional parameters receive a '?' after the type | |
| Int? diskGB | |
| ## select_first can be used to set default values | |
| diskGB = select_first([diskGB, 100]) |
This file contains hidden or 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
| chmod a+x vcfsort.sh | |
| vcfsort.sh trio.trim.vep.vcf.gz |
This file contains hidden or 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
| grep -v "^@" $1 | awk '{print $1"\t"$2"\t"$3"\t"$5}' > $(dirname $1)/$(basename $1 .interval_list).bed && \ | |
| bgzip $(dirname $1)/$(basename $1 .interval_list).bed && \ | |
| tabix $(dirname $1)/$(basename $1 .interval_list).bed.gz |
This file contains hidden or 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
| first_reads=$1 | |
| second_reads=$2 | |
| ddir=$(dirname $first_reads) | |
| obase_first=$(basename $first_reads .fastq.gz) | |
| obase_second=$(basename $second_reads .fastq.gz) | |
| splitsz=4000000 | |
| if [ ! -z ${first_reads} ] && [ -e ${first_reads} ] |
This file contains hidden or 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
| import sys | |
| import gzip | |
| from collections import defaultdict | |
| if __name__ == "__main__": | |
| d_telo= defaultdict(list) | |
| d_centro = {} | |
| with gzip.open(sys.argv[1], "rt") as ifi: | |
| for line in ifi: |
This file contains hidden or 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
| git clean -xfd | |
| git submodule foreach --recursive git clean -xfd | |
| git reset --hard | |
| git submodule foreach --recursive git reset --hard | |
| git submodule update --init --recursive |
This file contains hidden or 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
| library(vcfR) | |
| # Import VCF | |
| my.vcf <- read.vcfR('my.vcf.gz') | |
| # Combine CHROM thru FILTER cols + INFO cols | |
| my.vcf.df <- cbind(as.data.frame(getFIX(my.vcf)), INFO2df(my.vcf)) |
NewerOlder