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
| # Note. 2G is the maximum file size to be pushed to github with Git Large File Storage | |
| echo "# Files over 2G" >> .gitignore | |
| find * -size +2G -type f -print >> .gitignore |
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
| #!/bin/bash | |
| ##### INFO ##### | |
| # this script generates a csv file with the number of reads in each fastq file in a directory of | |
| # fastq files | |
| ##### USER PARAMETERS ##### | |
| # Set the fastq directory | |
| fastq_dir="/home/user/fastq" |
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
| zgrep -v "#" file.gz | awk '{print $1}' | uniq |
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
| # Code by Miles Benton | |
| # An example pedigree file | |
| # Using cat | |
| cat pedigree.ped | tr ' ' '\t' | |
| # Using sed | |
| sed -i 's/ /\t/g' pedigree.ped |
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
| nvidia-smi | |
| nvtop |
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
| # Code by Miles Benton | |
| # An example for downloading everything from the GATK resource bundle (b37) | |
| curl -l ftp://ftp.broadinstitute.org/bundle/b37/ --user gsapubftp-anonymous | \ | |
| sed -e 's/^/ftp:\/\/ftp.broadinstitute.org\/bundle\/b37\//' | \ | |
| parallel -j15 wget --user=gsapubftp-anonymous --password="" | |
| curl -l ftp://ftp.broadinstitute.org/bundle/b37/ --user gsapubftp-anonymous | sed -e 's/^/ftp:\/\/ftp.broadinstitute.org\/bundle\/b37\//' > ftp-files.txt \ | |
| cat ftp-files.txt | parallel -j5 wget --user=gsapubftp-anonymous --password="" |
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
| "shape <- shapefile("../data.shp") %>% | |
| st_as_sf()" | |
| shape_transformed <- shape %>% as_Spatial() %>% spTransform(CRS("+proj=longlat +datum=WGS84 +no_defs +lon_wrap=180")) |