Comments (1)
Hi @pettyalex,
that sounds like a useful addition! I think it makes sense to offer that as an alternative to specifying those files directly, yes.
Looking at the links you provided, it seems this would be a download from ensembl, right? Or any other databases as well? I've already implemented parts of ensembl downloads for the VEP annotation, see here for the download rules and here for the config. I think to keep matters separate, that part should be kept as-is, but could serve as inspiration for the code as well. As far as I remember, I had quite some trouble with the URL stability at ensembl, and needed all the trickery in these files to get it to work for species such as A. thaliana, which were somehow not in the main database, but needed some special URLs.
If you want to implement this, that would be super cool! I'd suggest to extend the config file maybe like that:
data:
reference-genome: "/path/to/data/genome.fa"
# Automatic download from ensembl, should the above file not yet exist:
reference-genome-download:
# ensembl species name
species: homo_sapiens
# ensembl release
release: 98
# genome build
build: GRCh38
# TODO need special URL for non-metazoans
cache-url: ""
That way, the rest of the pipeline could be kept with minimal changes, and the automatic download would store the file in the location as indicated by reference-genome
. That works nicely with Snakemake as well, which would then only execute the download if that file is not yet present. An additional rule file with rules similar to the ones you linked would then do that job.
In that config example, I've also added the cache-url
part that I had to do for VEP. See the config part that I linked about for details. I think that should be included here as well then, for completeness.
What do you think, is that what you had in mind? Happy to discuss a different setup as well, if you think that would make more sense.
Cheers and so long
Lucas
from grenepipe.
Related Issues (20)
- bwa-mem2 "{tmp}.0000.bam": File exists HOT 5
- threads for bwa-mem2 via slurm HOT 2
- Error running toy example HOT 6
- MissingRuleException HOT 13
- PID error HOT 9
- java.lang.OutOfMemoryError: Java heap space HOT 2
- GRENEPIPE v12.1 HOT 5
- Make "trimming-tool" optional HOT 3
- restrict-regions and short contigs HOT 2
- ModuleNotFoundError: No module named 'chardet' HOT 2
- Write full executed command for each step to log files for reproducibility HOT 3
- merging calls from multiple pipeline runs? HOT 2
- mamba is difficult to install in grenepipe environment HOT 5
- config file HOT 5
- greenepipe run error HOT 5
- problem with dedup HOT 4
- a new type of error HOT 2
- a new type of error HOT 1
- another type of error HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grenepipe.