sanjaynagi / rna-seq-pop

Snakemake workflow for Illumina RNA-sequencing experiments - extract population genomic signals from RNA-Seq data
https://sanjaynagi.github.io/rna-seq-pop/
MIT License
18 stars 7 forks source link

remove need for DE contrasts rule #36

Closed sanjaynagi closed 3 years ago

sanjaynagi commented 3 years ago

the rule which sets up the contrast table is unnecessary.

If its made incorrectly initially, snakemake will not delete it and it will affect future runs until the file is deleted. we could have config.yaml as an input to that rule, but it mean any change to the config.yaml will need all subsequent rules to be re-run.

ideally it will re-generate the DE.contrasts.list file each time, but not need to re-run other rules.

The alternative is to just directly use the config.yaml, which is better i think. We can have a function in tools.py which parses the config.yaml contrasts straight into a table perhaps

sanjaynagi commented 3 years ago

no need for a function - simple one liner. All rules now read directly from config and no need for DE.contrast.list in commit d8a682e