aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/references.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/references.nix b/lib/references.nix
index 7f754d6..f328bb9 100644
--- a/lib/references.nix
+++ b/lib/references.nix
@@ -15,6 +15,18 @@ rec {
buildCommand = "gunzip < $src > $out";
passthru.filetype = filetype.fa {};
};
+ dbsnp = stage {
+ name = "dbsnp-b151_GRCh37p13";
+ src = pkgs.fetchurl {
+ url = "ftp://ftp.ncbi.nlm.nih.gov/snp/organisms/human_9606_b151_GRCh37p13/VCF/common_all_20180423.vcf.gz";
+ sha256 = "0jf71h5wy82xhgsjkvp05mj2grjrjlnswmr0wz4lb87g3ip3c2mm";
+ };
+ buildInputs = with pkgs; [ gawk ];
+ buildCommand = ''
+ gunzip < $src | awk '/^[^#]/{print "chr" $0;next}{print}' > $out
+ '';
+ passthru.filetype = filetype.vcf { ref = seq; };
+ };
ensembl = let version = "74"; in {
cdna = stage {
name = "ensembl-grch37-cdna-${version}";