Open nukaemon opened 1 month ago
get_known_variation also need to be modified as below.
Regarding the line that specifies fai file path, it causes TypeError in python due to the change in v3.7.0.
To avoid the error, simply put [0]
at the end.
rule get_known_variation:
input:
# use fai to annotate contig lengths for GATK BQSR
- fai=expand("resources/reference_genome/{ref}/homo_sapiens.fasta.fai",ref=config["ref"]["build"])
+ fai=expand("resources/reference_genome/{ref}/homo_sapiens.fasta.fai",ref=config["ref"]["build"])[0]
output:
vcf=expand("resources/database/{ref}/variation.vcf.gz",ref=config["ref"]["build"])
params:
+ url="http://ftp.ensembl.org/pub",
species="homo_sapiens",
build=config["ref"]["build"],
release=config["ref"]["release"],
type="all"
cache: "omit-software" # save space and time with between workflow caching (see docs)
wrapper:
- "v1.23.3/bio/reference/ensembl-variation"
+ "v3.13.8/bio/reference/ensembl-variation"
The URL starting with 'ftp' is no longer accessible which causes a problem in get_genome and get_annotation in genome.smk. To specify to use the URL starting with 'http' instead of 'ftp', 'url' param is available in these wrappers. However, the version must be modified from v1.23.3 to newer to get this param work.