brentp / vcfanno

annotate a VCF with other VCFs/BEDs/tabixed files
https://genomebiology.biomedcentral.com/articles/10.1186/s13059-016-0973-5
MIT License
357 stars 55 forks source link

cannot read https url #148

Closed projectoriented closed 2 years ago

projectoriented commented 2 years ago

Hello 👋 , I'm getting this error when using https url.

Here is the error:

vcfanno.go:113: [Flatten] unable to open file: /https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/sarscov2/illumina/vcf/test.vcf.gz

Here is the conf.toml:

[[annotation]]
file="https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/sarscov2/illumina/vcf/test.vcf.gz"
fields = ["MQ"]
ops=["self"]

Thanks!

brentp commented 2 years ago

Hi, the annotation files must be local.

projectoriented commented 2 years ago

Ah, okay got it. Thanks! I misunderstood the README 😅