aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2019-09-25 15:35:23 +1000
committerJustin Bedo <cu@cua0.org>2019-09-25 15:35:23 +1000
commit6b2486a3fe56a2c4f8b355e696f152a2d1037abe (patch)
tree6916458d218a5016bf5ece255789d38000e1ce85 /lib
parentb2b9a3be4e8544f569cf6155b8a34f405d4a2591 (diff)
grch37: add dbsnp
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}";