Skip to content

Instantly share code, notes, and snippets.

View srividya22's full-sized avatar

Srividya Ramakrishnan srividya22

  • John Hopkins University
  • Baltimore
View GitHub Profile
@srividya22
srividya22 / README.md
Created May 29, 2018 22:08 — forked from jdblischak/README.md
snakemake_vmem_usage

Testing Snakemake virtual memory usage

John Blischak 2014-05-14

Multiple users have observed that submitting jobs via Snakemake requires much more memory than is necessary to run the command (e.g. mailing list post, [Bitbucket issue][issue]).

@srividya22
srividya22 / README.md
Created May 29, 2018 22:08 — forked from jdblischak/README.md
snakemake_vmem_usage

Testing Snakemake virtual memory usage

John Blischak 2014-05-14

Multiple users have observed that submitting jobs via Snakemake requires much more memory than is necessary to run the command (e.g. mailing list post, [Bitbucket issue][issue]).

@srividya22
srividya22 / Find_one_liners.txt
Last active December 20, 2018 19:00
One liners Find
Identify a directory which does not contain a particular file
find base_dir -mindepth 2 -maxdepth 2 -type d '!' -exec test -e "{}/cover.jpg" ';' -print
@srividya22
srividya22 / BCFtools cheat sheet
Created June 4, 2021 16:18 — forked from elowy01/BCFtools cheat sheet
BCFtools cheat sheet
*bcftools filter
*Filter variants per region (in this example, print out only variants mapped to chr1 and chr2)
qbcftools filter -r1,2 ALL.chip.omni_broad_sanger_combined.20140818.snps.genotypes.hg38.vcf.gz
*printing out info for only 2 samples:
bcftools view -s NA20818,NA20819 filename.vcf.gz
*printing stats only for variants passing the filter:
bcftools view -f PASS filename.vcf.gz
@srividya22
srividya22 / BCFtools cheat sheet
Created June 4, 2021 16:18 — forked from elowy01/BCFtools cheat sheet
BCFtools cheat sheet
*bcftools filter
*Filter variants per region (in this example, print out only variants mapped to chr1 and chr2)
qbcftools filter -r1,2 ALL.chip.omni_broad_sanger_combined.20140818.snps.genotypes.hg38.vcf.gz
*printing out info for only 2 samples:
bcftools view -s NA20818,NA20819 filename.vcf.gz
*printing stats only for variants passing the filter:
bcftools view -f PASS filename.vcf.gz