Skip to content

Commit

Permalink
fit variation file suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Dec 12, 2019
1 parent 0a3d6e7 commit da9eab8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bio/reference/ensembl-variation/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
if type == "all":
if species == "homo_sapiens":
suffixes = [
"chr{}".format(chrom) for chrom in list(range(1, 23)) + ["X", "Y", "MT"]
"_chr{}".format(chrom) for chrom in list(range(1, 23)) + ["X", "Y", "MT"]
]
else:
suffixes = [""]
elif type == "somatic":
suffixes = ["somatic"]
suffixes = ["_somatic"]
elif type == "structural_variations":
suffixes = ["structural_variations"]
suffixes = ["_structural_variations"]
else:
raise ValueError(
"Unsupported type {} (only all, somatic, structural_variations are allowed)".format(
Expand All @@ -30,7 +30,7 @@
)

urls = [
"ftp://ftp.ensembl.org/pub/release-{release}/variation/vcf/{species}/{species}_{suffix}.vcf.gz".format(
"ftp://ftp.ensembl.org/pub/release-{release}/variation/vcf/{species}/{species}{suffix}.vcf.gz".format(
release=release, species=species, suffix=suffix
)
for suffix in suffixes
Expand Down

0 comments on commit da9eab8

Please sign in to comment.